Tem
13.05.2009, 12:28
Вообшем что я тут неправельно сделал ? нехочет скрипт работать.
<?php include ('config.php'); $ok = $_GET['ok']; $search = $_GET['search']; echo '<form action="" method="get"> <input name="search" type="text" value=""> <input type="submit" value="Send"> </form>'; if (isset($search)) { $result = mysql_query("SELECT title,full FROM link WHERE full like '%$search%'"); // printing HTML result while ($row = mysql_fetch_assoc($result)) { echo ' <table witdth="100%" height="100%"> <tr> <b>'.$row["title"].'</b><br> <u>'.$row["full"].'</u> </tr> </table>'; } } ?>
<?php include ('config.php'); $ok = $_GET['ok']; $search = $_GET['search']; echo '<form action="" method="get"> <input name="search" type="text" value=""> <input type="submit" value="Send"> </form>'; if (isset($search)) { $result = mysql_query("SELECT title,full FROM link WHERE full like '%$search%'"); // printing HTML result while ($row = mysql_fetch_assoc($result)) { echo ' <table witdth="100%" height="100%"> <tr> <b>'.$row["title"].'</b><br> <u>'.$row["full"].'</u> </tr> </table>'; } } ?>