Re: [PHP] MySQL or PHP question?

2003-03-10 Thread Marek Kilimajer
Should not it be: $SQL = "SELECT * FROM table ORDER BY id asc LIMIT ".($autoindex -5)." ,5;"; John Taylor-Johnston wrote: I don't know whether this is a MySQL or PHP quesiton. $SQL = "SELECT * FROM table ORDER BY id asc LIMIT $autoindex -5 ,5;"; I would like to get the autoindex value of my tabl

[PHP] MySQL or PHP question?

2003-03-09 Thread John Taylor-Johnston
I don't know whether this is a MySQL or PHP quesiton. $SQL = "SELECT * FROM table ORDER BY id asc LIMIT $autoindex -5 ,5;"; I would like to get the autoindex value of my table and use it in my SQL. Can I get the autoindex? :) How? -- PHP General Mailing List (http://www.php.net/) To unsubscri