Mod-Jay Posted September 4, 2010 Share Posted September 4, 2010 Error: No error, Im have trouble Having This Loop Select Only 2 Uploads At a Time. Code: <?php //porperties $result = mysql_query("SELECT * FROM uploaded"); while($r=mysql_fetch_array($result)) { $link=$r["link"]; $name=$r["name"]; $type=$r["type"]; $size=$r["size"]; $date=$r["date"]; $id=$r["id"]; echo " The File $name Was Currently Updated<br> Size: $size<br> Type: $type<br> Date Updated: $date<br> Link: <a href='$link'>Download</a><br><br> "; } ?> Couldn't Think of a Good name For this,Sorry Link to comment https://forums.phpfreaks.com/topic/212519-selecting-a-certain-amount/ Share on other sites More sharing options...
sasa Posted September 4, 2010 Share Posted September 4, 2010 $result = mysql_query("SELECT * FROM uploaded LIMIT 2"); Link to comment https://forums.phpfreaks.com/topic/212519-selecting-a-certain-amount/#findComment-1107195 Share on other sites More sharing options...
Mod-Jay Posted September 4, 2010 Author Share Posted September 4, 2010 LOLLOLL THANK YOU, I was doing $result = mysql_query("SELECT *(2) FROM uploaded"); Instead of $result = mysql_query("SELECT * FROM uploaded"); now i got $result = mysql_query("SELECT * FROM uploaded LIMIT 2"); THANKS SASA Link to comment https://forums.phpfreaks.com/topic/212519-selecting-a-certain-amount/#findComment-1107205 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.