February 5, 201214 yr hi all is it possable to make a php swich from a mysql statement ie <?php $s = "SQL CODE"; $r = mysql_query("sql); switch($p) { while ($row = mysql_fetch_array($result)) { case '$row[\'case\']': $pg = $row['pg']; $title = $row['title']; break; } } ?>
February 5, 201214 yr to point out the obvious... anno how silly of me... run the code on your machine and try it out...
Create an account or sign in to comment