1.what is the difference between mysql_fetch_array, mysql_fetch_assoc and mysql_fetch_row?
2. I know what mysql connect is but what is the next line doing in the code below:
function db_connect($host,$user,$pass) //create connection
Code: Select all
{
$r = mysql_connect($host,$user,$pass);
if(preg_match('/^5\./',mysql_get_server_info($r)))db_query('SET SESSION sql_mode=0');
return $r;
}