Page 1 of 1

Where is the error ?

Posted: Fri Jan 24, 2003 1:31 pm
by silgol
<?
$hostname = "servidor";
$username = "xx";
$password = "xxxxx";
$dbName = "zzzz";

MSSQL_CONNECT($hostname,$username,$password) or DIE("DATABASE NO RESPONDE");
$result = MSSQL_QUERY("Update Intranet Set Importe = 0 where Clave = 12");
if(!$result){
echo "Update Data Error<br>";
}
//echo "Update Data Success";

?}>

Code: Select all

<?php

?>

Posted: Fri Jan 24, 2003 2:12 pm
by Rob the R
It would be helpful if you would say exactly what error you are getting, but... It appears to me that you are missing a call to mssql_select_db after connecting to the host.