No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
I'm trying to display in a web page all the images stored in a database. THis is my code, but it only displays the first picture: [code=php]<?php include "cysylltiad.php"; $result = mysql_query("SELECT * FROM files ORDER BY fid"); while($row = mysql_fetch_array($result)){ header("Content-Type: {$row['type']}"); echo $row["content"]; } ?>[/code] where content is … ![]() | |
Yes, I know this is a common one, but I've inserted images in a database and can't for the life of me get them to display. And before anyone suggests I shouldn't do it, they are only small pictures and a maximum of four. I am currently using two pages … | |
Sorry to ask such a stupid question, but can't understand why this simple instruction to upload a file (passed from an html form) isn't working: move_uploaded_file($_FILES['pic']['tmp_name'], 'files/pic.jpg'); | |
Hello, hope someone can help. I've created a simple interface for a website owner to carry out very limited editing. On the first page, there's a form which uploads just one picture to a picture folder and inserts text into a database field. That works fine. Now I need to … |
The End.