Search results

  1. M

    Help Needed with Radio Buttons!

    To expand on c.solomon's post, the name attribute doesn't have to be unique, for any control. You could have multiple text inputs, all with the same name. As a point of interest, PHP's use of array syntax in names to create arrays relies on this. However, mutually exclusive selection within a...
  2. M

    PHP AND HTML Email Script Help

    How do you know that it's not sending the e-mail, as opposed to the e-mail isn't being received properly? Don't ignore errors from functions. Test the return value of mail and output a helpful error message that doesn't reveal too much information. To catch other HTML errors (such as c.solomon...
  3. M

    Help Needed with Radio Buttons!

    Please use [html], [php] or [code] tags (as appropriate) to separate and format code. As per the HTML spec (specs are one of the first places you should check if something isn't working as you expect), radio buttons are grouped by control name. Only radio buttons in the same group have mutually...
  4. M

    string search in mysql

    This is not an easy task. You could try fulltext searching, though it won't fulfill all your requirements (it's case insensitive, but won't handle spelling mistakes). As per Nathan Ostgard's suggestion, to handle spelling differences you can create additional columns holding the soundex string...
  5. M

    Headers help

    Also try searching the forums (and web at large) for your error message.
  6. M

    PHP Script to Load images from a Folder but Excluding some images using Wildcard

    Note: you can use , [html] or [code] tags (as appropriate) to preserve formatting and (in some cases) get colorized code. glob patterns don't offer a way of excluding files, but if the files you want to include , you might be able to use a more specific pattern (e.g. only the files you want end...
  7. M

    Converting static HTML website to dynamic PHP website

    That's a good plan. Implement new stuff with new techniques, slowly convert old stuff, and redirect old URLs to new ones to prevent link rot.
  8. M

    Change page names in URL

    Did you try the URL? Note that the rewrite engine lets you access a given resource with a given URL. In no way does it alter the source of web pages; you'll have to do that on your own. If you're using something to generate your pages, it limits how much you can change. Read through the...
  9. M

    PDO Connection then SELECT result or results

    What does this class do that PDO and PDOStatement don't? What's PDO_connection's role in the overall design? It doesn't appear to offer enough to justify the added complexity. Do you mean that you want to return a scalar in the first instance and an array in the second? Functions that...
  10. M

    Converting static HTML website to dynamic PHP website

    Regarding URLs and links, if you use extensionless URLs (using content negotiation, mod_rewrite or even PHP), you'll never have to update links. Once you have extensionless URLs, the next step is to realize you can completely divorce external from internal URLs (using mod_rewrite). This lets you...
  11. M

    how to create a login system

    The article also doesn't use a strong enough password hashing scheme. MD5 is considered broken, and the scheme doesn't use any salt. Read "Enough With The Rainbow Tables: What You Need To Know About Secure Password Schemes" and "Password Hashing". The sample system is vulnerable to session...
  12. M

    PDO Connection then SELECT result or results

    The design looks potentially muddled. What is PDO_connection responsible for? What, exactly, do you want to do within the loop in do_query? Do you want to output anything within do_query? Make sure you keep DB access and display separate. If that's a fair representation of the code, creating a...
  13. M

    multiple data entry?

    The code is vulnerable to SQL injection. Switch to PDO and prepared statements. Prepared statements will also be more efficient, since you're repeatedly executing the same query with different values. If you want a tutorial, try "Writing MySQL Scripts with PHP and PDO". Switching from...
  14. M

    need help in php

    What's the specific code? We need a minimal test case, as mentioned in the documents linked to in the previous post.
  15. M

    need help in php

    What code, specifically? How, exactly, does it "stop working"? Always state what you expect to happen and what actually happens, including any error messages.
  16. M

    Imagick ThumbnailImage crashe Apache on XAMPP

    Do you have a crash log with a stack trace? What version of XAMPP are you using? What version of Apache, PHP & ImageMagick is XAMPP using?
  17. M

    Various issues: unable to login to cPanel or via FTP, unable to change domain

    The FTP server accepts the username but not password for my site (libertatia.co.cc). As for cPanel, no matter which server (libertatia.co.cc, chopin.x10hosting.com, libertatia.exofire.net, libertatia.x10hosting.com) & port (2082, 2083) I've tested, attempting to login results in a "Login Attempt...
Top