Thanks, I exploded the string based on each "." and then counted the number of "." to make sure I got the root minus the subdomains.
Cheers.
User Profile
Collapse
-
Php searching mysql within a string
I have a string of a user's domain name say
my.long.domain. com
I have a MYSQL statement set-up to match using the SQL statement below.
SELECT * FROM {emaildomains} WHERE domain LIKE '%$domainex%
It matches the root domain (which is in the emaildomains database works fine if I have a domain.com name but not long.domain.com or my.long.domain. com
Is there a way to match this... -
No, definitely not. I just edited the id to a completely random Id (awrehrtjh) and the same thing happened. The curious thing is that if I place the id "content" into the script, it works like a charm. My content Id tag is for the entire body, however, and not this small effect.
This is nested into two div ids (content and column1), but I even tried taking the effect div outside of those and it still did not work.
...Leave a comment:
-
Simple Ajax SlideDown not functioning
Hello, I am trying to do a basic Ajax slide down for my site using Scriptalicious.
I had preexisting a div id called content, so I pasted the sample code into the site and the Slide down worked fine.
However, as soon as I changed the div ID name to anything else, there is no response from the site.
[HTML]<h3><a href="javascrip t:void(0);" onclick="Effect .SlideDown('con tent1');">View...
No activity results to display
Show More
Leave a comment: