-
Posts
5,717 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Adam
-
The only reason it would damage society is because all your male friends would be envious of you. Ha, right they should! I really don't see why it's a big deal or morally wrong. I don't see why sex in general is taken so serious really, excluding the diseases / viruses / possible pregnancy side of it - but you can just suit up!
-
Your storage method / design isn't related to OO PHP at all. Personally I'd refrain from using a comma-separated list. Not only does it make removing/updating certain values more complex than necessary, you'll also loose a lot of the functionality / search-ability of your database platform. Instead go with one row per-selection; may seem like it would be more resource heavy but in actual fact when it came to removing/updating that would be more efficient than using the comma-separated list.
-
Uhhh, don't like the address bar disappearing. Do you know how to have it displayed with vimperator enabled? Edit: Oh, just found it.
-
After you tenth post I believe they go away. Can be a bitch, but it's a necessary bitch I think. Better than being spammed anyway!
-
Just seeing a "coming soon" page...
-
Do you mean delete the row depending upon a date stored within another field?
-
I first started my adventure into HTML about 5 or 6 years ago, while in my final year of school. Started learning it to build a site for a 'Day of Defeat' clan I was in - seems a very long time ago now though. Got interested in PHP about a year or two later. I've been quite fortunate actually. With only college (UK college that is) and personal experience under my belt managed to get myself a junior develop job for a decent company with good opportunities. At the moment just working my way up through the developer "levels".
-
Not keen on the look, too small and basic -- looks like it would be awkward to use on a regular basis. The white pages that appear after you've done something like make a post are really.. unattractive. When you modify a post especially you're left with no link forward, and you have to click the back button twice in order to get back to the topic or even a link to the board index. Functionality wise it has all the necessities but lacks any of the more "miscellaneous" features such as formatting, attachments, notifications(?), etc, etc. You should also perhaps try to think of something unique you can add to your forum that would grab some attention - depending on what kind project this is for you. The navigation I found is quite bizarre. The forum link (although active) should still be clickable. People will probably more often than not spot that link hoping to take them back to the board index, before the actual 'board index' breadcrumb or the "Forum" link right below it (which seems odd to extend the menu down for just one link), and get frustrated if it isn't actually a link. I also couldn't find the 'modify profile' section easily. I was expecting it to be somewhere within the forum tab, as it's a forum profile, but instead was hidden away in the members page as a barely noticeable link in the top right. Not a bad effort though, just needs work.
-
Do you have cookies disabled in FF?
-
From the UK I've heard of 'rightmove', I think they advertise on TV in particular as apposed to web-based advertising / SEO. Whilst you'll never top them on the UK Google charts, due to the amount they'll put into advertising, as others have said different results will be returned in other countries. This is what you need to focus on with your SEO, that it's South African property.
-
You could use a regular expression to parse the two div's content: preg_match_all('/<div id="Tab[12]"[^>]*>(.*?)<\/div>/s', $str, $matches); Edit: When I started writing that the last 2 posts weren't there and it made more sense to your OP.
-
I'd disagree there ChemicalBliss, $_SESSION shouldn't be used to store form data in that way. Instead you should create a template, or a file that you can include (either via a template system or regular file includes) that stores the error output and the actual form. Then the input value attributes are populated by the $_POST / $_GET array. That way either at the form or the validation level you can include it and the fields will be populated. Also if the user purposefully navigates from the form the values won't still be stored.
-
Is this what you're after..? if ($amount1 > $amount2 && $amount2 < $amount3) { // invalid } Edit: To make all compulsory: if (!isset($_POST['amount1'], $_POST['amount2'], $_POST['amount3'])) { // invalid } If you want help more relevant to your code you'll need to.. provide some code.
-
Loop through them.. $working = array(); foreach ($domains as $domain) { if (....) { $working[] = $domain; } } Not exactly sure what you're trying to do with file_get_contents = "working", so left that part out.
-
$details = "this is the content"; setcookie("bobbly", $details, 0, '/'); http://php.net/manual/en/function.setcookie.php
-
Hell yeah, god I hate x factor! http://ratm4xmas.co.uk/ Not sure why this song was chosen though? Edit: Ahh, silly me. Quite obvious: "fuck you I won't do what you tell me"
-
Are you willing to pay? Really don't see you picking anything like that up for free. By the way it's a Flash application, I don't think the actual server it's hosted on would matter too much, it would just need to be re-configured.
-
Prevent PHP mail( ) from appending hostname to from address
Adam replied to jrw4's topic in PHP Coding Help
I don't think so. Being as this is email, it's expected to be received from another email address. You could try this though: $from = '7785555555 <[email protected]>'; -
can somebody explain what this for loop does? please...
Adam replied to co.ador's topic in PHP Coding Help
...And why not "emopoops"? -
can somebody explain what this for loop does? please...
Adam replied to co.ador's topic in PHP Coding Help
Sure. When the user submits the search originally, you're selecting the zip code with: However when you're passing the variable back through the URL you naming it "strZipCode": Which would obviously be returned with $_GET['strZipeCode'] or $_REQUEST['strZipCode']. So the first set of links are being populated correctly, however when you reach the second page the links to third page are broken because a blank is returned [from first piece of code]. -
can somebody explain what this for loop does? please...
Adam replied to co.ador's topic in PHP Coding Help
Ahh, of course. $strZipCode = isset($_REQUEST['frmSearch']['zipcode'])?mysql_real_escape_string($_REQUEST['frmSearch']['zipcode']):''; When you're passing the "strZipCode" through to the second page you've given it a different parameter name: echo " <a href='{$_SERVER['PHP_SELF']}?currentpage=$nextpage&strZipCode= ". $strZipCode . "'>></a> "; -
can somebody explain what this for loop does? please...
Adam replied to co.ador's topic in PHP Coding Help
Well I'm sure your code's just tip top. ... Anyway, I can't see any reason for it to not display on the third page; by that do you mean that you're unable to click on to the third page, or that you can actually access the third page fine but it would be the links to the fourth page that don't display correctly? Is this across all links? -
It was from a user comment:
-
can somebody explain what this for loop does? please...
Adam replied to co.ador's topic in PHP Coding Help
Where is it declared? -
You may be able to find a solution using the mod_access module. Near the bottom there's a bit about directories -- not tried it though so I can't say for sure if this is what you're after, and I can't say how this affects PHP.