Im connecting to database:
$con=mysql_connect("localhost","root","");
mysql_set_charset('utf8',$con);
mysql_select_db("mydb");
And when I try to get a row using within a for each with this code:
$question = fetch_row("SELECT * FROM `mytable` WHERE PyetjaNr = $i ORDER BY RAND() LIMIT 1 ");
Im getting this error:
Fatal error: Call to undefined function fetch_row()
Same code is working in my hosting server (mysql 5.5), but not working in my localhost mysql (5.6),
Is problem to mysql version? can I do anything except upgrading to mysqli?