note 108160 added to function.mysql-query

From: Date: Tue, 03 Apr 2012 14:16:49 +0000
Subject: note 108160 added to function.mysql-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-186950@lists.php.net to get a copy of this message
I much prefer to use the same syntax for single INSERT, REPLACE and UPDATE queries as it is easier to read and keeps my code shorter (no seperate building of insert and update values) INSERT INTO table SET x='1', y=3 UPDATE table SET x='2' WHERE y=3 So if your using a function to build your query, you will only ever need to code the "field=value, field2=value2" part for any query. ---- Server IP: 92.48.74.199 Probable Submitter: 81.144.235.82 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-query.php Edit -- https://master.php.net/note/edit/108160 Del: integrated -- https://master.php.net/note/delete/108160/integrated Del: useless -- https://master.php.net/note/delete/108160/useless Del: bad code -- https://master.php.net/note/delete/108160/bad+code Del: spam -- https://master.php.net/note/delete/108160/spam Del: non-english -- https://master.php.net/note/delete/108160/non-english Del: in docs -- https://master.php.net/note/delete/108160/in+docs Del: other reasons-- https://master.php.net/note/delete/108160 Reject -- https://master.php.net/note/reject/108160 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186950) next »