Help

SpaceshipSpaceship
Watch

ammo

VIP Member
Impact
13
If i was creating a forum for instance i have the post.php which adds the post to the forum with an id an post,username etc. How could i make post.php view that post. You see in forums such as this one they have post.php?id=1 how would i make my post.php view that post in the database.

im no good at explaining :tri:
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
Keeping in mind that I have no idea which database server you're using, this might not be of much help to you. But for our purposes, we can assume you're using MySQL. So you'd probably want to run a query like this:

PHP:
$sql = "
    SELECT `col1`, `col2`, `col3`
    FROM `table`
    WHERE `id` = {$_GET['id']}";
$result = @mysql_query($sql, $link) or die(mysql_error());    
$row = mysql_fetch_array($result);
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back