Jump to content

File selecting not working


EPCtech

Recommended Posts

Hi,

I have an upload file system so that users may post their own games on my website for my visitors to play. It's supposed to select files that only the user has posted. But for some reason it selects all files or half of the files.

 

$sql=mysql_query("SELECT * FROM myfiles WHERE user='".$USERname."' AND (file LIKE '%.zip') OR (file LIKE '%.gmk') OR (file LIKE '%.exe')");

This code gets me files from a user named "coffee".

 

Is there anything wrong with my code? I hope I described it well enough.

 

En-Psyche

Link to comment
https://forums.phpfreaks.com/topic/162011-file-selecting-not-working/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.