Re: [PHP] insert & select image in mySQL

2002-01-24 Thread Stephane Pinel
> Try this code. It assumes you are already connected to the database. > Usually, I put that script in something like database.inc and just do an > include. > > mysql_connect ("mysql_server", "username", "password"); > mysql_select_db("database_name"); > $sql = mysql_query("SELECT image, type FR

RE: [PHP] insert & select image in mySQL

2002-01-20 Thread Alex Dowgailenko
Try this code. It assumes you are already connected to the database. Usually, I put that script in something like database.inc and just do an include. pid is the picture id. I'll assume you'll have an index or something in your database setup. Now, type is based on the extension of the file rea