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 Quote 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"); Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/212519-selecting-a-certain-amount/#findComment-1107205 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.