Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. You could generate a PDF, that would probably be the easiest way to ensure the pages are the size you want.
  2. Perhaps you should ask on the ZenCart support forums, as this forum is not for third-party scripts.
  3. This is HTML, not PHP <a href="http://www.domain.com">Text Here</a>
  4. Check out the mootools framework - mootools.net
  5. instead of echo, use header('Location: '.$newURL);
  6. Well it doesn't look like you followed the tutorial I posted, so I recommend you try that.
  7. micmania, it's called Cross Site Scripting, or XSS. You can google that for more help.
  8. Read this tutorial. http://www.phpfreaks.com/tutorials/142/0.php
  9. SELECT * FROM table WHERE fulltextfield LIKE '%$str%'; You don't need to replace anything in their string.
  10. You use an array for the row. Did you find the tutorial?
  11. You need to work with the PayPal IPN (Instant Payment Notification) API. It's on their website, and there is support for it.
  12. They can't insert PHP, but they can insert HTML and Javascript, and this is called XSS (Google it.) Run any user input through strip_tags() and htmlentities()
  13. There are tutorials on here for how to interact with the database, look under the beginners section.
  14. This doesn't really belong here, but... GoDaddy's cheapest hosting is 3.99 monthly. 3.99 isn't bad for what they offer you. I doubt your going to find a free php/mysql host - GoDaddy offers it free when you buy a domain from them.
  15. use strtotime() to get the timestamp and just subtract
  16. Your carid (as well as userid, any 'id') should really be an auto-incrementing ID, in which case you wouldn't need to find out the most recent ID and insert it - this is pretty poor design.
  17. When you get the rest of the info out of the database, get the url, and save it to a variable. The same way you get any info from your database.
  18. For something like usernames, where there will always be new people signing up, it would be way too much work to do it manually. It's mod_rewrite in htaccess.
  19. OR, PHP stands for PHP: Hypertext Preprocessor. PRE- meaning BEFORE. Meaning it's designed to handle scripting on html pages before they out processed by the browser. It originally mean Personal Home Pages. It's not meant to imitate a desktop application, in which you could press a button and have a function run. In PHP, in order to run new code, you have to load a new page. This is basic stuff. AJAX and CURL help provide ways to imitate a desktop app, like what you want. Complaining about having to know about html is like complaining about having to know how to use a pencil when you just want to write a little note! PHP is designed to be used IN html pages and with databases. You don't have to use MySQL with PHP, but it makes it faster and easier than using flatfiles for everything you want to persist. Other languages interact with files and dbs as well, it's called "Persistent Storage". ANYWAY, AJAX is NOT hard. The mootools framework uses one freaking line of JS in order to do what you want. Chillax.
  20. You could put comments right about it that EXPLAIN what to do. That's what comments are for. // Hey, coworkers!!! Yes, YOU! Don't put any quotes in without a \ in front! OR ELSE!
  21. Stop echoing it in the first place. This indicates a structural issue.
  22. [quote author=tgavin link=topic=124038.msg513637#msg513637 date=1169769855] [quote author=boo_lolly link=topic=124038.msg513593#msg513593 date=1169765649] how many entries are being inserted into the database? [/quote]All of them. If I have ten email addresses to insert, then I'll have ten records each, in the subscribers and list_subscribers tables. [/quote] I think boo meant THIS time. When you're trying it and only getting 1.
  23. <? echo htmlentities($title); ?>
×
×
  • 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.