FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » PDO MySQL
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
PDO MySQL [message #173215] Mon, 28 March 2011 12:57 Go to previous message
smerf is currently offline  smerf
Messages: 12
Registered: January 2011
Karma:
Junior Member
How many requests to database is in this example ?

$pole1 = $dbh->quote($pole1);
$pole2 = $dbh->quote($pole2);
$pole3 = $dbh->quote($pole3);

$sql = 'UPDATE Tabela SET pole1 = $pole1, pole2 = $pole2 WHERE pole3 = $pole3';
$dbh->query($sql)


Does PDO::quote() do request on every call ?
And what about old mysql_real_escape_string ?

Will my code be significantly slower if I I have much more fields in sql ex. 10, 15 .. ?
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: Failed @getimagesize() print to error_log?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 23:05:26 GMT 2024

Total time taken to generate the page: 0.04310 seconds