Hi All,

I am currently trying to learn how to use LC Server scripts and as such am 
doing some experimenting.

I have the 2 below examples of which the first works and the second does not.
I know these are trivial and serve no real purpose but remember I have training 
wheels on!

I am using sublime text to edit my LC files (could it be an issue with line 
endings?)

This works:
<?lc

put $_GET["A"] into tAction
put $_GET["location"] into thelocation
put $_GET["clock"] into thetime
put "This is an error message" into theErrorMsg
put theErrorMsg into URL “file:error.txt”

put empty

?>



This DOES NOT work:
<?lc

put $_GET["A"] into tAction

   put $_GET["location"] into thelocation
   put $_GET["clock"] into thetime

if tAction = "track" then
   put “localhost” into tDatabaseAddress
   put “ua835258_westec” into tDatabaseName
   put "ua835258_westec" into tDatabaseUser
   put “thisisafakepassword” into tDatabasePassword
   put “user_locations” into tTableName
   put “1” into tUserID
   put “10” into tSpeed
   put “user_id,date_time,lat,long,speed” into tFields
   put thetime & tab & thelocation into temp
   put tDatabaseAddress & tDatabaseName & tDatabaseUser & tDatabasePassword & 
tTableName & tUserID & tSpeed & tFields & temp into URL "file:test.txt"
end if

put empty

?>

COPYRIGHT / DISCLAIMER: This message and/or including attached files may 
contain confidential proprietary or privileged information. If you are not the 
intended recipient, you are strictly prohibited from using, reproducing, 
disclosing or distributing the information contained in this email without 
authorisation from WesTrac. If you have received this message in error please 
contact WesTrac on +61 8 9377 9444. We do not accept liability in connection 
with computer virus, data corruption, delay, interruption, unauthorised access 
or unauthorised amendment. We reserve the right to monitor all e-mail 
communications.



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to