Thread: PhP Questions
View Single Post
Old 20-02-2007, 22:46   #2 (permalink)
SpooF
Registered User
 
SpooF's Avatar
 
Join Date: Feb 2007
Posts: 31
Quote:
Originally Posted by mgpwr
1) How do i get only the last three entries into a database to display, also with the last first, hoowever i am assuming it will still be SELECT * FROM 'example' ORBER BY DESC

SELECT * FROM 'example' ORBER BY DESC LIMIT 3

Quote:
Originally Posted by mgpwr
2) How would i get a file uploaded, and depending on what checkbox is checked depends were the file is uploaded to!

Do you want it to be uploaded to more than one directory? If so then you can use a foreach statement with your check boxs. By making the name variable[] when you grab the variable php will see it as an array. Then you can use the foreach statement.
  Reply With Quote