Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Drop Down Executes Query On Post? Reply To: Drop Down Executes Query On Post?

#170639
MBM
Participant

Yes the other code is not related, it’s an extension of the star rating script.

error_reporting(E_ALL);

(which is awesome by the way)

Gave :

Notice: Undefined variable: result

In previous statements I used result as :

$result = mysql_query("SELECT * FROM table");

So I have changed $Link to result :

$result = mysql_connect($Host, $User, $Password);

The other errors :

Notice: Undefined index: message in filter.php on line 5
$message = $_GET['message'];
Notice: Undefined index: usercomments in filter.php on line 10
$usercomments = nl2br($_POST['usercomments']);

Why are these flagged?!?!?! They work! They are flagged in other pages as well.

The final error :

Warning: mysql_fetch_row(): supplied resource is not a valid MySQL result resource in filter.php on line 39

Line 39 :

WHILE($row = mysql_fetch_row($result)):