Just check what you are getting in $sql_1 by echoing as: echo "SQL Query=".$sql_1; It may solve your problem. Regards Sandesh I Roshan Shahare <roshan.shahare@xxxxxxxxxxx> wrote: We are facing problem of the fetching the rows from the table which we created temprary we are able to fectch the recrods through the phpmyadmin but unable form code $sql_1 = "SELECT * FROM ".$tableNames." limit 0,10"; $res1_e = mysql_query($sql_1) or die(mysql_error()); $nrows =mysql_num_rows($res1_e); while($row_info = mysql_fetch_array($res1_e)) { echo "<br>".$row_info['id']; } --------------------------------- Now you can chat without downloading messenger. Click here to know how. [Non-text portions of this message have been removed] Thanks & Regards, Sandesh S. Magdum Mob. No. 9890661108 Jr. Software Developer IOL Cybertech Pvt. Ltd. AB01-A, Neelam Centre, Hind Cycle Road, Worli Mumbai-400030, INDIA. Tel.: +91 22 66120151. --------------------------------- Share files, take polls, and discuss your passions - all under one roof. Click here. [Non-text portions of this message have been removed]