Jump to content

breadnbutter

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

breadnbutter's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Sorted it by setting up an array....
  2. I'm pretty new to PHP. I have done a few pages of code, and I'm now starting to get my head round it. However, I've looked on php.net and can't find the right syntax for an 'AND' or and 'OR' statement, a bit like in SQL. Is there such a thing? Here is the context I want to use it in. $areab = ($_POST['county']); if ($areab == "Cambridgeshire") {echo "E Anglia";} else {echo "";} This is going to be part of a much more complex bit of code, but |I am using the echo to test to see if this state ment works. Which is does. But what I want to do is $areab = ($_POST['county']); if ($areab == ("Cambridgeshire") OR ("Suffolk") OR ("Norfolk") {echo "E Anglia";} else {echo "";} but this doesn't work, what is it that I should be doing?
  3. Hi Guys I'm pretty new to php but have been getting into it on and off over the past year. I pretty much am comfortable getting a search script going and coming back of the data base. But I am trying to think of a way to get php to find duplicats in certain columns and either display then, or only one of them. Its basically like the advanced filter tool in excel. I have a large DB that gets added to by multiple sources. Occasionaly info is entered in twice by different people and I need to create an online facility to then weed these out. Basically I need to look at 2 or three columns and look for entries that are the same. I've tried planning this out in my head, and I was wondering if there was a "same as" or "Equal to " syntax that may work.
×
×
  • 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.