brown2005 Posted November 19, 2009 Share Posted November 19, 2009 how do you write the subject in the correct php. thanks Quote Link to comment Share on other sites More sharing options...
JonnoTheDev Posted November 19, 2009 Share Posted November 19, 2009 <?php $result = mysql_query("SELECT * FROM emails WHERE emails_id >= '".$start."' AND emails_id <= '".$end."'"); ?> Quote Link to comment Share on other sites More sharing options...
Maq Posted November 19, 2009 Share Posted November 19, 2009 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"; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.