<?php if($row_Recordset1['imagecolumn']) echo '<img src="'.$row_Recordset1["imagecolumn"].'">';
?> Peter -----Original Message----- From: Becoming Digital [mailto:[EMAIL PROTECTED] Sent: 03 June 2003 20:57 To: [EMAIL PROTECTED] Subject: Re: Mysql / PHP image link problem. FWIW, there is a PHP-DB mailing list that might prove more helpful to you. I know certain folk on both lists can get mighty annoyed when an off-topic question is posted, so I thought I'd give you a heads-up. [EMAIL PROTECTED] Edward Dudlik Becoming Digital www.becomingdigital.com ----- Original Message ----- From: "Daniel Crompton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, 03 June, 2003 14:20 Subject: Mysql / PHP image link problem. I have a mysql table column called 'imagecolumn' The rows contain links i.e. image.gif image.gif null image.gif image.gif To display in my web page im using: <img src="<?php if($row_Recordset1['imagecolumn']) echo $row_Recordset1['imagecolumn']; ?>"> This displays the above images in my html page The problem i have is where the field in my table is left blank (null), a web browser shows this as a broken image link icon. i.e. it doesn't ignore it. Does anyone know how I can get my page to ignore it if there is no link. -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]