> 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
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
2 matches
Mail list logo