Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. ...or you could just use mysql_real_escape_string, strip_tags, you know, the premade functions for that.
  2. If I were you I'd look into the Mootools js framework (mootools.net) - it makes js effects simple. Without a link to the live site, I can't help you any further.
  3. $dom = new DomDocument; This is you creating an object. You might have to do: $textNode= new TextNode(); $textNode=$dom->createTextNode("Thomas"); Post the code for the createTextNode() function?
  4. Another possible solution is: mysql_query("SELECT * FROM admin WHERE login='".$_POST["login"]."' AND password='".$_POST["password"].'"") However, this leaves you open to SQL injection. You need to properly santize user input.
  5. You should know better than to post just "it's not working". WHY isn't it working?
  6. "Ok so with this code the include is done inside the javascript" No, it's not.
  7. You can't decrypt it, you can just use dictionary attacks. There are several databases of matched codes, but the benefit of md5 is it doesn;t decrypt.
  8. if the array just doesn't have a 4, instead of for, use foreach() If it has 4 and you want to skip it, just do if($i != 4){ }
  9. It looks fine. By random, you mean every time you load it they're in a different order? Post the rest of your code.`
  10. Media Temple offers cron jobs. You could set up your own linux system and just use wgets to call the script.
  11. before the switch do $image = $_GET['image'];
  12. That's a pretty lame idea. I only use gmail. You're not going to get many users that way, I hope you realize the ramifications of blocking 99% of possible email addresses. The only non-"anonymous" email I have is with school, and I'll lose it when I graduate, plus it's a shitty interface, so I don't use it. New mail services come out all the time, your list is going to be beyond comprehension.
  13. The manual explains this: http://us2.php.net/manual/en/language.types.array.php Scroll down to: "Array do's and don'ts Why is $foo[bar] wrong?" It seems you're using an old book.
  14. It helps if you tell us what isn't working right.
  15. Are you using mysql? The manual explains this: http://dev.mysql.com/doc/refman/5.0/en/timestamp-4-1.html "TIMESTAMP columns are displayed in the same format as DATETIME columns. In other words, the display width is fixed at 19 characters, and the format is YYYY-MM-DD HH:MM:SS."
  16. That's not a timestamp, that's a mysql datetime. to make it a timestamp, do strtotime($transactions['time']) - that will make it a timestamp.
  17. I didn't see the second page, but your first post was wrong in that matter. That's all.
  18. There are several nice alternatives. Check the content for text you don't want, and only make them enter a captcha if it contains that text. (such as viagra, etc.) Use a math captcha (two plus two equals? and user types in four.)
  19. "when I am logged in it says my permissions are not sufficient which is incorrect I even "echoed" the session out right before the die command and it came up as 2" 2 > 1 - therefore, the code works fine. You just don't understand what > means.
  20. to make an <option> in a <select> be automatically chosen, add selected to it. So: <option value="apples" selected>Apples</option>
  21. So using some logic, let's think if $_POST or $_GET would be more appropriate ;)
  22. Jessica

    include

    It helps if you post actual errors and code.
×
×
  • 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.