Search results

  1. M

    php login check

    @normaconti: firstly, don't threadjack. Second, there's still no meaningful question, nor any information to answer one even if there was. If you call a mechanic and say "I'm having a problem with my car," do you expect them to be able to solve it then and there? Of course not. You show them the...
  2. M

    Sidebar displaying wrong

    Also: Include a link to a live page. Post minimal sample code (i.e. a minimal test case) Use [php], [html] or [code] tags (as appropriate) to separate and format the sample code Describe the behavior you expect and the behavior you get. The latter includes error messages, if any. Include any...
  3. M

    where to start with web design

    Except number 3, since it's an anti-pattern. Another principle (formulated in Hunt and Thomas' The Pragmatic Programmer) is DRY–Don't Repeat Yourself. Copy & paste makes it very easy to repeat yourself, which is the reason it's an anti-pattern. Another book to check out is McConnell's Code...
  4. M

    where to start with web design

    Copy & paste may seem like your friend, but it says the most horrible things about you behind your back; it's an anti-pattern. You should use proper abstractions, writing functions, classes, modules and libraries to reuse code.
  5. M

    Flushing your DNS

    @dubaijob: follow the instructions for Vista. The security system is similar enough to require the same steps.
  6. M

    Trouble with PHP script works in IE but not safari or firefox

    Give the URL for a page (e.g. http://iainwood.x10hosting.com/SecondPage.htm) or link to the page rather than instructions on how to get there. It shouldn't be a treasure hunt. Don't forget those [code], and [html] tags when posting: [PHP]<?php include_once('LocalDB.php'); $fields = array(...
  7. M

    [PHP + MYSQL] remove rows from database

    Again, That's not the output I expect to see from EXPLAIN; it looks more like the result of running SHOW WARNINGS after an extended explain. The output of EXPLAIN should look more like...
  8. M

    [PHP + MYSQL] remove rows from database

    Do the non-finishing queries finish if run from a MySQL client (e.g. MySQL query browser)?
  9. M

    Trouble with PHP script works in IE but not safari or firefox

    Good advice, but > doesn't cause problems the same way that < does.
  10. M

    Trouble with PHP script works in IE but not safari or firefox

    When posting code, use [code], [html] or [php] (as appropriate) to separate the code from the rest of the post and format it. Include a link to a live page. This is essential for this particular problem. Never directly interpolate variables from user input into a query string; it leaves you open...
  11. M

    [PHP + MYSQL] remove rows from database

    As stated previously, As it says in the sig, my questions aren't rhetorical; follow all instructions in the sig. Also, did you add the indices? How do you know that it's stuck in a loop, as opposed to stuck in a deadlock or stuck in some other manner? Run whatever checkdisk utility you have...
  12. M

    Cron job

    The format for the date and time fields is incorrect. Properly, a hyphen is used for ranges, the hour field should is based on a 24 hour clock and there should only be five fields; you have seven. Remove the hyphens and the AM/PM designators. Rather than having six separate entries, have a...
  13. M

    [PHP + MYSQL] remove rows from database

    You might have intendend $encid to be the value from the database, but you never set it. You need an $encid=$row[0]; statement, or simply use $row[0] when constructing the statement. Apparently, DELETE doesn't support table aliases in the FROM clause. Remove the "AS a" and replace the alias...
  14. M

    [PHP + MYSQL] remove rows from database

    Don't use or die (or exit) when outputting HTML, and don't output DBMS error messages for all to see. Nowhere do you set $encid, which is why this fails to delete rows. This one is missing a closing parentheses. This one should work. What is the structure (i.e. the CREATE statements) of...
  15. M

    T string

    When posting code, use the [php], [html] or [code] tags (as appropriate) to separate the code from the rest of the post and format it. Mark which lines are referred to in error messages. Even if posting doesn't alter the line count, we shouldn't have to pour over the code to find the appropriate...
  16. M

    account unsuspension

    Apparently you didn't bother to read the Terms of Service, nor techairlines' quoting of it. Nulled scripts result in a permanent suspension–no exceptions. Maybe you didn't mean to break the law (there's no way of proving your claim), but that's immaterial. The fact is you did. If you damage...
  17. M

    where to start with web design

    W3Schools is outdated, inaccurate and incomplete. For example: The PHP+MySQL tutorial is based on the twice-supplanted mysql driver and don't even mention SQL injection. The page on JS variables says that declaring a variable with var is the same as assigning to an undeclared variable (it's...
  18. M

    php login check

    In particular, post a minimal test case. Also, describe what your problem is–we're not psychic. Describe the behavior you expect and the behavior you get, including any error messages. Third, ask a meaningful question.
  19. M

    Need to design a 'post comment page'

    @sikuneh: PDO creation and PDO::prepare can also generate exceptions.
  20. M

    Piping on Linux Command line

    Alternatively, echo $PATH | tr : ' ' | xargs ls -l or, more appropriately, echo $PATH | sed -E -e 's/\s/\\&/' -e 's/:/ /' | xargs ls -l in case there are spaces in any of the paths.
Top