RE: [PHP] Troubles Inserting into MYSQL

2002-09-09 Thread bbonkosk
If you read: http://www.php.net/manual/en/function.mysql-query.php You will see what $sql4 can be. My guess would be he is connected to 2 or more different databases, and this is specifiying which one to execute the query on. -Brad > [snip] > if ($update_type == update_Williams) { > mysql_query

RE: [PHP] Troubles Inserting into MYSQL

2002-09-09 Thread Jay Blanchard
[snip] if ($update_type == update_Williams) { mysql_query("INSERT INTO events ('user', 'detaildesc', 'index', 'reference', 'date_added') VALUES (\'$cookiewho\', \'$add_Williams\',\'\',\'$row_num\',\'$last_update\')", $sql4) or die ("could not do update"); } [/snip] Try this if ($

RE: [PHP] Troubles Inserting into MYSQL

2002-09-08 Thread Steve Gaas
t; -Socrates -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 2:43 PM To: Steve Gaas Cc: '[EMAIL PROTECTED]' Subject: Re: [PHP] Troubles Inserting into MYSQL Shoudn't it be: if ($update_type == update_Williams)

Re: [PHP] Troubles Inserting into MYSQL

2002-09-08 Thread Brad Bonkoski
#x27;user', 'detaildesc', 'index', > 'reference', 'date_added') VALUES \'sgaas-wil\', ' at line 1 > > Steve Gaas > Sr. Systems Engineer, Carrier Markets > Riverstone Networks > 972.668.8329 (follow-me) > 877.713.7063 (p

RE: [PHP] Troubles Inserting into MYSQL

2002-09-08 Thread Steve Gaas
UES \'sgaas-wil\', ' at line 1 Steve Gaas Sr. Systems Engineer, Carrier Markets Riverstone Networks 972.668.8329 (follow-me) 877.713.7063 (pager analog dial) [EMAIL PROTECTED] (interactive pager) http://www.rstn.net / Nasdaq: RSTN "Wisdom begins in wonder." -Socrates

RE: [PHP] Troubles Inserting into MYSQL

2002-09-08 Thread Steve Gaas
dial) [EMAIL PROTECTED] (interactive pager) http://www.rstn.net / Nasdaq: RSTN "Wisdom begins in wonder." -Socrates -Original Message- From: Paul Nicholson [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 08, 2002 2:21 PM To: Steve Gaas; [EMAIL PROTECTED] Subject: Re: [PHP] Tro

Re: [PHP] Troubles Inserting into MYSQL

2002-09-08 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, Send the results of mysql_errno() please. :) ~Pauly if ($update_type == update_Williams) { mysql_query("INSERT INTO events ('user', 'detaildesc', 'index', 'reference', 'date_added') VALUES (\'$cookiewho\', \'$add_Williams\',\'\',\'$r

[PHP] Troubles Inserting into MYSQL

2002-09-08 Thread Steve Gaas
Hello, My code below always dies! I've tried just about every iteration of the values, etc.. Can anybody show me how to insert into MySQL a value? "INSERT INTO events ('user','detaildesc') VALUES ('$user','$details')" I just don't get it! if ($update_type == update_Williams) { mysql_query("