Jump to content

[SOLVED] how i make custom page ...


saad|_d3vil

Recommended Posts

this is my coding

<?php

$con = mysql_connect("localhost","apnimusk","password");

if (!$con)

{

die('Could not connect: ' . mysql_error());

}

mysql_select_db("apnimusk_naat", $con);

 

// check to see if id is set

if(isset($_GET['id']) && is_numeric($_GET['id']))

{

echo 'Your have requested ID #'.$_GET['id'].'<br />';

echo '<a href="sadasdas.php">Back</a>';

}

// no id requested, display results

else

{

$result = mysql_query("SELECT * FROM album");

 

while($row = mysql_fetch_assoc($result))

{

echo '<a href="?id='.$row['id'].'">'.$row['age'].'</a> - ' . $row['name'] . " - " . $row['age'] . '<br />';

}

}

 

mysql_close($con);

?>

 

i want to know that if someone click on any link it show that Your have requested ID #id number

 

there is any way to make our own page or other table in this link

Link to comment
https://forums.phpfreaks.com/topic/121196-solved-how-i-make-custom-page/
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.