topical media & game development
basic-php-11-db-insertpics.php / php
<?php
require("./includes/conn_comic.php");
success = mysql_query(conn) or die(mysql_error());
echo "Database Created. . .";
mysql_select_db("postcard", sql = "CREATE TABLE images (id int NOT NULL primary key
auto_increment, img_url VARCHAR(255) NOT NULL,
img_desc text)";
sql, path = "http://" . _SERVER['PHP_SELF']),"/"));
path . "postcards/";
imgDESC = array('Wish you were here!', 'See you soon!',
'Our Sympathies', 'Congratulations!');
for (i<4; sql = "INSERT INTO images ( images.img_url , images.img_desc )
VALUES ( 'imagepathimgURL[imgDESC[success = mysql_query(conn) or die(mysql_error());
}
echo "Data entered. . ."
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.