I'm working on a Story script and all I want to do is display X amount of records.
My query is like this
$query = "SELECT name, story from $table ORDER BY id ASC LIMIT $varnum , 3";
Now using the varible breaks it.
Anyone know why?
Can't tell from what you've provided - does $varnum have the value it's supposed to? echo $sql before you send it to the database - see what's actually being sent.