I'm trying to use the phpmailer and I get this error for the fsockopen (which is not called by me directly so I don't really have any control over it). (I've xxxx the server name and directory ) Any clues? I'm doing the exact same thing I've done on other websites on the same host, so I'm not...
$randomNumber = 1; % however you get the random number
$filename = "/files/".$randomNumber."file.php";
include("$filename");
____
Update: Sure except that if you want it between 1 and 3 you would do
rand(1,3) not rand(5,15)
Maybe I'm missing something (seems very simple) but to answer the question:
"How do I get num1 minus num2 to equal newamountowed so I can update the database?"
$newamountowed = $num1-$num2;
Maybe I'm missing something (seems very simple) but to answer the question:
"How do I get num1 minus num2 to equal newamountowed so I can update the database?"
$newamountowed = $num1-$num2;
Maybe I'm missing something (seems very simple) but to answer the question:
"How do I get num1 minus num2 to equal newamountowed so I can update the database?"
$newamountowed = $num1-$num2;
I typed in your program exactly as is and it worked fine for me. (I got the same number twice)
I noticed that your sample output has a Number 2 but your sample code says Number 1 so are you really giving us the output from that code?!
I'm not sure what you are asking. If you want your html file to be visible to others on the web you need a web host to upload to. There are lots of places out there to do this (some free, some for a fee). It depends on what your needs are.
If you want to see it only for yourself then use the...
Editing html files is the whole point for front page. So I'm not sure what's happening and I don't have frontpage to try it. But what is the extension of your files? If it's anything but .html or .htm then that is probably your problem. If it's .html then maybe frontpage will only open .htm...
Your line:
echo "The number " . $i . " state alphabetically is: " . $states . "
should read
echo "The number " . $i . " state alphabetically is: " . $states[$i] . "
Ok. Seems like an odd way to do it (using switch instead of if), but apparently you can (see my source below) so it would look something like this (you can fix the exact syntax)
switch (true) {
case ((a <= b) && (b < = c))
print a b c
break;
case ((b <= a) && (a <= c))
print b a c...
Ok. Seems like an odd way to do it (using switch instead of if), but apparently you can (see my source below) so it would look something like this (you can fix the exact syntax)
switch (true) {
case ((a <= b) && (b < = c))
print a b c
break;
case ((b <= a) && (a <= c))
print b a c...
I think when you are hitting enter you are calling the page again without any parameters passes so $about is set to nothing and therefore our query updates it to nothing.
I would put some check in there to make sure that $about is set before doing the the update.