Listen I had a similar problem. First of all put at your select statement quotes when you say that something equals a variable, like this: [code=php:0] $sql = "select * from uploadid where pcfid='$lookupid',original,pcffull,ip,size"; [/code] Then maybe you must specify what is ($lookupid,original,pcffull,ip,size) inside your code, before the query. Check if it is possible the record pcfid to hold so many values. If it is then echo it to see what it contains. Then put [code=php:0] $rs=mysql_query($sql,$conn); $row = mysql_fetch_assoc($rs); [/code] Good Luck!