-
Posts
5,717 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Adam
-
Try replacing the query with this and see if there's an error reported: $query = "INSERT INTO sellers VALUES ('','$first','$last','$business','$address','$county','$telephone','$mobile','$email','$web')"; mysql_query($query) or trigger_error('MySQL error: '.mysql_error(), E_USER_ERROR);
-
Searching string for entries and tabling those entries
Adam replied to dink87522's topic in PHP Coding Help
I'd split the string by the comma and loop through each number, then create or update an array key for that number that stores the count - if that makes sense? Something like: $str = '1, 1, 1, 2, 2, 7, 9, 23, 23'; $numbers = array(); foreach (explode(",", $str) as $x) { $x = trim($x); if (!isset($numbers[$x])) { $numbers[$x] = 1; } else { $numbers[$x]++; } } print_r($numbers); -
What's line 26 in addbusiness.php?
-
I would literally get more entertainment hoovering the stairs than to just sit around camping / waiting for someone to run past so you can stab them in the back! What is the point??
-
I agree, and I've even managed to accomplish a few of those feat's myself! .... Ever heard of ket(amine)? Looks like he could have had a dabble on that to me!
-
And to add, select options cannot span multiple lines.
-
I need to create a Enum Value in PHPMYADMIN
Adam replied to Mountain Water's topic in PHP Coding Help
Seriously do you really think anybody can help you based on that? -
Have you checked the error console? Think you'll need to give us a better description of the problem than that.
-
Strange. As I mentioned I've tested the live link (http://www.myointernational.com/shine/test.php) and submitting the form does work for me in FF (3.5.6): Perhaps passing "javascript:" commands through the form action is an issue with older versions, which version are you using? My suggestion would be to use a normal URL in the form action (building on non-JS support as well) and call the function using the "onsubmit" HTML attribute: form [...] onsubmit="return MyAjaxRequest('credits_used','../includes/credit_calculator.php?url='+url_submission.url.value);" Returning false from that function call will then suppress the form submission (note the return statement used in the call).
-
Okay so perhaps giving a clearer explanation of what the problem is may help. I've tested on your "test server" and the button does appear to do something. However I don't know what the expected outcome is / what's not working, so I'm not really able to help at the moment. Could you break down the problem further?
-
Has this been fixed? Tested on your 'test server' and it appears to be doing something in FF..
-
Not sure what that language is based on but, makes no sense to me. Could you perhaps simplify the problem a little more, just explaining what it is you're trying to do?
-
Yeah, has a bit of yeah yeah yeahs sound to it at times I think.
-
That code wouldn't produce any visible output, could you show the rest of it? When you say it's not working what exactly *does it do* in each browser?
-
Agreed. Lately been listening to the doors - soft parade a lot, some really good songs on that album! Especially "runnin' blue"! Also lately been getting into the dead weather, if anybodies heard them? Jack White's latest!
-
Heh, sure man! Yeah merry Christmas all (for yesterday)! Tomorow will be the fourth day in a row I wake up with a stonkin' hangover, and it's my mates birthday then too! Fuckin' love Christmas! x
-
Yeah at least really. 1gig won't support win7 despite what MS may say on their requirements page. At work they're rolling out win7 to every desktop (which is about 400 machines) within the next few months. Through testing they've reported win7 isn't stable at all with the 1gig machines.
-
No problem. Seemed you were trying to include them from the "includes" directory, which was of course wrong. Just need to check your paths in future.. Adam
-
Think preg_match() is a little over kill for simple text matching. strpos() would be the better, light-weight solution here. For example: if (strpos($docRoot, 'public_html') !== false) { ---- Try var_dumping the $docRoot variable to check the value is what you expect.
-
Then try: include './header.html'; // and.. include './footer.html';
-
They call that "SPAMMING" buddy! Don't you think if it was as easy modifying / using a class you've found through Google to bypass a captcha image, they'd be pretty pointless?
-
Use window.open.
-
Clue's in the error: failed to open stream: No such file or directory. You're using a mix of relative and absolute paths to include the files. "./" = relative from the current directory "/" = absolute/root path of the server In respect to the file this code is in, where are the header and footer files stored? By the way, placing your code within code tags makes it easier to read
-
You could return an array encoded using PHP's json_encode. The "httpObject.responseText" property would then contain the JSON encoded array that you can access easily with JavaScript. For example: if (isset($_GET['inputText']) { $return = array( strtoupper($_GET['inputText']), strrev($_GET['inputText']) // I assume this is what you meant by 'reverse of string'? ); echo json_encode($return); } (...) var response = httpObject.responseText; alert('Uppercase: ' + response[0] + ' Reversed: ' + response[1]); Not tested but the logic's right.
-
Have you checked the error console? There's nothing visibly wrong with the call, must be an issue with the MyAjaxRequest() code.