I am getting the error Notice: Use of undefined constant num - assumed 'num' my code is following
$query = "SELECT COUNT(*) AS num FROM $tableName";
$total_pages = mysql_fetch_array(mysql_query($query));
$total_pages = $total_pages[num];
how to fix this ?
i haven't got suited title so please don't min it an of possible change it to suited