Quote:
Originally Posted by vectorialpx
Code:
$query = "SELECT COUNT(*) myN FROM $tbl_name WHERE `title` LIKE 'd%' LIMIT 1";
$theQ = mysql_query($query) or die(mysql_error());
$total_pages = mysql_fetch_assoc($theQ);
$total_pages = $total_pages['myN'];
I don't see a problem... you can test my simple adjustments. Before this, make sure $tbl_name is what you need.
|
Hi Thank you for your code, I am going to try that now. I should put that in replace of all three select queries in my code right? Note: I will comment out the original and post your code above it.
No good, error in SQL syntax. I have emailed the company to see if they can sort it out correctly.
Thanks anyway for your help
Brian
__________________
Made2Own
Last edited by Brian07002; 09-07-2011 at 06:54 PM..
|