Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. print_r($_SESSION) and make sure the values are right.
  2. if($_SESSION['userranks'] == $required){       return false;   } else {       return true;   } False and true are backwards. This says if the user's rank is equal to what you pass, return false. otherwise return true. Switch them.
  3. Set a limit of say, 10 files, and have the user page through. So if there are 20 files, they will have to run it twice.
  4. what is the error? Is rss.php in the same folder as this file?
  5. Look at the line before that one. You're missing something important. ;
  6. where are you calling session_start()? Plus what corbin said - your function is recursive and if I'm not mistaken, will cause in infinite loop.
  7. $arr = loc_bonus($id); $loc_low = $arr['loc_low']; print_r($array) is useful for debugging arrays
  8. [quote author=jesirose link=topic=121266.msg498572#msg498572 date=1168131366] [b]What[/b]'s not working? Are you sure the php is running? Add something like echo 'test'; in it to be sure. [/quote]
  9. [quote]want some insight on this or anything else.[/quote] Carrots are very good for you. They have vitamins, and are a low-calorie food. If you meant anything related to webstats, I prefer Google Analytics.
  10. I posted some the code you need. Replace [code]$tmp .= "$row->userid \n";    [/code] with [code]$users[] = $row->userid;[/code] Then replace [code] print $tmp; ?> <form name="form1" method="post" action="">   <select name="select" size="1">     <option value="" <?php if (!(strcmp("", print $tmp))) {echo "SELECTED";} ?>><?php print $tmp; ?></option>   </select> [/code] With: [code]?> <form name="form1" method="post" action="">   <select name="select" size="1"> <? foreach($users AS $user){     ?><option><?=$user?></option><? } ?>   </select> [/code]
  11. Ted, I know what encryption means. Sometimes the step isn't the right one for the goal. Maybe if you explain more about WHAT you are trying to encrypt and WHY, I can provide a better answer. Do some google searching for PHP encrypt decrypt. I found several resources. http://devzone.zend.com/node/view/id/1265 http://www.tonymarston.net/php-mysql/encryption.html That's what you asked for! An encryption method that can be decrypted. Magic linked one, and you said it was too confusing. Encryption is a complex topic, so you'll probably have to think a little harder to understand it.
  12. You might want to go through some more tutorials on MySQL. Or use a pre-existing CMS.
  13. Yes, so make a loop. Instead of making a string of the results added together, make an array. $users[] = $row->userid; Then use foreach. Try that and if you still need help and you really tried...post again ;)
  14. [b]What[/b]'s not working? Are you sure the php is running? Add something like echo 'test'; in it to be sure.
  15. magic: he didn't specify anything abut sessions, cookies, etc. He asked a grammatically puzzling question about encryption and decryption. Whenever Ted posts something it is often vague, or an odd approach to a simple problem. I have a hard time thinking he's doing something reasonable here. *shrug* I could be wrong, but the last few times I saw a Ted question, the answer was in the manual.
  16. Try just this for now, and then work on adding the selected part. <option><?=$tmp?></option>
  17. What you just posted doesn't make any sense. You have a table news with a field called "What do you do?". If your table has two fields, and one is of the DATE type, use the SQL posted above.
  18. I don't quite understand. Do you have this live somewhere, that you can post a link to the page so I can see the resulting html?
  19. *rant* Ted, do you ever look in the php manual before asking a question? Seriously? Ever? And if PHP freaks is too crowded for you, don't post here. If it isn't, the link in your signature should go. It's okay to advertise sites, but if you're advertising a competing site and you're always posting here, that doesn't say much for the other site.
  20. Variables stored in the URL are in the array $_GET. The id is the number of the profile. It is likely in a database and pulled out (from a cached version for the larger ones) each time. That has nothing to do with sessions.
  21. If you have PHP My Admin, you can do an export and copy the SQL statement generated. Or do what generic said :)
×
×
  • 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.