It is possible to write the INSERT INTO statement in two forms. The first form doesn't specify the column names where the data will be inserted, only their values: INSERT INTO table_name VALUES (value1, value2, value3,...) The second form specifies both the column names and the values to be inserted: INSERT INTO table_name (column1, column2, column3,...) VALUES (value1, value2, value3,...)
existem 2 formas, a que eu fiz foi a segunda nao? po se nao esta errado o q esta?
nas actions de cada campo do bottom eu coloquei grava.php e pelo menos funfou mas aparece esse erro oh
Notice: Undefined index: nome in C:\wamp\www\cadastro estrela\grava.php on line 3 Notice: Undefined index: email in C:\wamp\www\cadastro estrela\grava.php on line 4 Notice: Undefined index: dedicatoria in C:\wamp\www\cadastro estrela\grava.php on line 5 Warning: mysql_query() expects at most 2 parameters, 3 given in C:\wamp\www\cadastro estrela\grava.php on line 10 A consulta nao foi executada!
RESOLVI e nao tinha nada a ver com o $tabela ( bla bla blah) nao. Mexi ali acola e ai funfou, nem sei exatamente o q eu fiz eoaieoiaeoaioea