No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
Hello guys! Greetings to everyone! I have tried the following code but it doesn't display images, it only stores data. [B]Here's the code in displaying images:[/B] <?php if ($submit) { $link=mysql_connect("localhost","root","1234"); if(!$link) die("Could not connect to MySQL"); $db=mysql_select_db("test",$link); $data = addslashes(fread(fopen($form_data, "rb"), filesize($form_data))); $result=MYSQL_QUERY("INSERT INTO binary_data (description,bin_data,filename,filesize,filetype) ". "VALUES ('$form_description','$data','$form_data_name','$form_data_size','$form_data_type')"); … |