it should like in your db field `profileid` you have PHP code instead of just a number. Make sure you have a unique number in it.
hielo
Veteran Poster
1,131 posts since Dec 2007
Reputation Points: 116
Solved Threads: 247
Skill Endorsements: 0
hielo
Veteran Poster
1,131 posts since Dec 2007
Reputation Points: 116
Solved Threads: 247
Skill Endorsements: 0
In details.php you would need something similar to:
<?php
mysql_connect("localhost", "username", "password") or die( mysql_error() );
mysql_select_db("dbname") or die( mysql_error() );
$sql =sprintf('SELECT * FROM job_profile WHERE id=%d', intval($_GET['id']);
$result = mysql_query( $sql ) or die( "Error executing:<br>$sql<br>".mysql_error() ) ;
if( mysql_num_rows($result) )
{
echo '<div>No records found</div>';
}
else
{
$row=mysql_fetch_assoc($result);
echo '<table><thead>';
echo '<tr><th>' . implode('</th><th>', array_keys($row)) . '</th></tr></thead><tbody>';
do{
echo '<tr><td>' . implode('</th><th>', $row) . '</td></tr>';
}while($row=mysql_fetch_assoc($result));
echo '</tbody></table>';
}
?>
hielo
Veteran Poster
1,131 posts since Dec 2007
Reputation Points: 116
Solved Threads: 247
Skill Endorsements: 0
Question Answered as of 2 Years Ago by
hielo