Re: [PHP4BETA] Warning - MySQL result set
| From: | Martin Samesch | Date: | Sun, 12 Mar 2000 12:37:48 +0000 |
| Subject: | Re: [PHP4BETA] Warning - MySQL result set | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-11933@lists.php.net to get a copy of this message | ||
Hi Vadim,
> Vadim Tkachenko wrote:
>
> <?
> $link=mysql_pconnect("localhost","wwwbuser","qWeRtY");
> $res=mysql_query("use test",$link);
> echo "Result:".$res;
> ?>
Maybe it works this way:
<?
[some stuff]
$query="put_your_query_here";
$link = mysql_pconnect("localhost", "wwwbuser", "qWeRtY");
$res = mysql_db_query("test",$query);
echo "Result:" . $res;
[more stuff]
?>
Cheers,
Martin