Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a8834432/public_html/secure/index.php on line 11
while($row = mysql_fetch_array( $result )) {
<?php include 'dbc.php'; // As functions.php is not included //$mysql = new mysql(HOST, USER, PASSWORD, DATABASE); //mysqli_select_db($DATABASE)or die("cannot select DB"); $usr = $_POST['user']; $pas = $_POST['pass']; $sql = "SELECT * FROM `website` WHERE user = '$usr'"; $result = mysql_query($sql); while($row = mysql_fetch_array( $result )) { // } if ($result->num_rows = 0 ) { echo("noreults"); echo(header("..\secure.php?error=E2")); } ?>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)