FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » isset not working with select
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
isset not working with select [message #181342] Mon, 13 May 2013 11:01 Go to previous message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma:
Senior Member
http://mroldies.net/showtable.php?year=1960



$result = mysql_query("SELECT acover,bcover FROM A$year WHERE id =
$number");
if (!$result) { echo 'Could not run query: ' . mysql_error(); exit; }
$cov = mysql_fetch_row($result);


if (isset($cov[0]))
{echo "<img src='http://mroldies.net/covers/$year/".$cov[0]."'>";}
echo "<img src='http://mroldies.net/covers/$year/".$cov[1]."'>";

On item #1 in the table, the panel appears with the desired images as
wanted.
On item #2 image place holders appear because I do not have them online
yet.
I do not want to see the place holders if there is not an image.
What to use to do that?

Also, if you click on 1961, or any other year, and then any item in the
table, you will get a message below the videos stating the column does not
exist so it can't continue processing.
How can I bypass this when that database does not have that column?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mkdir no such file or directory
Next Topic: makes searching and booking applications airfares
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 02:43:56 GMT 2024

Total time taken to generate the page: 0.03794 seconds