Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. before if($numrows) add echo $numrows;
  2. psst. [quote author=jesirose link=topic=121872.msg501868#msg501868 date=1168481881] What do you get when you echo mysql_num_rows($result) [/quote]
  3. use date(); and time() print "Today's date: ".date("d-m-Y", time()+(60*60*5)); print "Server Time: ".date("d-m-Y");
  4. Where is $marray defined? Did you try print_r($_POST) to make sure all your expected vars are set? You can also try printing test at several points to see where the script is going.
  5. What is "not working"? What is the "trouble"? JINX
  6. I bet you have register_globals set ON. Turn it OFF.
  7. You'll need a default from. $requesteremail = $_POST['requesteremail'] ; if(!$requesteremail){   $requesteremail = 'default'; }
  8. What do you get when you echo mysql_num_rows($result)
  9. Looks like your connection didn't work. add OR die(mysql_error) to your connection string
  10. I don't think this one: <a href="?sort=first, last"> Will work. Can you print out your sql query to see what it looks like? You have one link for sort and one for type - but no link to do both at the same time.
  11. I think it would be cool if we could thumbs up/down a reply to a post. If we think it's a really good idea, we might want to chime in, but a post just to say I agree is a little unnecessary - thumbs up/down could be a cool way to support/reject a suggestion to a problem. 
  12. I agree, the first layout is a much more logical layout.
  13. What is your question? You said "However, im having problems with radio buttions, and probably checkbox's when i get to them." your new 1) is about database. So, create an SQL query to check. You already did that. 2. ) Look up the radio buttons and apply CHECKED as applicable. Did you try your script yet? What is the problem with it?
  14. Look up HTML radio buttons. You'll need to add CHECKED to the correct one.
  15. You can do isset, empty, just !, etc. If you're expecting a number, use intval(). If you're expecting a string, clean it first, then you could use strlen, !, or others. It's personal preference.
  16. number_format is only for when you need to print them out or turn them into strings. If you want to keep doing math with a number (or do comparisons in which it is a number), no commas allowed. Don't use number_format up there.
  17. Is there still a problem? Can you post the error with the line number? I don't see anything. [s]I thought true and false were case sensitive, but maybe not. I'll check.[/s] Nope, all looks fine to me.
  18. if (!problem) {/* If there weren't any problems... */ you're missing a $ sign. Use the code tags, and get an editor which does syntax highlighting.
  19. His first two lines are fine, there isn't an error in there.
  20. Yeah...Can you post the 10 lines surrounding the line the error points to?
  21. You don't have to escape quotes outside of PHP. What are you trying to do? If you're not sure if it's working, what isn't working that makes you think that?
×
×
  • 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.