[COLOR=DarkGreen]SELECT COUNT([COLOR=Black]*[/COLOR]) as value FROM table_name[/COLOR]
The above line produces an error...
I tried different ways of getting the same result, but it never works ):
The thing is, I'm trying to make a paging script with MS Access and (ofcourse) PHP. Resources for this are stunningly hard to find on Google or PHP forums. I do not know why. Is it so hard or just not possible? I think it is, the only script I found didn't work.
But if I change the word value to something else, e.g. test it suddenly doesn't produce an error. BUT... when I call for that value (e.g. $row->test in stead of $row->value) the value $row->test is empty. But no errors occur anymore.
Any ideas how to get this script working for me in the first place so I could learn from it and write my own (: (I don't like copy/paste)
Once again, I use:
MS Access
PHP 5
Sincerely,
interface
[edit]
Yes, I replaced * with table data names (e.g. ID, title, genre, info etc)
[/edit]