mrdeleigh Posted November 25, 2006 Share Posted November 25, 2006 I need a small bit of php which will achive this:check if the value in the column "X" of the "Y"table is empty (and show AAA.jpg) and if not show BBB.jpgcan someone help?mrdeleigh Link to comment https://forums.phpfreaks.com/topic/28428-php-help/ Share on other sites More sharing options...
ataria Posted November 25, 2006 Share Posted November 25, 2006 [code]<?php $check = mysql_num_rows(mysql_query("SELECT `x` FROM `y`"));if ($check == '0') {echo "<img src=/AAA.jpg>";}else {echo "<img src=/BBB.jpg>";}?>[/code] Link to comment https://forums.phpfreaks.com/topic/28428-php-help/#findComment-130085 Share on other sites More sharing options...
mrdeleigh Posted November 25, 2006 Author Share Posted November 25, 2006 thanks I'll try that Link to comment https://forums.phpfreaks.com/topic/28428-php-help/#findComment-130107 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.