1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Meaning of Symbol

Discussion in 'Programming' started by jimmyb29, Feb 15, 2014.

  1. #1
    What is the meaning of the "*" symbol in this code?

    select * from tbl_guest_book where customer_email='".$_REQUEST['txtEmail']."'";

    Thanks,

    Jimmyb29
    jimmyb29, Feb 15, 2014 IP
  2. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    595
    Likes Received:
    30
    Best Answers:
    18
    Trophy Points:
    100
    #2
    You are selecting all fields from the table tbl_guest_book. Additionally to secure your code you should escape the variables (assuming you are using mysql_connect and not PDO/mysqli_connect as you should be):

    Code (Text):
    1.  
    2. select * from tbl_guest_book where customer_email='" . mysql_real_escape_string($_REQUEST['txtEmail']) . "'";
    3.  
    ThePHPMaster, Feb 16, 2014 IP