CVS update: php3/examples/album

From: Date: Sun, 10 Jan 1999 15:38:04 +0000
Subject: CVS update: php3/examples/album
Groups: php.dev 
Request: Send a blank email to php-dev+get-3446@lists.php.net to get a copy of this message
Date: Sunday January 10, 1999 @ 10:38 Author: rasmus Update of /repository/php3/examples/album In directory asf:/u/temp/cvs-serv28543/examples/album Modified Files: upload.php3 Log Message: Add a site Index: php3/examples/album/upload.php3 diff -c php3/examples/album/upload.php3:1.7 php3/examples/album/upload.php3:1.8 *** php3/examples/album/upload.php3:1.7 Fri Nov 14 17:00:34 1997 --- php3/examples/album/upload.php3 Sun Jan 10 10:38:04 1999 *************** *** 44,56 **** if($album=="none") { $album = $new_album; } ! if(mysql_query("insert into photos values ('uploads/$file_name','$album','$desc')")) { $size = getimagesize("uploads/$file_name"); echo "You uploaded this photo:<P><img src=\"uploads/$file_name\" $size[3]><br>"; echo stripslashes($desc); $page="received"; } else { ! echo "Unable to insert the photo in the database<P>\n"; } } --- 44,56 ---- if($album=="none") { $album = $new_album; } ! if($ret=mysql_query("insert into photos values ('uploads/$file_name','$album','$desc')")) { $size = getimagesize("uploads/$file_name"); echo "You uploaded this photo:<P><img src=\"uploads/$file_name\" $size[3]><br>"; echo stripslashes($desc); $page="received"; } else { ! echo "Unable to insert the photo in the database ($ret)<P>\n"; } } -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3446) next »