Jump to content

kabbink

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

kabbink's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. dsaba, One problem is I have about 100 of these entries per page. They all have other stuff in between them (table formatting etc). How could I keep the records together? Also if it isnt too much trouble can you explain the regexp you posted above so that next time I can answer some questions instead of asking them. Thanks a lot for the help so far! Kevin
  2. Hey all, Sorry I have never used regular expressions in my PHP before so this is a beginners question! What I have is some HTML source code files with lines similar to the following: <td width="13%" class="AdminCenterTableContentsOdd"><input type="text" class="AdminTextBox" name="txtLastName244" maxlength="50" size="6" value="lastname" ID="Text35"></td> <td width="13%" class="AdminCenterTableContentsOdd"><input type="text" class="AdminTextBox" name="txtFirstName244" maxlength="50" size="6" value="firstname" ID="Text36"></td> <td width="13%" class="AdminCenterTableContentsOdd"><input type="text" class="AdminTextBox" name="txtEmail244" maxlength="255" size="6" value="some@email.com" ID="Text37"></td> What I need to do is grab the values from these lines and output them to a CSV file or just get them in an array or something. Note that the number after the field name (bolded above) is different for each customer in the HTML files so that part will have to allow any number. Hope this is an easy one... Thanks for the help and sorry for the noob questions! Kevin
  3. Hello and thanks for the reply... So do I need to do something like this: SELECT * FROM members WHERE company LIKE '^[0-9]%' I need to select everything from my members database where the company field [i]begins[/i] with a number. The above query yields no results so obviously I am doing something wrong... Sorry for not understanding your first answer. Kevin
  4. Hello all, Sorry I am a total regexp noob and my question will probably take any one of you only a few seconds.  Im sure it has been asked before but I tried searching and couldnt find it.  This might be a good one to add to the "Common Expressions" thread. Anyway all I am trying to do is select from a MySQL database any entry that starts with any number.... My query will look like this $sql = "SELECT * FROM members WHERE company LIKE '[b]regexp[/b]' ORDER BY company"; Thanks for the help on this mundane questions... Kevin
×
×
  • 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.