Re: MySQL or PHP question?
| From: | Marek Kilimajer | Date: | Mon, 10 Mar 2003 13:15:08 +0000 |
| Subject: | Re: MySQL or PHP question? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138947@lists.php.net to get a copy of this message | ||
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 table and use it in my SQL. Can I get the autoindex? :) How?