View Single Post
  #3 (permalink)  
Old 05-14-04, 11:44 AM
Bonzo's Avatar
Bonzo Bonzo is offline
Coding Addict
 
Join Date: Jan 2004
Posts: 340
Thanks: 0
Thanked 0 Times in 0 Posts
This line works OK for me

mysql_query ( "INSERT INTO photos ( image ) VALUES ('$filename' )" )

photos = database, image = column name, $filename = the name of the image

Trouble is I can never read anyone elses code as well as mine : (
PHP Code:

// This is the line I use in my form as well

<form enctype='multipart/form-data' action='$PHP_SELF' method='post'
How about just trying a simple upload and get rid of all the " if " & " else " to get it working first ?

Anthony

P.S. To the cleverer here than me ( most others here and defiinatly NeverMind ! ).

Would it be possible to do away with all the if & elses and use a/some functions instead ? I have yet to learn/get one to work yet.

Last edited by Bonzo; 05-14-04 at 11:55 AM.
Reply With Quote