Jump to content

Recommended Posts

<?php
     $connect = mysql_connect("localhost","damgears_evil","damgears");
     mysql_select_db("damgears_evil");
     $query = mysql_query("SELECT * FROM titles ORDER BY id DESC");

     while($row = mysql_fetch_assoc($query))
	{
		$dbid = $row['id'];
		$dbfname = $row['fname'];
		$dblname = $row['lname'];
		$dbkey = $row['key'];
		$dbskey = $row['skey'];
		$dbname = $row['sname'];
		$title = $row['title'];
		$dbstatus = $row['status'];
		$dbdate = $row['date'];
		$region = $row['region'];
	print "<center>\"$title\"<br>";
	print "by $dbname <i>for $dbfname $dblname</i><br><br></center>";

	}
    ?>

Link to comment
https://forums.phpfreaks.com/topic/177947-only-get-the-last-20-records/
Share on other sites

I was just noting the alternate syntax incase he ever needed it.

 

or did why i did and not research and just make PHP (or whatever) ignore the first ten and limit 30.

 

It's not an "alternate syntax" for the desired results.  That would imply that using LIMIT 10,20 would yield the same results as LIMIT 20.  Which it doesn't.  Using LIMIT 0,20 would be considered an alternative syntax.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.