Replacement for this code?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

phpnewbie34
New php-forum User
New php-forum User
Posts: 14
Joined: Mon Apr 22, 2013 4:00 am

Replacement for this code?

Postby phpnewbie34 » Tue Apr 30, 2013 4:43 pm

$query = "SELECT COUNT(*) FROM pixs";
$total_pages = mysql_fetch_array(mysql_query($query));
$total_pages = $total_pages[num];

Any suggestions?

Return to “PHP coding => General”

Who is online

Users browsing this forum: Google [Bot] and 3 guests