Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   Need Help in PHP MySQL? (http://www.go4expert.com/forums/help-php-mysql-t28979/)

AimyThomas 30Aug2012 14:47

Need Help in PHP MySQL?
 
PHP MySQLI code not working

$q = "UPDATE users SET password = '6c55803d6f1d7a177a0db3eb4b343b0d50f9c111' WHERE id = '1';";
mysqli_query($dbc, $q);

Dot knows but some cause it keeps giving me the following error:

Warning: mysqli_query()

Expects parameter 1 to be mysqli, null given


Can anyone help me

Thanks in advance

shabbir 30Aug2012 14:54

Re: Need Help in PHP MySQL?
 
Moved to PHP forum.

Also the error is pretty self explanatory.

parameter 1 to be mysqli, null given which means your $dbc variable is null.


All times are GMT +5.5. The time now is 18:57.