PHP error when using mysql related functions -


I have another script that I do not know what's wrong with it. I tried to use

  Error_Reporting (E_ALL);  

To report errors, but it does not report anything. Anyway, here's the code in which I'm having trouble.

  & lt ;? Php error_reporting (E_ALL); $ Username = $ _POST ['user']; $ Email = $ _POST ['Email']; $ Password = MD5 ($ _ POST ['pass']); $ Currname = $ _COOKIE ['ZBrownTechnologyCorporationBeta']; $ Con = mysql_connect ("HOST", "USER", "PASS"); If (! $ Con) {die ('Unable to connect:' .mysql_error ()); } Mysql_select_database ("zach_blogin", $ con); If (empty ($ password)) {$ nothing = "nothing"; } Other {mysql_query ("Update Member SET password = '$ password' WHERE user name = '$ currname'"); } Mysql_query ("Update Member SET email = '$ email' WHERE user name = '$ currname'"); If ($ username == $ quermanman) {$ nothing = "nothing"; } Select from Else {$ query = ("member user name WHERE username = '$ username'");); $ Result = mysql_query ($ query); If (! $ Result) {header ("location:" $ _SERVER ['HTTP_HOST']. "/public_html/Beta/account.php?invalid"); Go out; }} Mysql_query ("UPDATE member SET username = '$ username' WHERE user name = '$ currname'"); Header ("Location:". $ _SERVER ['HTTP_HOST']. "/public_html/Beta/main_login.php?update"); ? & Gt;  

I've seen this code for a while and can not get error reporting to work, so I'm here again

@klinky By request:

While attempting to use this page (named) Myinfo.php) in Opera, this default message indicates that this page and / or server Is not able to find. In Internet Explorer 8, this displays 500 internal server errors.

Here are the server apps: OS: Linux HTTP: Apache v2.0.63 < B> PHP: 5.3.3 MySQL: 5.0.91-community


I looked in the log, and this is an error message:

[Error: September 25, 21:34:08 2010] [Error] [Client 68.52.52.190] PHP Fatal Error: Call Undefined Function in mysql_select_database () / home / zach / public_html / beta / myinfo. Line 12 on php, referer: http://zbrowntechnology.com/Beta/account.php

The only thing I have tried to select from, the database that exists !

There is no underlying function name in it mysql_select_database . I suppose you mean mysql_select_db

change

  mysql_select_database ("zach_blogin", $ con);  

to

  mysql_select_db ("zach_blogin", $ con);  

Comments