p@p
12-22-2010, 04:33 AM
Hello I have a problems with link the content, the content is stored into mysql database.
The field in database is id, headline and content.
I only can do listing the id and headline using fetch array, and my problems is how to linking that''s id and headline when user click that's link it's retrieving the details about the id:
For example:
<?php
// Make a MySQL Connection
require_once('db.php');
$query = "SELECT * FROM lirik WHERE id";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result) or die(mysql_error());
echo $row['id']. " - ". $row['title']. " - ". $row['dt'];
?>
That's the php script what i used for received id and headline.
My question is:
How to make a link when the user click the link it's a details about id, headline and content?
Thanks for people help me :)
The field in database is id, headline and content.
I only can do listing the id and headline using fetch array, and my problems is how to linking that''s id and headline when user click that's link it's retrieving the details about the id:
For example:
<?php
// Make a MySQL Connection
require_once('db.php');
$query = "SELECT * FROM lirik WHERE id";
$result = mysql_query($query) or die(mysql_error());
$row = mysql_fetch_array($result) or die(mysql_error());
echo $row['id']. " - ". $row['title']. " - ". $row['dt'];
?>
That's the php script what i used for received id and headline.
My question is:
How to make a link when the user click the link it's a details about id, headline and content?
Thanks for people help me :)