Forum: PHP Jul 14th, 2008 |
| Replies: 4 Views: 1,345 Javascript might be an option, have you checked out dhtml? |
Forum: PHP Nov 26th, 2007 |
| Replies: 6 Views: 2,079 Have you thought about using regular expressions. |
Forum: PHP Nov 24th, 2007 |
| Replies: 6 Views: 2,079 Take out the if condition and put some echos there to see what output you're getting.
I'm curious about the $baseSection = (substr($row[0],-2,-1)=="_") -1 here in line 5? |
Forum: PHP Nov 18th, 2007 |
| Replies: 9 Views: 2,016 I mean have you tried my code?
You might also need to use the function:-
htmlspecialchars
http://ific.uv.es/informatica/manuales/php/function.htmlspecialchars.html
along with n12br()
If... |
Forum: PHP Nov 18th, 2007 |
| Replies: 9 Views: 2,016 Obviously that doesn't account for tabs or newlines... Any luck, I can't actually test that thing as I'm not on my linux box which has the php on it? |
Forum: PHP Nov 18th, 2007 |
| Replies: 9 Views: 2,016 I dunno does the below make any difference?
$string = 'This is a $gfd \' goo.d string £-$,';
if (preg_match("/[^A-Za-z0-9 .,-£$']/", $string)) {
print 'string is NOT OK!';
} else { ... |
Forum: PHP Nov 18th, 2007 |
| Replies: 9 Views: 2,016 maybe...
http://www.webmasterworld.com/forum88/13187.htm
second post from bottom |
Forum: PHP Jul 15th, 2007 |
| Replies: 16 Views: 4,433 I don't think this is possible. Encryption might be an idea but that's very very doubtful. |
Forum: PHP Jul 7th, 2007 |
| Replies: 2 Views: 1,258 >$rdt is a DATETIME value
How sure are you of this? |
Forum: PHP Jun 30th, 2007 |
| Replies: 2 Views: 1,646 You mean...
http://dev.mysql.com/doc/refman/5.0/en/call.html |
Forum: PHP Jun 29th, 2007 |
| Replies: 12 Views: 2,185 It's not liking something in your code. Hmm. I wonder. |
Forum: PHP Jun 29th, 2007 |
| Replies: 12 Views: 2,185 I tested it with firefox on my linux box and it prompts for the open or save option.
How peculiar. Are you using firefox 2.0 out of interest? |
Forum: PHP Jun 29th, 2007 |
| Replies: 12 Views: 2,185 What exactly is your php file doing? |
Forum: PHP Jun 24th, 2007 |
| Replies: 6 Views: 3,383 Yes, it is just that regular expressions provide greater flexibility when extracting stuff from html files. In your example you have used the tag <h1> and it probably works just fine. But what... |
Forum: PHP Jun 23rd, 2007 |
| Replies: 6 Views: 3,383 If you're serious about html parsing etc, regex is the only way to fly. |
Forum: PHP Jun 23rd, 2007 |
| Replies: 6 Views: 3,383 There might be, but it probably is grounded on regex (http://weblogtoolscollection.com/regex/regex.php) |