Recent content by MyKidsFan

  1. M

    Anyone know what this php mailer error means? And how I can fix it?

    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...
  2. M

    php script for random include?

    $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)
  3. M

    php script for random include?

    $randomNumber = 1; % however you get the random number $filename = "/files/".$randomNumber."file.php"; include("$filename");
  4. M

    How do you "activate" a PHP script from a HTML file?

    Just make the link go to the php file. <a href="myphpsrc.php">Click this link</a>
  5. M

    PHP MySQL Variable Question?

    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;
  6. M

    PHP MySQL Variable Question?

    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;
  7. M

    PHP MySQL Variable Question?

    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;
  8. M

    [PHP] storing the value of rand() in a variable.?

    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?!
  9. M

    Where Can i upload an html file??? (I WILL VOTE U BEST ANSWER) -Please help-?

    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...
  10. M

    FrontPage opening HTML files?

    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...
  11. M

    how do i get the state name to show using a for loop instead of the word

    Your line: echo "The number " . $i . " state alphabetically is: " . $states . " should read echo "The number " . $i . " state alphabetically is: " . $states[$i] . "
  12. M

    In PHP coding I have to create a form and use a switch statement for the question below?

    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...
  13. M

    In PHP coding I have to create a form and use a switch statement for the question below?

    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...
  14. M

    PHP MYSQL FORM TO UPDATE TABLE WON'T WORK PLEASE HELP?

    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.
Back
Top