Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~964 People Reached
Favorite Forums
Favorite Tags
Member Avatar for twmprys

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 …

Member Avatar for diafol
0
587
Member Avatar for twmprys

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 …

Member Avatar for mwasif
0
152
Member Avatar for twmprys

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');

Member Avatar for PoA
0
122
Member Avatar for twmprys

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 …

Member Avatar for twmprys
0
103