MySQL Forums
Forum List  »  PHP

Re: Tool to Update .ibd files
Posted by: Michael Smith
Date: July 02, 2019 11:50PM

Here is what I tried:

$img = file_get_contents( 'c:\xamp-server\mysql\data\dbadvert01\TriCounty01.JPG' );

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

This does not use "Insert" because I needed "Update" to get it in the right place.

This code generates no error messages but when I view the table there is no appearance of the .jpg file.


Options: ReplyQuote

Written By
Re: Tool to Update .ibd files
July 02, 2019 11:50PM

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.