Re: Re: ASP to PHP language problems
| From: | Alistair Hayward | Date: | Wed, 10 Mar 2004 23:04:34 +0000 |
| Subject: | Re: Re: ASP to PHP language problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180061@lists.php.net to get a copy of this message | ||
This is what I have:
<?php
$connection = mysql_connect("localhost","root","batman");
if (!$connection) {
echo "Couldn't make a connection!";
exit;
}
$db = mysql_select_db("sealhouse", $connection);
if (!$db) {
echo "Couldn't select database!";
exit;
}
$type = $_GET['type'];
$sql = "SELECT * FROM tbCategory WHERE Type =$type order by style";
$resultID = mysql_query($sql, DB);
?>
Chris W. Parker wrote:
Alistair Hayward <mailto:alistair@co-sys.co.nz>on Wednesday, March 10, 2004 2:46 PM said:This is what I get when I try to create the recordset.... Notice: Use of undefined constant DBlink - assumed 'DBlink' in D:\Development\Completed\Sealhouse\phpSealTest\ProductSpecs.php on line 24well you're going to need to do a *little* research on your own. oh what the heck... DBlink is the same as your cnn in your asp code. in other words you still need to create a connection to a database. chris.