hya i want to show each user there own id number for identity purposes so far i have

<?php 
include("config/db_connect.php");
include("config/ckh_session.php");

?>



<?php 

$userinfo = mysql_query("SELECT user_id FROM user");
?>



<ul>
    <li>You must be fully clothed, no nudity.</li>
    <li>Your face must be clearly visible although you may obscure your eyes if desired.<li>
    <li>You must be holding a piece of paper with the phrase Fabulous Escorts User ID: <?php echo $user_id;?> and the date written on it.<li>
    <li>You must upload your photo within 24 hours of the date that you've written.</li>
</ul>

what else do i need to display this as its from a different database table

ty jan x

Recommended Answers

All 4 Replies

hya ive been to that link and put some coding in and its echoing all users how can i alter it where only the registered userid is displayed on the user not the complete list

Member Avatar for diafol

Please stop using deprecated code. Use PDO or mysqli.

solved found a solution for it

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.