MySQL Forums
Forum List  »  PHP

Re: Tool to Update .ibd files
Posted by: Michael Smith
Date: July 04, 2019 01:29PM

I have to apologize them I am very new to the syntax of PHP.

Here is what I have tried:

$servername = "localhost";
$username = "root";
$password = "test";
$dbname = "dbadvert01";

$conn = new mysqli($servername, $username, $password, $dbname);
$qry = "SELECT serialno, category, graphic01, webaddress01 FROM advert04b";
$res = "mysqli( $conn, $qry )" ;
$img = "file_get_contents( 'c:\TriCounty01.JPG' )"

$sql = "update advert04b set graphic01 = '$img' where serialno = 1";

I get an error message at the last line that starts with $sql


Options: ReplyQuote

Written By
Re: Tool to Update .ibd files
July 04, 2019 01:29PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.