Jump to content

Very quick question :)


futurewii

Recommended Posts

Hey all, this one will probably only be a very simple error but I can't get my head around it  :-[

 

I am creating a list of schedules for an airline website, In the MYSQL i have fields called mon,tue,wed etc. which have a 1 in if its a day that it flys and a 0 if it doesnt. Im trying to replace the 1 and 0s with images on the page which I have managed to do, but for some reason it also shows the 1 or 0 after too? Here's the page.. (it's only on the Monday column at the moment)..

www.flyonesky.org/new_tmp/schedules.php

 

print "<td>";
		if($row['mon'] ==0){
		echo include 'images/icons/bdot.php';
		}
		elseif ($row['mon'] >0) {
		echo include 'images/icons/gdot.php';
		}
		print "</td>";

 

That's the code for the monday column, any posts would be greatly appreciated  ;D

Link to comment
https://forums.phpfreaks.com/topic/158741-very-quick-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.