Hello,
I am working on a website using a MySQL database, certain pages contain tables from the database. Also there is an admin where someone can edit (replace) values in the table. Everything is working, but I have one problem. A row in the table is named 'Best Moment' which contains a space, and there for the code below crashes. So I was wondering if there is anyway to bypass this problem, without having to remove the space (since the table will be build on the website and thus requires the space)
if($momentnew) {
$sql = "UPDATE Lieneke SET Best moment = REPLACE(Best moment,'$moment','$momentnew')";
$query = mysql_query($sql) or die(mysql_error()); }
Thanks in advance!