Jump to content

d-lexy

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

About d-lexy

  • Birthday 09/17/1984

Contact Methods

  • MSN
    alexkink@gmail.com

Profile Information

  • Gender
    Male
  • Location
    Toronto, Canada

d-lexy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yep, that one is much easier for me to understand than arrays Thanks to both of you! -Alex
  2. Hi All I have a big form with many fields. The form submits to a PHP file that updates a MySQL DB and also sends an email with some of the fields' values. Right now the PHP file that processes the data has a whole bunch of: $name = $_POST['name']; $phone = $_POST['phone']; $email = $_POST['email']; $message = $_POST['message']; etc... etc... I'm wondering if there is a way to replace these with some kind of array what would collect all those fields? Thanks in advance! -Alex
  3. Hi There! I'm writing a very basic search script. I have a form field where I want to accept both first and last names. In my database, the first and last names are in separate fields. I want the query to go through both fields and come up with results. Here is the PHP code so far (only searches first name): $search = $_POST['search']; $data = mysql_query("SELECT * FROM customers WHERE fname LIKE'%$search%'"); //Display results while($result = mysql_fetch_array($data)) { echo $result['fname']; echo " "; echo $result['lname']; echo "<br>"; } How can i change this around to perform the way I need? Thanks in advance!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.