I need to do a select or a insert based in a variable Something like this.... $select = "SELECT * FROM TABLE1" and after i do the select above with is in the variable... All help is important... Thanks Fernando -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]