hi all
i have two servers,database server and web server, both are appach
server
i try to connet to db by php
<?
$db=mysql_connect("db server ip");
if(!$db)
{
echo"error";
exit;
}
$name="dbname";
mysql_select_db($name , $db);
$query=" select username from login where password ='sql'";
$result=mysql_query($query);
echo "<p>user name ".$result."</p>";
?>
this is output
username Resource id #3
what is this???
thank u all
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/