Help ! how can i have user name and users informations ? Help ! how can i have user name and users informations ?
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Help ! how can i have user name and users informations ?

Started by antisa33, October 23, 2005, 04:26:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

antisa33

Hello,
In an other page : this page with this code :


<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
pageheader('test');

?>


//it is not $user_name, so what is it to have $user_name ?
echo "Bienvenue hello  $user_name";

  <?php
pagefooter
();
?>





What is the best code to have the user informations (user_name, user id etc) ?
Make a function ? Doing with $HTTP_POST_VARS ?
Thank you fo your help !!
Isa

I find i have to put

echo USER_NAME;

But i would like to know now in this new page witch is just after displayimage.php how can i have the before image informations ? (pic_url...)
Thank you a lot !!!!

I clic on a personal link in displayimage.php and i would like to have this page with image informations :


<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
pageheader('test');

?>


echo "$pic_name, $pic_url etc";

  <?php
pagefooter
();
?>





Thank you very much