Erm...can you give us a bit more information?
Does the script bring up an error message? If so, what does it say? If
not, what specifically makes you think there's something wrong with it?
(What results do you get? How are they different from what you
expected?)
---
Mark Roedel ([EMAIL PROTECTED]) || "There cannot be a crisis next week.
Systems Programmer / WebMaster || My schedule is already full."
LeTourneau University || -- Henry Kissinger
> -----Original Message-----
> From: Selvin Sakal [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 01, 2001 2:53 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] PHP5 is coming out!!!
>
>
> 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
> }
> ?>
--
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]