Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
Mark it solved ;)
-
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.
-
what is the error? Is rss.php in the same folder as this file?
-
Look at the line before that one. You're missing something important. ;
-
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.
-
$arr = loc_bonus($id); $loc_low = $arr['loc_low']; print_r($array) is useful for debugging arrays
-
[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]
-
[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.
-
can you list a row from a mysql in a form list
Jessica replied to madspof's topic in PHP Coding Help
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] -
[SOLVED] are there any function that can be decrypt after encrypt?
Jessica replied to ted_chou12's topic in PHP Coding Help
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. -
You might want to go through some more tutorials on MySQL. Or use a pre-existing CMS.
-
can you list a row from a mysql in a form list
Jessica replied to madspof's topic in PHP Coding Help
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 ;) -
[b]What[/b]'s not working? Are you sure the php is running? Add something like echo 'test'; in it to be sure.
-
[SOLVED] are there any function that can be decrypt after encrypt?
Jessica replied to ted_chou12's topic in PHP Coding Help
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. -
can you list a row from a mysql in a form list
Jessica replied to madspof's topic in PHP Coding Help
Try just this for now, and then work on adding the selected part. <option><?=$tmp?></option> -
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.
-
can you list a row from a mysql in a form list
Jessica replied to madspof's topic in PHP Coding Help
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? -
[SOLVED] are there any function that can be decrypt after encrypt?
Jessica replied to ted_chou12's topic in PHP Coding Help
*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. -
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.
-
can you list a row from a mysql in a form list
Jessica replied to madspof's topic in PHP Coding Help
What is the problem? -
If you have PHP My Admin, you can do an export and copy the SQL statement generated. Or do what generic said :)
-
So apply my previous statement...
-
You can't have searched very hard. I found this as the third link on Google for "Mirror Image PHP" http://us3.php.net/manual/en/function.imagecreatetruecolor.php#54155
-
ki: <?=$_GET['value']?>