Hi there,
I'm having a hard time quoting SQL string properly, I want to know if there's a program or a website that can help me quote the string correctly. Where I can enter the SQL strings then the website will analyze and quote it for me. Or maybe a program.. I need it cause I'm having a trouble with them..
Sorry for not providing a detailed information about my question, I have this SQL string. I got it from a book, But I'm having a hard time quoting it properly.
$sql = "INSERT INTO books(title, author, isbn, publisher, year, summary) VALUES (" .$conn->quote($_POST['title']) .
', ' . $conn->quote($_POST['author']) .
', ' . $conn->quote($_POST['isbn']) .
', ' . $conn->quote($_POST['publisher']) .
', ' . $conn->quote($_POST['year']) .
', ' . $conn->quote($_POST['summary']) .
')';
You can see that there are many quotes happening there! I got it from a book, but when it comes a time where I need to devise my own SQL string with the same difficulty like that, maybe I'll split.
Do you have a recommendation where a website or a program can help me escape/quote the strings properly?