Please read the Documentation. mysql_real_query is only needed for passing binary data in a query in all other cases mysql_query is used. Mithun