Jump to content

SELECT * FROM emails WHERE emails_id = $start to $end


brown2005

Recommended Posts

Alternatively, you can use BETWEEN.  Also, if you are placing this query into a string with double quotes, variables will be interpolated.  ie:

 

$query = "SELECT * FROM emails WHERE emails_id BETWEEN $start AND $end";

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.