"SELECT * FROM users ORDER BY score"
Is good but I'm not sure what way it will be ordered. I usually specify ASC (ascending - lowest to highest) and DESC (descending - highest to lowest) to determine the order. so it would look like
"SELECT * FROM users ORDER BY score ASC"
I am trying to take an attachment from an email and store it on the server. After it's done I'll delete the message so it can go through the process again. I can read the message just fine, I can remove messages, I know how to create a file on the server, but I have no idea how I would make just...
I'm working on a web based mail client using php. I want people to enter in their email address and password and log in to their mail account. In order to check the mail box I need the name of their pop3 server. Most are just mail.theirdomain.com but are sometimes different. Is there any way...
I am looking for a way to show the link that is clicked on in a seperate frame. Here's what it would look like:
--------------------------------
|
|show what was clicked below
| (ie. google.com)
--------------------------------
|
|...
I am looking for a way to show the link that is clicked on in a seperate frame. Here's what it would look like:
--------------------------------
|
|show what was clicked below
| (ie. google.com)
--------------------------------
|
|...
ok, it didn't work origionally but I played around enough to get it going. I think you added a period here: $text="http://"; . $text; by mistake. Thank you very much for your help. here's a page that i whipped up. You can try it out if you would like.
<?
if ($submit){...
I am looking for something that will add http:// if it does not exist in a form. If it does exist, don't add http://
so www.yahoo.com would be changed to http://www.yahoo.com
http://www.google.com would not be changed at all.
I think that I would have to use regular expressions, or...
Thanks, just tried it but it returned a value of 0.
// begin
$lastid = mysql_insert_id();
echo $lastid;
// end
So it doesn't look like it worked. any other ideas?
I have seen the LAST_INSERT_ID() function but for some reason it either will not work for what I am looking to do, or I was using it wrong. I am trying to get the last number that is given by the auto_increment number in mysql. But when I look for info on LAST_INSERT_ID(), it's always used in...
I am trying to find out what value has the largest number, then display the appropriate result from a database. $a, $b, and $c all have a number value. (1-5 so far) and whatever is the largest value, it will show the corresponding value ($a shows $num1, $b shows $num2, $c shows $num3). I am able...
darn, that worked but that screws up what I was doing kind of. I used result1=1 in the next page where it took that number and added it to another variable. eh, I'll think of something. thanks though!
I am creating a site for online quizes and having a problem with creating a quiz out of php. When you usually deal with radio buttons, when you change your mind on a choice it will remove the previous selection. when you use the html below, it will allow you to select every darn radio button...
I had the same prob with PHP and IIS 5 on Windows 2000. Used kevinclark's fix and it worked! I've been looking for 6 hours straight on how to fix this. Thanks!!!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.