SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2006
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    $row[$variable???];

    PHP Code:
    while ($rowUser mysql_fetch_array($result_usergames)){
            if(
    $j<4)
            {
            echo(
    "<br />" $rowUser[$gameName] . "<br />");
            
    $j++; 
    essentially this while statement is within another that lists all of the different game names and I would like to put those in a variable run this while statement and have game name which is stored in a variable put into the $rowUser and have that echo onto the page. Make sense? is this possible to put a variable there or does it have to be plain text?

    Thanks

    Drew

  2. #2
    WebAmoeba mythix's Avatar
    Join Date
    Aug 2002
    Location
    here
    Posts
    578
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    its fine to bung a variable in there, as long as it evaluates as a string or an integer
    Laws are like sausages. You have much more respect for them if you haven't actually seen how they're made.

    http://www.webamoeba.co.uk

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2006
    Posts
    37
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am dumb. I had in the database a "clean looking display name" in one table and then a db name in another table (without spaces or caps) so they weren't matching up.


Bookmarks

Posting Permissions

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