select_one("SELECT COUNT(*) FROM gateway WHERE id='".$matches[1]."'") == 1) { $id = $matches[1]; } else { print $matches[1]."
\n"; die ("404 page not found : ".$_SERVER['SCRIPT_NAME'].$_SERVER['PATH_INFO']); } } else { die ("404 page not found : ".$_SERVER['SCRIPT_NAME'].$_SERVER['PATH_INFO']); // header('Location: /index.php'); } //print $id; //print "SELECT * FROM items WHERE items.id='$id'"; $gateway = $MySQL->select_row("SELECT * FROM gateway WHERE gateway.id='$id'"); ?> <?php $underscoreName = str_replace("_", " ", $gateway['title']); print $underscoreName; ?>