Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. Your code is open to SQL injection. In simple terms, it's easy to hack your website. Since your passwords aren't encrypted, not only can they extract all the information out of the database with SQL injection, but they'll also have all the passwords available too
  2. Ingolme

    Usage of mail()

    You'll need to look into installing an SMTP server on your computer if you want to be able to send mail, then you need to configure PHP to use it. I've tried before and it's complicated.
  3. Perhaps "character" is a reserved word in MySQL. You could wrap it in backticks: `character`
  4. Everything you need is in there, but it requires a certain level of programming expertise. What you're asking for is not a simple task.
  5. All your requirements can be met, but you'll have to do some extensive reading of the Paypal API documentation: https://developer.paypal.com/docs/api/
  6. Your problem is that you forgot to wrap your strings in quotation marks. "INSERT INTO character (charname, ######, gold, xp, accdate) VALUES ('$charname', '$######', 100000, 0, now())";
  7. You would use the XML DOM to add a transform attribute to the <g> element when the touchmove event fires on mobile devices. You would use mousedown / mousemove / mouseup events on ordinary computers for panning. For zoom, you need to draw the zoom in and zoom out buttons in the SVG document and put a click event on them. I would create a "camera" object in Javascript that contains x, y and zoom factor properties which I would use to calculate how much to translate and scale the map. I'll just say that this task isn't trivial, it takes more than just a couple of lines of code.
  8. If you're manipulating SVG elements then the Javascript will have to be embedded into the SVG file, as well as the buttons. You could probably use a <g> element for each button. Pan would be done using the translate() function and zoom would be done with the scale() which can be put into the tranform attribute.
  9. For e-mails? It doesn't really matter what you use. e-mail HTML code is really different than website code. For a real website stick to HTML 5.
  10. What does the server-side code look like? You're sending a GET request with a variable called "codigo" but it seems to be expecting something else.
  11. Why do you want to take data from an HTML table instead of using a form?
  12. Normally you don't extract the data from an HTML table, you feed it to the database through a form. I'd suggest learning about PHP and MySQL first.
  13. There are hundreds of ways to implement any specification.
  14. I don't know what your data structures look like. If you want to know what properties an object contains, call var_dump() on it. var_dump($collection[$dynaload]['products']); This is just for testing, I wouldn't put it on a live website.
  15. This appears to work in Firefox: ctx.setLineDash([]);
  16. What you would do is substitute this line: <?php product_display( $collection[$dynaload]['products'],"More Products:",1 ) ?> with a foreach() loop that goes through the object. You need to know the object's properties to do it. In the foreach loop you can use whatever HTML you want.
  17. It looks like you can just manually go through your list of products without using that function: foreach($collection[$dynaload]['products'] as $product) { // HTML and product information go here}
  18. Is this even a web development related question anymore? There are probably better forums out there for getting legal advice.
  19. Did the person who wrote that function provide any documentation?
  20. Ingolme

    variable variables

    Why don't you use an array? That's what they're for. In the $_POST array you're supposed to wrap string indices in quotation marks. In PHP, the concatenation operator is ., not +. $recipient = array();while ($i <= $max) { $recipient[$i] = $_POST['recipient' . $i]}
  21. It sounds like a cache problem. What I would do is to only update the image and not the whole page. Access the image element and change its src attribute. You can force it to reload the image from the server by appending a query string to the URL: imageElement.src = "http://www.lanzcam.com/windsurfing/vws295.jpg?v=" + Math.random();
  22. Ingolme

    XML seeing

    Front end is everything that the browser sees. Back end is everything else. Almost in every case, XML is not sent to the browser. That's not an XML database, that's just an XML document. XML can store data in an XML document. That doesn't mean it's a database. The data in the XML you're showing is about books.
  23. Is the databaser server on the same web host as the PHP file that's having the problem?
  24. It sounds like the database server is configured to only listen to connections originating from a particular location. Is this the MySQL server that your web host provided with your hosting package?
  25. The logic here is wrong: if (trivia != questions_obj.answer || trivia != questions_obj.answer2){ That should be an && operator.
×
×
  • Create New...