Never really done this before so kind of new with it all. I tried to find an answer at php.net, no luck.
Here is the script that handles what I want to echo:
PHP Code:
$count = 1 + $s ;
//Table within Loop echo "<table border=\"1\" align=\"center\">"; echo "<tr><th>Item</th>"; echo "<th>System Name</th>"; echo "<th>Room</th>"; echo "<th>Brand</th>"; echo "<th>School</th>"; echo "<th>Sticker</th></tr>";
// now you can display the results returned while ($row= mysql_fetch_array($result)) { $title = $row["item"]; $title2 = $row["computer_name"]; $title3 = $row["room"]; $title4 = $row["brand"]; $title5 = $row["school"]; $title6 = $row["sticker"]; echo "<tr><td>"; echo " $title"; echo "</td><td>"; //echo " $title2"; if ($title== "printer") { echo '<a href=" http://'.$title2.'" target="_blank">'.$title2.'</a>'; } else { echo '<a href=" http://'.$title2.':5800" target="_blank">'.$title2.'</a>'; }
What i want is to be able to make the expression a wild char
PHP Code:
if ($title== "printer")
and echo the true/false statement
|