Search found 7 matches
- Thu Jan 21, 2021 9:34 am
- Forum: PHP - Code
- Topic: Error Message!
- Replies: 14
- Views: 26096
Re: Error Message!
new-article.php <?php require 'includes/database.php'; if ($_SERVER["REQUEST_METHOD"] == "POST") { $conn = getDB(); $sql = "INSERT INTO article (title, content, published_at) VALUES ('" . $_POST['title'] . "','" . $_POST['content'] . "','" . $_POST[...
- Wed Jan 20, 2021 11:29 am
- Forum: PHP - Code
- Topic: Error Message!
- Replies: 14
- Views: 26096
Re: Error Message!
The magic quotes were already turned off:
magic_quotes_gpc=Off
magic_quotes_runtime=Off
magic_quotes_sybase=Off
magic_quotes_gpc=Off
magic_quotes_runtime=Off
magic_quotes_sybase=Off
- Wed Jan 20, 2021 5:23 am
- Forum: PHP - Code
- Topic: Error Message!
- Replies: 14
- Views: 26096
Re: Error Message!
How do I turn off the magic quotes?
- Tue Jan 19, 2021 4:56 pm
- Forum: PHP - Code
- Topic: Error Message!
- Replies: 14
- Views: 26096
Re: Error Message!
I am using version 7.3
- Tue Jan 19, 2021 3:12 pm
- Forum: PHP - Code
- Topic: Error Message!
- Replies: 14
- Views: 26096
Re: Error Message!
Is this what you mean Ben: <?php require 'includes/database.php'; if ($_SERVER["REQUEST_METHOD"] == "POST") { $conn = getDB(); $sql = "INSERT INTO article (title, content, published_at) VALUES ('" . $_POST['title'] . "','" . $_POST['content'] . "','"...
- Tue Jan 19, 2021 9:58 am
- Forum: PHP - Code
- Topic: Error Message!
- Replies: 14
- Views: 26096
Re: Error Message!
Is this what you mean Benjamin: <?php $db_host = "localhost"; $db_name = "cms"; $db_user = "cms_www"; $db_pass = ""; $conn = mysqli_connect($db_host, $db_user, $db_pass, $db_name); if (mysqli_connect_error()) { echo mysqli_connect_error(); exit; }
- Mon Jan 18, 2021 7:48 am
- Forum: PHP - Code
- Topic: Error Message!
- Replies: 14
- Views: 26096
Error Message!
Hi Guys, I have been practicing running a test page called new-article.php . How ever when I click the [Add button I get the message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'clock', '','')' at line 2 Her...