Unable to insert data in mysql table with php -


Here a few years ago I had a little fashion program (it worked then ...) as I recently It was on my new "website", no data has been entered in my table ...

(when I run it, I do not get any error message) < / P>

If anyone tells me what is wrong, I would be very happy THX!


  // data, from a form on another page, which I want to put in my db $ name = $ _POST ['nom']; $ Prenom = $ _POST ['prenom']; $ Date = $ _POST ['date']; $ Identifiant = $ _POST ['Identifier']; $ Password = $ _POST ['password']; // Connection to my database- $ connexion = mysql_connect ("mysql5.000webh.com", "a888888_user", "mypassword"); Mysql_select_db ("a888888_mydatabase", $ connection); // SQL query $ requete build and send = "Enter the values ​​in the panel values ​​(" ',' $ name ',' $ param ',' $ date ',' $ identifiant ',' $ password ') "mysql_query ($ Requete); Echo "You are with your friends and friends!"; ('Page.html'); // Close Mysql Connection mysql_close ();   
< Instead of performing your query as straightforward as your query,
  mysql_query ($ requete);  

Use a variable to use a variable to get the result of the query,

  $ result = Mysql_query ($ requete);   

Use a simple test now whether or not your query has been executed, only if using a statement and then viewing the error Use the mysql_error () function. / P>

  if (! $ Result) {dead (mysql_error ());}    

Comments