Baby, I miss you, I have to work hard, or I miss you more.
Use OR Die after each mysql_; this, once the program is wrong, it is easy to debug!
For example: $ cssql = "Select * from $ TABLENAME"; $ CSRESULT = mysql_query ($ cssql) or Die (mysql_error ()) ;;