Troubles Inserting into MYSQL
| From: | Steve Gaas | Date: | Sun, 08 Sep 2002 19:07:45 +0000 |
| Subject: | Troubles Inserting into MYSQL | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-115678@lists.php.net to get a copy of this message | ||
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("INSERT INTO events ('user', 'detaildesc', 'index',
'reference',
'date_added') VALUES (\'$cookiewho\',
\'$add_Williams\',\'\',\'$row_num\',\'$last_update\')",
$sql4)
or die ("could not do update");
}