-
Posts
5,717 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Adam
-
Ha, get f*****! Nah, to be honest I've never even played it. Play guitar (to the best of my ability) like led zeppelin, stones, the doors, black crowes, AC/DC, stuff like that. Even enjoy playing some Creedence, taj mahal.. and stuff. Do you play? I'm playing in a band at the moment as rhythm, with some vocals. Its nothing serious though, just a laugh!
-
My name's Adam, 20 next month. I play the guitar and lots of it. Anyone else?
-
Completely New Design, please say what you think.
Adam replied to npsari's topic in Website Critique
Oh but they do!! At least, Yahoo does. I have a family friend I created a website for and occasionally perform some development on, lately it's mainly been SEO. The other day he told me he'd received an order that he tracked back to Yahoo and someone had entered "cheap (.....)", which he was positioned about 5th. Without the word 'cheap' in the search he wasn't found. Quite literally the only place the word 'cheap' is found on the website, is within the meta keywords tag! -
[SOLVED] Using Yes/No <Input> with a Dynamic Recordset problem?
Adam replied to A JM's topic in PHP Coding Help
If you're grouping 2 radio inputs together with a value of 'Yes' for one and 'No' for the other, well then that could be done with just one checkbox? Then you can check / uncheck other with Javascript. Hmm perhaps I didn't have a clear picture of what you were trying to do? Oh and if you're question gets solved just mark it as solved.. -
Tried all 3, but no luck :-\ Getting a 'not found' error for them all. You can see the result here. Thanks for your help. Do you have any other suggestions?
-
[SOLVED] Using Yes/No <Input> with a Dynamic Recordset problem?
Adam replied to A JM's topic in PHP Coding Help
Yes/No values are surely better achieved with a checkbox for each record instead? -
[SOLVED] 1000 str_replace replacements good or bad?
Adam replied to redknight's topic in PHP Coding Help
Yeah it would be fine, but I'd suggest passing them in as an array and not looping through them. -
There's no reason why it shouldn't work in Firefox if it does in IE. Are you getting any errors?
-
Thanks for taking a look. Unfortunately though when I try to test that I'm just getting a 404 error, seems like it's trying to find it as an actual file. In case anyone asks as well here's the full file: RewriteEngine On RewriteCond %{QUERY_STRING} ^forgot\?([0-9]+)$ RewriteRule ^$ /request.php?forgot_code=%1 Thanks again!
-
Hi guys. Having some trouble with this mod_rewrite rule: RewriteRule ^forgot\?([0-9]+)$ request.php?forgot_code=$1 [L] I'm trying to match URLs like "/forgot?123456". The regex doesn't seem wrong, but just doesn't work. Can anybody spot why? Thanks in advance.
-
Or even "Media"?
-
I think it's a browser settings - to save ink most likely. Take a look at this: http://nemesis.lonestar.org/site/color_tips.html
-
This isn't a PHP issue, but you could try defining it within the CSS media print rules. Take a look here, or do a Google search.
-
The method I showed you would strip the HTML tags with the PHP function strip_tags(), but leave the [TAG][/TAG]s.
-
Why not instead have 3 inputs and then join them together after validating each part? Other than that best choice is regex, something like: if (preg_match('/[0-3][0-9]\/[0-1][1-9]\/[1-2][0-9][0-9][0-9]/', $date)) { // valid } else { // invalid } Of course with that you run into issues with the user having to enter a forward slash between each part, when they could enter dot, hyphen, etc. Does it necessarily need to be a forward slash?
-
I'm not totally sure this is possible, with PHP at least. As I picture it in my head (excuse any weak terminology) if you were to overwrite part of the file, you'd be overwriting certain characters / bytes, but obviously if the string was a different length you'd be overwriting the characters next to it, or even leaving some as they were. Effectively you'd have to shuffle all the characters after it into place - which is almost rewriting the file anyway. As I said though this is just how I picture it, I have nothing to back this up. There may well be PHP support for it... I've just never seen or read about it before. How comes it's such an issue?
-
I'm getting internal server errors...
-
Looks a little confused IMO. Too big a mix of styles and the colors don't really blend well together. It's also very small and cramped. The copyright text on my monitor is tiny and very faint; almost impossible to read. PDFs are notorious for slowing a half decent computer right down sometimes, perhaps some warning that the calendar is a .pdf link? Or even a page that has like a "Launch PDF calendar", first? On the positive side the content looks well planned and laid out, it's seems very accessible on a user front - although I think perhaps a thumbnail list would go well? Behind the scenes though, there's no DOCTYPE and 60 validation errors! The layout is made with tables instead of DIVs and CSS and it's not at all optimized for search engines.
-
One way... <?php $str = 'abc [TAG]<a href="123.com">123</a>[/TAG] def ghi jkl mno[TAG]<a href="123.com">123</a>[/TAG]'; preg_match_all('/\[TAG\](.*?)\[\/TAG\]/', $str, $matches); foreach ($matches[1] as $match) { $str = str_replace($match, strip_tags($match), $str); } print $str; ?> Probably better ways...
-
Yeah definitely. Read up on the imagecopyresampled function.
-
Probably need two date calls there, try this: <?php print date("D, F jS Y") . '<br /><br />' . date("H:i:s"); ?>
-
Why not just detect the browser and then only add the style attribute if it's IE or Safari?
-
What have you actually tried? Your problem code is here I think: <? print date ("D dS F Y H:i:s", time())?> Read up on PHP's date() function to understand how you can change the format of the date.
-
Well, what a shocker! Didn't know that... Perhaps this will work better: preg_match('#<td><center>([^<]+)</td></center><td><center>66<br>Days</td></center><td><center><img border="0" src="images/teams/team_Orange.gif" width="14" height="13" title="Team: Orange"> </td></center><td><center>([^<]+)</td></center><td><center>([^<]+)</td></center><td><center>([^<]+)</td>#', $line, $matches); EDIT: Probs best off going with nrg_alpha's!
-
A'hum..