Jump to content

amites

Members
  • Posts

    248
  • Joined

  • Last visited

    Never

Everything posted by amites

  1. what exactly are you trying to do? track the sale? arrange pick-up from USPS? please be more specific
  2. this is all about the javascript, I'd run it through a for loop, my javascript is to rough to come up with an example off the top of my head though a quick google search will show you some examples, try looking for javascript for loop form validation
  3. amites

    Referrer

    you probably want to use $_SERVER['HTTP_REFERER'] try taking a look at <?php print_r(get_defined_vars()); ?> sometime, give you an idea of what all variables you have to work with are
  4. Hello, I'm having trouble figuring out why this query isn't working for me SELECT Count(s.id) FROM bil_msg_sent AS s WHERE s.created BETWEEN now() AND now() - INTERVAL 172 hour AND s.active = '1' fairly straight forward, if you'd like I can post database info though I don't think it's needed, any help and.or advice is greatly appreciated
  5. wrong board, this will probably be moved shortly, you install apache and mysql the same way you install all your programs in Ubuntu, through the program installation program (say that 3 times fast) can't remember erxact name haven't had ubuntu running in a while simple as pulling it up out of the menu good luck
  6. I've seen them handled a few ways, for one make sure you are working with an SSL connection from client to server, once it hits the server you can save part of the CC# to a mysql DB with encryption and then email part of it to yourself, then put them together manually, or my personal recommendation pay the extra few cents to have a 3rd party handle the processing, there are a number of laws that come into effect when dealing with CC #'s being stored, liability is rarely worth it can be as simple as working with Paypal and the Payflow Pro system, not terribly difficult to get your mind wrapped around for how to implement, and there are many classes and functions available that can take care of most of it for you
  7. you mean something like? while ($row = mysql_fetch_assoc($result)) { echo 'index.php?=variable' . $row['value'] }
  8. what are you trying to do? your question is far to general to have a chance to answer
  9. since they are providing you with iframes you could do it with just HTML create a table with 1 row and 2 cells and then place an iframe in each something like <table><tr><td><iframe src="http://cache.www.gametracker.com/components/html0/?host=69.65.13.83:27015&width=200&height=547&bgColor=333333&titleBgColor=222222&borderColor=555555&fontColor=CCCCCC&titleColor=FF9900&linkColor=FFCC00&borderLinkColor=222222&showMap=1&showCurrPlayers=1&showTopPlayers=1&showBlogs=0" frameborder="0" scrolling="no" width="200" height="547"></iframe></td><td><iframe src="http://cache.www.gametracker.com/components/html0/?host=69.65.13.82:27015&width=200&height=547&bgColor=333333&titleBgColor=222222&borderColor=555555&fontColor=CCCCCC&titleColor=FF9900&linkColor=FFCC00&borderLinkColor=222222&showMap=1&showCurrPlayers=1&showTopPlayers=1&showBlogs=0" frameborder="0" scrolling="no" width="200" height="547"></iframe></td></tr></table>
  10. try putting a var_dump($_POST) in there, it will tell you what is there so you can check against what you think should be there
  11. Javascript, PHP runs before the page loads Javascript you can get to run while the page is loading
  12. think I got it, when I dumped the table it came out: INSERT INTO bil_cities (`id`, `state_id`, `english`) VALUES (3, 1, '\r\nAlexander City'); I think that \r was throwing things off damn Windows
  13. still not doing it, thinking I might just dump the table and run it through dreamweaver, become a huge fan of the search and replace function in that program many thanks for the help so far
  14. have you tried http://www.phpclasses.net whole bunch of XML class scripts there to work with
  15. simple when you think it through, assuming you know how to do a couple things like parse the full article page, use a little regex (some very smart Regex people on this forum), etc... the title will always appear with the same code wrapped around it, so remove the current link to the full article using a preg_replace and some Regex and place the link you'd like to be there make sense?
  16. something along the lines of $pages = $TotalRec / $perpage; for ($i = 1; $i <= $pages; $i++) { echo '<a href="LINK TO PAGE?pg=' . $i . '">'.$i.'</a>'; } with a condition at the beginning of the page where if (isset($_GET['pg'])) { $start = intval($_GET['pg']) * $perpage; } rough example but it's a good starting point
  17. comes down to javascript, otherwise the browser wouldn't know to transmit any information to the server to say that it has left the page, not fresh enough in my mind to give an example, though that's the direction to be looking
  18. Hello, with the transition to a forum based web-site rather than a PHP portal I've been getting the same error a number of times, when I type in http://www.phpfreaks.com I'll end up at http://www.phpfreaks.com/forums/index.php?sessionID=XXXX I'm not sure though it seems to be forwarding me to my previous session when on the forum... not sure why it would be doing this but it's happened a number of times, including on a friends computer when I was introducing him to phpfreaks.com (no previous visits) other than that thanks for keeping the site going, this place has helped me quite a bit, hope I've been able to help others at least as much as I've gained
  19. http://www.google.com/search?q=php+blog+tutorial&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a
  20. you can use regex to match the email address, great example in the regex forum in a sticky thread, matching password1 = password2 is as simple as if ($_POST['pass'] == $_POST['pass2']) { code for valid } else { code for invalid }
  21. are you using stripslashes to display your results? mysql_real_escape_string does essentially the same things, adds slashes to ignore potentially harmful code, stripslashes will take the commented code and make it appear readable once again
  22. my suggestion: get those images out of the database and place them on the server somewhere, then put pointers to the images in your database, make sense?
  23. first thing I'd do is take that header line and turn it into a variable before hitting the mail command, if that doesn't work try removing the header part (you don't need it) and see if that works, then go from there
  24. pull them in UNIX_TIMESTAMP ex: mysql_query(SELECT UNIX_TIMESTAMP(time_1) FROM work_hours) add the time stamps together and then convert back to hours for example user submits hours, hours are inserted using default date, pull hours in time stamp, subtract time stamp for default date with 0 hours a unix time stamp is recorded in seconds so converting back to hours is just a matter of multiplying by 60 a couple times check the php manual for mktime for more examples
  25. place the file in a directory outside of your public_html folder scripts can still access it, though there will be no web access
×
×
  • 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.