User Profile

Collapse

Profile Sidebar

Collapse
wilburforce
wilburforce
Last Activity: Feb 2 '07, 11:45 AM
Joined: Oct 18 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • wilburforce
    replied to Possible PHP or my SQL print statement
    I have had a go and Im miles away i know, any idea

    <?php


    $sql = ("SELECT int
    WHERE catid = 1");

    $result = mysql_query ($sql, $conn);

    if (=$result) {
    echo " private Images";
    }
    ?>
    See more | Go to post

    Leave a comment:


  • wilburforce
    started a topic Possible PHP or my SQL print statement

    Possible PHP or my SQL print statement

    Please excuse my ignorance
    I’m new to PHP and MySQL, I’m trying to print a message if member have private image.

    I have a table row called "catid" that determins if the image is public or private.

    0 = public
    1 = private


    I need to make either a SQL/php statment for the member to determine if they have a catid of 1 or 0 (or both).


    I hope i have...
    See more | Go to post
No activity results to display
Show More
Working...