note 26806 deleted from ref.mysql by betz
| From: | betz@php.net | Date: | Wed, 21 Apr 2004 10:14:45 +0000 |
| Subject: | note 26806 deleted from ref.mysql by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-68424@lists.php.net to get a copy of this message | ||
Note Submitter: opaf@yahoo.com
----
Two notes about PHP and MySQL:
1. Get used to the syntax
$myquery = "<your query here>";
$result = mysql_query($myquery);
instead of
$result = mysql_query("<your query here>");
Some of the benefits of the proposed syntax are:
- abilty to perform a global search to your scripts nice and easy
- ability to easily output/debug your queries
2. The second note has more to do with MySQL:
Timestamp fields update automaticaly everytime you issue an Update query. Read the documentation!!
I lost 3 days of my life because of this