omar_391
09-11-2009, 06:25 AM
I have been trying this for two days ...with no success..?
Now i am here to know what to do....
Objective: Retrieve/select data from database....based on url.[suppose my url=...../..php?id=123]
CODE:
Code:
<?php
$con = mysql_connect("sql108.byethost32.com","b32_******","*****");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("b32_******_test", $con);
$result = mysql_query("SELECT * FROM 'my1' WHERE id=$_GET['id'] ");
while($row = mysql_fetch_array($result))
{
echo $row['name'] . " " . $row['url1'];
echo "<br />";
}
?>
My output page show nothong....
Now what to do..i am clue less.Plz b a help.
Now i am here to know what to do....
Objective: Retrieve/select data from database....based on url.[suppose my url=...../..php?id=123]
CODE:
Code:
<?php
$con = mysql_connect("sql108.byethost32.com","b32_******","*****");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("b32_******_test", $con);
$result = mysql_query("SELECT * FROM 'my1' WHERE id=$_GET['id'] ");
while($row = mysql_fetch_array($result))
{
echo $row['name'] . " " . $row['url1'];
echo "<br />";
}
?>
My output page show nothong....
Now what to do..i am clue less.Plz b a help.