Results 1 to 2 of 2

Thread: Another Variable Question *SOLVED*

Threaded View

  1. #1

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Another Variable Question *SOLVED*

    When a user logs in I get all their details using the below code.

    Each user has around 15/20 items that I want stored. Is there a way i can store the $check2 array() so I can simply use $check2[0], $check2[1] etc...in any other page/function i've got?

    or will I have to use the code below each time I want to display something about the user?

    PHP Code:
    function get_user_details() {

    $query ="Select * from user_details WHERE user_name = '$uname'";
    $check mysql_query($query);
    $check2 mysql_fetch_row($check);



    Last edited by lintz; Aug 28th, 2004 at 05:34 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width