note 33523 rejected from function.mysql-query by sp
| From: | sp@php.net | Date: | Sun, 29 Jun 2003 07:47:11 +0000 |
| Subject: | note 33523 rejected from function.mysql-query by sp | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-51163@lists.php.net to get a copy of this message | ||
Note Submitter: Joshua_Hesketh@hotmail.com
----
Why doesnt this work??
mysql_connect($host,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query = "UPDATE news SET title = '" . $title . "', text = '" .
$text . "<br><br><i>Last edited at: " . $date . "' WHERE id =
'" . $id . "' LIMIT 1; ";
mysql_query($query);
mysql_close();
I am using php4 and MySQL4 on apache