RE: [PHP-DB] PHP5 is coming out!!!
| From: | Mark Roedel | Date: | Tue, 01 May 2001 13:22:59 +0000 |
| Subject: | RE: [PHP-DB] PHP5 is coming out!!! | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-9014@lists.php.net to get a copy of this message | ||
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 (roedelm@letu.edu) || "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:htmltec@hotmail.com]
> Sent: Tuesday, May 01, 2001 2:53 AM
> To: php-db@lists.php.net
> 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
> }
> ?>