Where is the error ?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
silgol
Forum Newbie
Posts: 11
Joined: Fri Jan 24, 2003 1:31 pm

Where is the error ?

Post 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

?>
Rob the R
Forum Contributor
Posts: 128
Joined: Wed Nov 06, 2002 2:25 pm
Location: Houston

Post 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.
Post Reply