Jump to content

Help


tecmeister

Recommended Posts

<?php
// Get the ID from the URL, e.g, mypage.php?id=126
$id = (int)$_GET['id'];

// Query the database for the row with that ID
$query = mysql_query("SELECT * FROM my_table WHERE id = '{$id}' LIMIT 1");

// Get the data
$data = mysql_fetch_array($query);

// Now you have all the data for that one row
die(print_r($data));

?>

Link to comment
https://forums.phpfreaks.com/topic/156280-help/#findComment-822737
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.