L
L
Lumore2014-11-09 14:05:22
PHP
Lumore, 2014-11-09 14:05:22

How to fix error with SQL query?

Please help me to fix the error in SQL query:

$result = mysql_query("UPDATE `users` SET `name`='".$name."',`surname`='".$surname."' WHERE `email`='".$email."' ");

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Lipatov, 2014-11-09
@Rendalf

For the future, I advise you to forget about functions like mysql_function () and rather move to mysqli or PDO

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question