Search results

  1. xmakina

    PHP help with mysql please

    Here's a good rule when you're working with SQL. Set the SQL query into a variable first. If there is an error, echo that variable. Use phpMyAdmin to debug the SQL error. I've invaribly found that the answer was obvious once I'd seen the SQL output. A fine example is an error I was getting...
  2. xmakina

    Joomla help

    Read up on CSS Overflow :)
  3. xmakina

    How to call js function from php code

    Client side validation stops the user from having to resubmit the form for every mistake they make. It does not, however, validate Anything as far as you are concerned. Everything should be checked server side, especially SQL injections.
  4. xmakina

    Simple JS exercises - answers needed asap!!!

    Kid, this stuff is easy. If you've been lazy to the point of putting off your own homework that you'd need for a test until the day before, that's your fault. Pull an all-nighter and do it yourself.
  5. xmakina

    Copyright Law

    It's nothing like it. The image with OhioState across it *IS* copyrighted, but the actual O part is nothing like yours (the red and gray is inverted). Also, I wouldn't worry as your not competing with them (football team, web design), and you're not claiming to be them. Besides, it's not a...
  6. xmakina

    see what other program install in other Lan PC ?

    If he's got an internet usage concern, check the Router port tables. It'll list all the internet services linked to his sons machine and he should be able to close them. Add a password to the router and you're done. Of course, he could just talk to his son about it but this is a tech forum, not...
  7. xmakina

    Password one way encryption.

    I *think* he was more referring to the chance of a password collision (that is, 2 phrases result in the same answer). Although with 40hex charachters in one and 32 in the other I imagine it's no more likely than plaintext. Ultimately, sha1 and md5 have been tried and tested. There's not a lot...
  8. xmakina

    Code snippet examples

    I can but dream, surely?
  9. xmakina

    Password one way encryption.

    yes, my suggestion uses encryption (my password translates to 5496655beb4dffbb74b6b289ca83dd2a68ba71db) It also uses the username as a salt, meaning each person will have a unique password without having to store anything extra in the database. This should also slow down any crackers as they...
  10. xmakina

    Code snippet examples

    You know what might work? When a user is about to post in here for the first time, they recieve a STOP! Wait! message, with a copy of the "How to ask for Programming Help" included. They have to tick a box saying they've read and meet these guidelines before posting. Would give us a good reason...
  11. xmakina

    DateTime.Parse(myString);

    Technically nothing, other than you probably want another variable to store the result of the parse ($parsed = DateTime.Parse(myString)). Of course, the string could be wrong, the DateTime object may not exist, Parse may not be a valid command and you may be writing in Java. We're going to need...
  12. xmakina

    Anyone good with PHP

    AHH. Your mistake is how your retrieve the data in the first place. I'm not going to write the code for you, but here's what you need to do: FOR EACH field IN $result <th>Field Name</th> END FOR FOR EACH row IN $result <tr> FOR EACH value in $result <td>Value</td> END FOR </tr> END FOR...
  13. xmakina

    Php

    Oh for the love of... If anythings blank then surely the application should just fail? Use die("Incomplete form");
  14. xmakina

    PHP Help

    Very likely. Cannot find driver means that PHP can't load something needed to access the database, most likely a propreitary driver or something which x10 doesn't have. Convert to MySQL and you should be fine :)
  15. xmakina

    My mint new site

    x10hoUsting? It's hosting. I remember having to do this, "advertising" your site. In future, form a web-ring with your other classmates, posting links to each other rather than exposing it to the internet proper. This is mainly because your site by any standard other than high-school is Awful...
  16. xmakina

    Code snippet examples

    I'm all for it. Never know, if Google indexed it we might end up getting a few people here who actually know a thing or two :)
  17. xmakina

    Php

    Use either $_GET or $_POST to check what action has been called. There is no need for the header command.
  18. xmakina

    Anyone good with PHP

    You either want to just make sure the <td>'s occur in the same place or use <br /> to add a line break. Although I don't think this is what you want (both are incredibly simple solutions) but your english is so broken I'm confused as to what your after. Perhaps you can provide an example on the...
  19. xmakina

    Password one way encryption.

    This works fine for me; Registration:function register($userName, $password, $password2, $email = ""){ if( check($userName) == false || check($password) == false || checkEmail($email) == false ){ echo "<p class=\"error\">Invalid input. Please only use letters or numbers</p>"...
  20. xmakina

    Code snippet examples

    But how valuable will it be, really? I've seen several users complain about errors which have been caused because they don't understand the code so don't think they need to change YOUR_USERNAME_HERE and YOUR_PASSWORD_HERE or DATABASE_NAME. "What's my database name?" has been posted so many times...
Top