Re: [PHP] formatting logic

2005-04-21 Thread Andy Pieters
Hi First, execute your query unset($fail); $res=mysql_query($sql,$dbhandle) or $fail=true; if( (isset($fail)) || (!(is_resource($res)) ) echo "There was a problem with the execution of the query"; if(mysql_num_rows($res)==0) echo "The query resulted in ZERO records"; #now that's out of the way

Re: [PHP] formatting logic

2005-04-21 Thread Philip Hallstrom
I am allowing our members to upload pictures and they can choose which category the pictures go under, the first category "public" is made for them. When I sql the DB I call it like this: select picture_names<,more fields> from where member_id= order by category. which i display something lik

[PHP] formatting logic

2005-04-21 Thread Ryan A
Hi, Am having a bit of logic problem figuring this outI just think the easy solution would cost me in having too many sql queries from my script so there has to be a easier way. I am allowing our members to upload pictures and they can choose which category the pictures go under, the first ca