Jump to content

php id?


dodge_93

Recommended Posts

you mean something like index.php?post=42 ?

you have your sql grab it with something like:

<?php
if (isset($_GET['post'] && is_numeric($_GET['post']){
$id = $_GET['post'];
$sql = "SELECT * FROM `your_table` WHERE `id`='$id' LIMIT 1;";
}

and then run the query as you normally would.

*EDIT

just noticed what the previous poster said. between our 2 posts, you have the basics of how to put the whole thing together.

Link to comment
https://forums.phpfreaks.com/topic/139446-php-id/#findComment-729447
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.