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']."'";


    jimmyb29, Feb 15, 2014 IP
  2. ThePHPMaster

    ThePHPMaster Well-Known Member

    Likes Received:
    Best Answers:
    Trophy Points:
    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):

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