What is the possible error?

In the browser it just says mysql_error. What is the possible error?


Answer 1, authority 100%

or die (mysql_error())

mysql_error is a function.


Answer 2, authority 25%

Didn’t close the database request`

mysql_query("insert into cart (***) values (***)") or die (mysql_error);


Answer 3, authority 25%

Combining both answers:

Error in request values ​​(***”)

so the request “dies”

should work out an error, but it is also written with an error, because “mysql_error is a function” (c)@Sh4dow

correct spelling:

mysql_query(“insert into cart (******) values ​​(******)”) or die (mysql_error());

http://www.php.su/functions/?mysql-query