note 59776 rejected from function.mssql-select-db by dmytton
| From: | dmytton@php.net | Date: | Thu, 15 Dec 2005 16:44:15 +0000 |
| Subject: | note 59776 rejected from function.mssql-select-db by dmytton | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-100208@lists.php.net to get a copy of this message | ||
Note Submitter: richard at glass-technology dot com
----
Thats my script but its just not displaying the details. How ever the ref & customer are passed
over in the url.
beta/letters/?customer=Zengeya&ref=GT/05/110
<?php
include 'db.php';
$id = $_REQUEST['id'];
$query = "SELECT id, customer, ref FROM contacts WHERE id = '$id' LIMIT 1";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_assoc($result);
?><br />
<br />
<?=$row['ref'];?>
<br />
<br />
<br />
<?=$row['customer'];?>
</div>
Any help in regards to this matter would be much appreciated. Feel free to add me to msn:
webcrawler2050@hotmail.com