Hi,
I've downloaded this catalog-application and it works fine. I inserted a couple of extra fields in the database. But when i want to edit an item i get this error:
Warning: Supplied argument is not a valid MySQL result resource in C:\apache\htdocs\snipegallery\inc\photo.functions.php on line 324
Here's the script:
if ($action=="edit") {
$sql = "SELECT id, title, filename, details, author, location, date, bouwjaar, kleur, price, kmstand, keywords, publish FROM snipe_gallery_data where id='$photo_id'";
$getpic = mysql_query($sql);
list($photo_id, $photo_title, $photo_filename, $photo_details, $photo_author, $photo_location, $photo_date, $photo_bouwjaar, $photo_kleur, $photo_price, $photo_kmstand, $photo_keywords, $photo_publish) =
mysql_fetch_row($getpic);
}
end script.
Line 234 is where the function List() begins.