Hi, I'm sorry to post this lame question, but if you would help me out, I will greatly appreciate it. Okay, here goes.
When I use this...
$query = "SELECT I.filename AS filename FROM $index AS I WHERE I.filename = $filename";
$result = mysql_query($query, $db) or die("AHHhhh!");
my script dies.
I know this is the problem because when I use something like:
$query = "SELECT * FROM $index";
$result = mysql_query($query, $db) or die("AHHhhh!");
the query is succesful.
Please help me if you can.
By the way, this query works properly when run manually.
Thanks.