Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. 1. <? include("config.php")?> missing ; 2. Each time $headers is overwritten. Try .= instead of =
  2. try gotapi.com - it helps me with js functions sometimes. Maybe it'll help you with php.
  3. The same way you do for a regular array: [code]$arr = array("one"=> array("smaller"=>1, "bigger"=>2), "two"=>array("etc"=>2));[/code] (ps: I didn't test that)
  4. How about you try them both and find out. I would put all the PHP code in a big string, and write it to a file. But because I don't really care, I haven't tried it. You care. Try it. I didn't say write it as php, I said as any file. You'd put a string of text in a file. $str = "Text". Do $str "<?php print 'hello world';?> "; Does it work? I don't know. But it won't kill you to try since you want to do it.
  5. At least you didn't use your for you're. That one makes me cry a little.
  6. You could set the time when they log in as a session variable, and on each page check if it's been more than 5 minutes. If it has, kill the session. That's a short time, why are you doing that?
  7. Exactly the same as you would write text to a file. Save the file as .php instead of .txt, and make sure to use your <?php ?> tags.
  8. Except for people who use Where for We're. Just Kidding! :-P
  9. Why don't you just use str_replace to replace " with '...what's with all the slashes? did you try add_slashes or mysql_real_escape_string
  10. Set a cookie, and then check if it exists. If it does, they have cookies. If not, they don't. On Preview: Thorpe, great minds, eh? ;)
  11. Well I was going to help, but I'm a lady. Guess I'm out.
  12. $o = fopen("/flashportal/uploads".$_POST['uploadedfile'].".txt", "w");
  13. It's throwing an error. document.register has no properties That's why it won't set it to true.
  14. Do this: $sql = "DELETE FROM tracker WHERE `username` = '" . $_SESSION['MM_Username'] . "'AND `login` = '" . $_GET['delete'] ."'"; die($sql); What prints out? What you're expecting? Or not? Show us what that displays.
  15. ...have...you...tried...the...code...? what....happens...when....you....dooooo?
  16. Try this: $newContent = addslashes($_POST['content']); print $newContent; Are the +'s there? If not, it's your javascript. Are you using a js framework to do your ajax call?
  17. If that's all you have, then that will delete all of them. Have you tried it?
  18. Try this: $page = $_GET['page']     switch ($page) {
  19. Textarea doesn't have value. You put the value between the two tags. <textarea><?=$content?></textarea>
  20. Does the " get stored in the database? If so, the problem is with flash. You could do str_replace on the input and replace " with '.
  21. And you're entering the string Value of lastname?
×
×
  • 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.