Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
karthic
Wanderer


Joined: 28 Aug 2001
Posts: 86
Location: USA

PostPosted: Fri Aug 29, 2003 2:17 am   

connected to mysql, problem occur
 
Here's a list of what i do..



#var conn ""
#VAR Conn %comcreate( "ADODB.Connection")
#call @conn.open("myodbc3-test")
#echo @conn.connectionstring
#var everyone %concat( "blah blah", "blah blah.. this sql statement works")
#echo @everyone
#var rs @comm.execute(@everyone)
#echo this is the end




that is what i do, this is the ooutput




Provider=MSDASQL.1;Data Source=myodbc3-test;Extended Properties="DSN=myodbc3-test;DESC=MySQL ODBC 3.51 TEST DSN;DATABASE=test;SERVER=localhost;UID=root;PASSWORD=;PORT=3306;OPTION=3;STMT=;"
(this is the sql statement. that i put above)
this is the end


that is the output..
since i got the connection string, i can only assume, it connected

any reason, that inst inserting into the database?
the database, and table, exists, currectly... when i copy and paste that sql string, directly to mysql console, it works...

thanks
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Fri Aug 29, 2003 2:42 am   
 
#var rs @comm.execute(@everyone)

That should be @conn to be consistent with the rest of the script.
Reply with quote
karthic
Wanderer


Joined: 28 Aug 2001
Posts: 86
Location: USA

PostPosted: Fri Aug 29, 2003 2:46 am   
 
fix that, no change.. that call command was possed to be another way to write the exec command right above it (duplicate result)
Reply with quote
karthic
Wanderer


Joined: 28 Aug 2001
Posts: 86
Location: USA

PostPosted: Fri Aug 29, 2003 3:04 am   
 
found problem.. it was that i have to connect in every script..

i got disconnected from the database
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net