Jump to content

[SOLVED] mysql LIMIT syntax


dsaba

Recommended Posts

php manual doesn't have anything for mysql_query syntax

 

neither does the SQL manual, they only talk about sql code ONLY, no php

 

i want to do this:

$rownum = 3;

$query = mysql_query("SELECT * FROM table ORDER BY datetime_modified DESC LIMIT $rownum, $rownum");

 

this is not the correct syntax: LIMIT $rownum, $rownum

neither is this: LIMIT '$rownum', '$rownum'

 

what is?

-thanks

Link to comment
https://forums.phpfreaks.com/topic/48245-solved-mysql-limit-syntax/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.