Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. You still have $path and $root, they're not the same.
  2. There's a lot of code to look through for a vague problem. On your second page, do print_r($_SESSION) and you will see all the session vars. In your first script you do $first_name = $_SESSION['first_name']; But I never see you assign it INTO the session.
  3. that doesn't make sense - the javascript won't have a style...it's not html.
  4. You could also use Constants if they're non-changing values, as long as you include that file in every other.
  5. Javascript - check out mootools.net
  6. Maybe the image is broken - is it in the same folder as the file? Don't use dreamweaver, you're making it harder for yourself to learn in the long run.
  7. Your title makes it sound like you want to extract emails in the me at domain dot com format, but your post sounds like you want to make me@domain.com into that. That could be done with a simple functions like strpos, substr, and str_replace, and I guess you could use an email regex to validate it. Here's the email regex I use if(!preg_match("/^.+@[^\.].*\.[a-z]{2,}$/", $this->email)){ $msg = "Please enter a valid email."; }
  8. Thanks a ton How come it worked before, when there was a + though?
  9. SELECT * FROM table WHERE flash = '$flash'; You should read some of the db tutorials on here.
  10. If I use: RewriteRule ^([A-Za-z0-9_]+)/([A-Za-z0-9_/\-]+)$ /$1/base.php [NC] None of them work. So I added RewriteRule ^CMS([A-Za-z0-9_/\-]+)$ /CMS/base.php [NC] If you go to http://www.grady.us/CMS/ that works. But if you go to http://www.grady.us/quadoo/, you'll just see the almost-empty index file, not base.php
  11. I still don't get it...it looks to me like the second one should work, but it doesn't...
  12. require it where? I don't see any difference?
  13. give each checkbox a name like id_1, id_2 <- those are their id numbers. Then loop through them on the processing.
  14. Can you post your code please. I suspect it looks like this: mysql_query(query); and not mysql_query($query);
  15. $query = 'INSERT INTO shout (shouttext, user) VALUES ('.$post.', '.$user.')'; They're still not in the quote marks. $query = "INSERT INTO shout (shouttext, user) VALUES ('$post', '$user')";
  16. Strings must be surrounded in ''. Also, you don't need the id and NULL parts.
  17. I have the following rules in my htaccess: RewriteRule ^journals([A-Za-z0-9_/]+)$ /journals/base.php [NC] RewriteRule ^quadoo([A-Za-z0-9_/]+)$ /quadoo/base.php [NC] RewriteRule ^scrapbook([A-Za-z0-9_/]+)$ /scrapbook/base.php [NC] RewriteRule ^CMS([A-Za-z0-9_/\-]+)$ /CMS/base.php [NC] I wanted to simplify it, but what I tried didn't work: RewriteRule ^[A-Za-z0-9_]+/([A-Za-z0-9_/\-]+)$ /$1/base.php [NC] Help?
  18. It helps to know which line is six. The mysql keyword is rand, not rnd. $Music_Result=mysql_query($Music) or die(mysql_error()); would give you a better error.
  19. You need to add that in before you can use the $title variable.
  20. Look at the examples here: http://us2.php.net/mysql_query You're saying you want to loop through the results and print them - the code in "Example 1356. Valid Query" shows you how to do that.
  21. $title = $_GET['title']; Register Globals = off Your host may have made a change.
  22. You could try doing an explode on "/", filtering out empty values, and then have a list of accepted file extensions and loop through the array until you find the entry that ends with one of the file extensions, (.php)
  23. This belongs in the third part forum, or on the phpnuke's support forum. Also, phpnuke is a security bomb, waiting to explode and ruin your site with its gooey mess of SQL injection and XSS hacks.
×
×
  • 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.