what's wrong with the following script -

<?php

if (empty($hidden)) {
displayform();
exit;
}

$site= 'db.alphabot.f2s.com';
$usernames = 'alphabot';
$passwords = 'money';
$dbName = 'alphabot';
$connect = mysql_connect($site,$usernames,$passwords);
mysql_select_db($dbName,$connect);
$result = mysql_query("SELECT ID, rank, description FROM sites WHERE 
description LIKE '%$query%' ",$connect);
echo $result;



function displayform() {
global $PHP_SELF;
?>
<form method="GET" action="<?php echo $php_self;?>">
        <input type="text" size="20" name="query">
        <input type="hidden" name="hidden" value="true">
        <input type="hidden" name="shown" value="0">
        <input type="submit" name="B1" value="Submit"><br>
        <table cellpadding="0" cellspacing="0" border="0">
        <td><input type=radio name=all checked value=no></td>
        <td><font face="Arial" size="1">Any Of the words</font></td>
        <td><input type=radio name=all value=yes></td>
        <td><font face="Arial" size="1">All Of The Words</font></td>
</form>
<?php
}
?>


P.S. I don't know when php 5 is coming out.
aHaHaHa
hehehe
hohoho
merry christmas

thanks
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to