<?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;
}
}
?>
Page 1 of 1
dynamic switch
#1
Posted 05 February 2012 - 02:15 PM
hi all is it possable to make a php swich from a mysql statement ie
#7
Posted 05 February 2012 - 03:30 PM
to point out the obvious... anno how silly of me... run the code on your machine and try it out...
Share this topic:
Page 1 of 1
Help




















