Up until recently I was using mysql
instead of mysqli
or POD but as PHP has announded that it will not support mysql
so i have decided to move to mysqli
. But I have read several blogs/article everyone says that for security purpose mysqli
is better than mysql
but performance wise mysql
is better. If you are planning for high traffic website, then this small difference in performance may cause problem. Apart from this performance issue I have found that mysqli
and PDO is little complicated to use. For example for select function we can directly use this in my sql:
$res = mysql_query("SELECT * FROM `summary` WHERE id='35' limit 1");
$row = mysql_fetch_array($res);
But in mysqli
we have to use this something very complicated query for select/update/delete/insert etc. Is there any way i can use almost similar code for mysqli as well?