Re: why doesn't this work? (C code)

2001-04-22 Thread Sinisa Milivojevic
Peter Faulks writes: On Sat, 21 Apr 2001 14:12:20 +0300 (EEST), Sinisa Milivojevic wrote: As our manual clearly describes one connection can be used for one query at a time, unless you use threads and mutexes. G'day As I said, it worked fine b4 and I got it to work again. I _assumed_

Re: why doesn't this work? (C code)

2001-04-21 Thread Sinisa Milivojevic
Hi! As our manual clearly describes one connection can be used for one query at a time, unless you use threads and mutexes. Regards, Sinisa __ _ _ ___ == MySQL AB /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Sinisa Milivojevic /*/ /*/ /*/ \*\_ |*|

Re: why doesn't this work? (C code)

2001-04-21 Thread Peter Faulks
On Sat, 21 Apr 2001 14:12:20 +0300 (EEST), Sinisa Milivojevic wrote: As our manual clearly describes one connection can be used for one query at a time, unless you use threads and mutexes. G'day As I said, it worked fine b4 and I got it to work again. I _assumed_ the reason it fell over was

why doesn't this work? (C code)

2001-04-20 Thread Peter Faulks
G'day, This USED to work, then all of a sudden for no apparent reason it has suddenly decided not to: if I change the code thus: if(*row1[2] == 'l') { ; } else if(*row1[2] == 'e') It completes, but of course this isn't any good. Is there something fundamentally wrong with using the same

why doesn't this work? (C code)

2001-04-20 Thread Peter Faulks
G'day, This USED to work, then all of a sudden for no apparent reason it has suddenly decided not to: if I change the code thus: if(*row1[2] == 'l') { ; } else if(*row1[2] == 'e') etc. the cgi programme completes, so I don't think the problem is elsewhere. Is there something

Re: why doesn't this work? (C code) - fixed (I hope)

2001-04-20 Thread Peter Faulks
I wrote: This USED to work, then all of a sudden for no apparent reason it has suddenly decided not to: Notwithstanding it used to work, it would _appear_ that calling mysql_free_result() willy-nilly was the cause: mysql_query(mysql, theSql); res1 = mysql_store_result(mysql); if(res1) {

Why Doesn't This Work???

2001-02-23 Thread Ben Ocean
Hi; I insert the following code in a file: $count = sql_command("select count(id) from calendar"); $count = $count[0] + 1; $mydate = $month.','.$day.','.$year; echo $mydate; echo "br"; echo $time; echo "br"; echo $name; echo "br"; sql_query("insert into calendar

Re: Why Doesn't This Work???

2001-02-23 Thread Atle Veka
what language are you using?? it looks like maybe PHP? try using some error functions to see what mysql has to say. Atle On Fri, 23 Feb 2001, Ben Ocean wrote: Hi; I insert the following code in a file: $count = sql_command("select count(id) from calendar"); $count = $count[0]

Re: Why Doesn't This Work???

2001-02-23 Thread Eric Fitzgerald
Please read the documentation on date functions. That looks like one of your problems. Secondly, your not using any '' to encase your strings. - Original Message - From: "Ben Ocean" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 23, 2001 11:12 AM Subject: W

Why doesn't this work??

2001-02-21 Thread Andreas Heintze
4.13.6 Splitting Data Across Different Disks Under Windows I can't get this to work, any idas? Thanx! Andreas - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/