Warning: mysql_result():

Error mi kaže

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in…

i pokazuje ovu liniju…

if ($mysql->query ($query)) {
if (mysql_result ($result, 0) > 0) {

može pomoć?

Malo opširniji kod

	if ($reg_email != '') {
		if (preg_match ('/^[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i', $reg_email)) {
			$query = "SELECT COUNT(*) AS result FROM user WHERE email='$reg_email'";
			if ($mysql->query ($query)) {
				if (mysql_result ($result, 0) > 0) {
					echo '<div style="color:red;">A User Account with this email address aready exists.</div>'."\n";
					$email = false;
				}
				else {
					$email = $reg_email;
				}
			}
			else {
				$email = false;
				message ($mysql->error);
			}
		}
		else {
			echo '<div style="color:red;">Email address is invalid.</div>'."\n";
			$email = false;
		}
	}
	else {
		echo '<div style="color:red;">Please enter a valid email address.</div>'."\n";
		$email = false;
	}

[quote=“Josip Balić”]if ($mysql->query ($query)) {[/quote]if ( $result = $mysql->query( $query ) )
{

isto mi javlja :S

Sorry, brzo tipkanje, ajd probaj s ovim:

if ( $result = mysql_query( $query ) )
{

uspilo hvala


Copyright © 2020 WM Forum - AboutContact - Sponsored by: Mydataknox & Webmaster.Ninja