Web Analytics Made Easy -
StatCounter Not really sure what im doing? - CodingForum

Announcement

Collapse
No announcement yet.

Not really sure what im doing?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Not really sure what im doing?

    I am trying to do this in PHP

    I would like to print a message if member have private images.
    I have a table row called "catid" this determins if the image is public or private.

    0 = public
    1 = private

    not sure if i write php or sql statement?

  • #2
    please use a more descriptive title.

    i think you're looking for something like
    PHP Code:
    $sql "SELECT foo FROM bar WHERE whateverID="$anID;
    $result mysql_query($sql);
    if (
    mysql_result($result0) == '1'){
       echo 
    'You have a private immage';

    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

    Comment

    Working...
    X