Posted by samudasu on 02/27/06 07:13
You are making this so difficult when it doesn't have to be.
Run this line of code and post the results! Don't include your own
code.
<?php
$event = $_GET['id'];
print "id for query is: $event<br />";
mysql_connect("localhost", "******", "******") or die("can't connect");
mysql_select_db("******") or die("can't select database");
$query = "select * from calendar_events where id = '$event'";
$result = mysql_query($query);
$data = mysql_fetch_assoc($result);
print "<pre>";
print_r($data);
print "</pre>";
?>
[Back to original message]
|