Jump to content

aquanuke

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

aquanuke's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks btherl worked perfect. Thanks also xyph, there actually xml files im reading I just put .txt on here to simplify things. For my needs I think btherl example works better for me.
  2. Hi I want to read multiple .txt files and then if an action requires select one. How do I do the last bit to have a variable like $sendrequest[sarah]
  3. Thanks thats what I thought, so is there a way to escape it like enclose the fields? I cant change the db fields as this table has been in use for about 7 years and tons of references to it elsehwere in other scripts.
  4. mysql_query("INSERT INTO invoices ( client, date, domains, items, each, cost, status) VALUES('$custom', '$date', '$item_number Domain Credits', '1', '$mc_gross', '$mc_gross', 'PAID' ) ") or die(mysql_error()); gives me error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'each, cost, status) VALUES('admin', '2011-09-01', '10 Domain Credits', '1', '15'' at line 2 Using crimson editor the fields im selecting 'date' and 'each' are in red. Are they not allowed? me thinking out loud
  5. Hi I have a problem with ie8 not displaying my form buttons unless I rollover the area with the cursor then they show. Works fine in Firefox. Example http://caught.co.uk/support/ and the two green buttons , open new ticket and check status.
  6. Would someone be able to explain how you interact with paypal payments with php. I need to set up a simple payment where a user buys credits ie 1 credit costs £10. Ive used paypals simple form before but then just actioned the event myself after Ive received the email from paypal. How would I automate a process so when a user purchases X amount of credits it then sends a response back to my script so that my script then adds the correct amount of credits purchased into mysql. Thanks
  7. Hi I need to convert this 2011-06-28T21:35:06.000Z to 28 Jun 2011 21 35 06 Thanks , sorry my brain cant handle it.
  8. Hi I have some code to do a drop down menu. The example I have shows 6 headings with the first one also with the drop down portion. I want to also have the other 5 headings with drop down, but dont know what the other 5 should be set as. This is the example I have... <div class="nav-container"> <ul id="nav"> <li class="level0 nav-1 level-top first parent"> <a href="viewsearch.php?query=Computer" class="level-top"> <span>Computers</span> </a> <ul class="level0"> <li class="level1 nav-1-1 first"> <a href="viewsearch.php?query=desktop"> <span>desktops</span> </a> </li><li class="level1 nav-1-2"> <a href="viewsearch.php?query=Laptop"> <span>Laptops & Notebooks</span> </a> </li><li class="level1 nav-1-3 last"> <a href="viewsearch.php?query=Netbook"> <span>Netbook</span> </a> </li> </ul> </li><li class="level0 nav-2 level-top"> <a href="viewsearch.php?query=office" class="level-top"> <span>office</span> </a> </li><li class="level0 nav-3 level-top"> <a href="viewsearch.php?query=plasma+television" class="level-top"> <span>tv`s</span> </a> </li><li class="level0 nav-4 level-top"> <a href="viewsearch.php?query=audio+player" class="level-top"> <span>sound device</span> </a> </li><li class="level0 nav-5 level-top"> <a href="viewsearch.php?query=home+theater" class="level-top"> <span>home theater systems</span> </a> </li><li class="level0 nav-6 level-top last"> <a href="viewsearch.php?query=Accessories" class="level-top"> <span>Accessories</span> </a> </li> </ul> </div>
  9. thanks that will probs work out for me. In the aspell manual it has ignore-case (boolean) ignore case when checking words I guess its not been added to php yet
  10. ebay auction sniper. Sends a bid in the closing few seconds of an auction.
  11. I have a pspell script and I want it to ignore upper case. ie at the moment if I check spelling for say christopher it returns spelling error of Christopher (upper case C) <?php $query = 'helllo'; $pspell_config = pspell_config_create("en"); pspell_config_ignore($pspell_config, 5); pspell_config_mode($pspell_config, PSPELL_FAST); pspell_config_personal($pspell_config, "/home/*/public_html/custom.pws"); pspell_config_repl($pspell_config, "/home/*/public_html/custom.repl"); $pspell_link = pspell_new_config($pspell_config); $words = preg_split ("/\s+/", $query); $ii = count($words); global $spellchecked; $spellchecked = ""; for($i=0;$i<$ii;$i++){ if (pspell_check($pspell_link, $words[$i])) { $spellchecked .= $words[$i]." "; } else { $erroneous = "yes"; $suggestions = pspell_suggest($pspell_link, $words[$i]); $spellchecked .= $suggestions[0]." "; } } if($erroneous == "yes") { $spellchecked2 = str_replace(" ", "+", $spellchecked); echo "Did you mean: <a href=GetSearchResults.php?Query=$spellchecked2&catID=&siteID=3><i>".$spellchecked."</a></i>?"; } else { echo $spellchecked . " is a valid word/phrase"; } ?>
  12. Hi im writting on auction sniper type script and im trying to figure out the best way to setup the sending of the snipes. There would be lots of one only requests throughout the day at exact times to the second. As cron is really for repeated tasks ie once a week, once every hour etc is this suitable for cron or is there a way to tackle this with a php script?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.