Jump to content

kernelgpf

Members
  • Posts

    227
  • Joined

  • Last visited

About kernelgpf

  • Birthday 07/02/1991

Contact Methods

  • Website URL
    http://www.dragon-dynasty.com/

Profile Information

  • Gender
    Female
  • Location
    Texas

kernelgpf's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Okay I found the problem but am still unsure how to fix it - the string in the database has odd question mark black symbols - how can I remove them/unformat the string? "�1�4�0�0� �W� �W�E�S�T� �L�P� �S� �7�0�0� �P�O�S�T� �O�A�K� �B�L�V�D��"
  2. I trimmed both values first, thanks anyway =/ nothing in the table will match properly - I'm actually writing a script to check against the incidentID and I started testing on the intersection field as well, something is wrong with the table I feel.
  3. I am trying to run queries against a table and running into very confusing problems. I keep returning "0" rows for obvious matches - attached is a screenshot of an example (query+"no results" and picture of table with value being searched for (perfect match). I've been pulling my hair out on this for hours - help and TIA!
  4. That was exactly it, and I pulled out so much hair over it. Thanks!
  5. I've tried all 3 functions and I can't get it to return true when I clearly see what I'm looking for in the string. $string='<div class="lupin lumi1" style="background:url(\'/images/grey_pins2.png\') no-repeat 0 -70px;height:35px;overflow:hidden;width:19px"><a href="http://maps.google.com/maps?hl=en-US&gl=US&safe=0&client=firefox&rls=org.mozilla:en-US:official&num=10&filter=1&complete=0&pws=0&um=1&ie=UTF-8&q=back+pain+austin&fb=1&gl=us&hq=back+pain&am'; if (strpos($string, "/images/grey_pins" !== FALSE)) print 'found'; else print 'not found';
  6. I'm trying to grab all names (in: LNAME, FNAME, POSSIBLE INITIAL) in a bunch of text, I have this set of rules: /[^OWNER NAME].*([^0-9+][A-Z]{1}[^0-9+][a-z]+[^0-9+]\, [A-Z]{1}[^0-9+][a-z]+[^0-9+])/' What I'm trying to do is some names have "OWNER NAME" very recently in the last line or two before the name, and I -do not- want those. Only if that string isn't found in in the last line or two do I want it. Example of a name I would -not- want to collect: OWNER NAME (IF SAME, WRITE “SAMEâ€) ADDRESS (STREET, CITY, STATE, ZIP CODE) 5 Wu, Isabella [code] Example of returned strings matching current rules: Array ( [1] => Okulich, Kathern, [2] => Broadus, Raymond, Avery ) [EDIT: the reasons I account for no numbers is because it was pulling back home addresses. also, the pattern above simply doesn't work.]
  7. Figured it out, in the source code it showed tons of spacing and newlines which was throwing it off.
  8. Neither of those work for me, possibly because the dates I am searching for are in a large text blob, it's not just verifying an entire string is a date. if (preg_match_all('~(0?[1-9]|1[012])\s[- /.]\s(0?[1-9]|[12][0-9]|3[01])\s[- /.]\s(19|20)[0-9][0-9]~', $contents, $out, PREG_SET_ORDER)) { echo "found a date<p>"; foreach($out as $val){ if(empty($val[0])) continue; print "found: $val[0]<br>"; } }
  9. I have this strip of regex that matches: MM/DD/YYYY and I just need to make it require spaces before each slash (/), as in: MM / DD / YYYY. I've tried "\\s", "\s", "[ ]", "\ " and maybe a few more, new to regex. (0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])[- /.](19|20)[0-9][0-9] TIA! -Alyssa
  10. That's exactly what my code up there does, the number and email appendage is passed in through a database entry. I'm trying to send HTML in a text message.
  11. I find this hard to believe seeing as I get texts from companies with links that I click on in the same fashion?
  12. I have been Googling for hours and cannot find a solution. My code: $from_name = 'Alacrity'; $from_email = 'support@alacritysim.com'; // From Phone Number $sendto = $urow[phone].$urow[phone_email]; $headers .= "From: ".$from_email."\r\n"; $headers .= "Reply-To: ".$from_name." <".$from_email.">\r\n"; //$headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $subj = "Alacrity Alert"; $body = "<a href='userprofiles.php?id=$sid'>Player #$sid</a> scribbled on <a href='userprofiles.php'>your profile</a>!"; mail($sendto, $subj, $body, $headers); I've tried mlutiple charsets I've found online, and all I know is when I add the MIME line it simply erases all HTML. I'm trying to have this sent as a text message that contains clickable links to the pages specified in the HTML. Help?
  13. I need the variable to have the $i loop variable in it. =/ I changed it to "$puppyplace$i" in case it was interpreting "$iplace" as the variable, still doesn't work. Any ideas?
×
×
  • 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.