spertuit Posted July 17, 2013 Share Posted July 17, 2013 Can anyone see why my results would return more than 20 rows? $query = "SELECT * FROM mailer "; $limit = "ORDER BY id LIMIT 20 "; $result = mysql_query($query.$limit); if (!$result) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; die($message); } $address = 0; while ($row = mysql_fetch_assoc($result)) { $id=$row["id"]; $email=$row["email"]; $companyID=$row["companyID"]; } Link to comment https://forums.phpfreaks.com/topic/280249-mysql-limit/ Share on other sites More sharing options...
spertuit Posted July 17, 2013 Author Share Posted July 17, 2013 Nevermind, the problem was in the second part of my script. This seems fine. Link to comment https://forums.phpfreaks.com/topic/280249-mysql-limit/#findComment-1441108 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.