|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-07-11 04:57 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 11:00:02 2025 UTC |
$fd = fopen ($imagefile, "r"); $imagedata = addslashes ( fread ( $fd, filesize ($imagefile) ) ); fclose ($fd); $link = mysql_connect ($Hostname, $Username, $Password) or die (mysql_errno($link).mysql_error($link)); $db = mysql_select_db ($Database, $link) or die (mysql_errno($link).mysql_error($link)); $query = "INSERT INTO $TableBanner (id, image) VALUES ('NULL', '$imagedata')"; @mysql_query ($query, $link) or die (mysql_errno($link).mysql_error($link)); mysql_close ($link);