Jump to content

Retrieve info via id


Kyrik

Recommended Posts

By "built it up" you mean, display the information...do something like this:

 

<?php

//Fetch the information from the database
$query = mysql_query("SELECT * FROM items WHERE itemID='$itemID'")or die(mysql_error());
$row = mysql_fetch_assoc($query);

//Now display the information like so
echo '<b>Items Name</b>:'.$row['items_name'];

?>

Link to comment
https://forums.phpfreaks.com/topic/66946-retrieve-info-via-id/#findComment-335723
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.