Search results

  1. C

    PHP: (easy ques.) Correct Syntax?

    doesnt matter
  2. C

    Generating random numbers in PHP... I need more variations?

    <?php // seed with microseconds function make_seed() { list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 100000); } mt_srand(make_seed()); $randval = mt_rand(); ?>
  3. C

    Using image hosting sites to save bandwidth?

    Using cheap hosting accounts with go daddy will server as a good place to put images that are using up alot of bandwidth. Its also a good idea to section your site of by subdomains and put each sub domain on a seperate server.
  4. C

    count down time for php any one have the code please?

    <?php //A $today = time(); //B $event = mktime(0,0,0,12,25,date("Y")); //C $apart = $event - $today; //D if ($apart >= -86400) { $myevent = $event; } //E else { $myevent = mktime(0,0,0,12,25,date("Y")+1); } //F $countdown = round(($myevent - $today)/86400); //G if ($countdown > 1) {...
  5. C

    Is It Possible To Make A Pure HTML Progress Bar?

    Probably not considering all html is for is to display the page. Cant really process anything with it.
  6. C

    Question about fetch not working in php for mysql.?

    $sql = "SELECT MAX(patient_id) AS 'max_pat_id' FROM patient_information;"; $result = mysql_query($sql); while ($row = mysql_fetch_object($result)) { echo "This is the result: " . $row->column_name . "<br>"; } ?>
  7. C

    HTML question: how do you make a peace sign out of html? online iv seen & #

    ☮ This is the correct symbol however you need to make sure you are using a character set in order to get this to display correctly. Use charset=UNICODE-1-1
  8. C

    Javascript question: <a href="something.php">Click here</a> When I mouseover "Click...

    <a href="javascript:;" onclick="function();" >Sometext</a> the the href to javascript:;
  9. C

    Add PHP to HTML page?

    Unfortunely you cannot run php from a file with a .html extension. You need to change the filename to .php than you can add php code to the page. <?php $html = 'Dynamic Html'; ?> <html> <?=$html ?> </html> However you could modify your php.ini so that it parses files with a .html extension...
  10. C

    How do I make a input box a certain size on HTML/PHP page?

    To autodelete <textarea rows="10" cols="10" onclick="this.value='';">Type Here</textarea>
  11. C

    hey, how can I make my perl scrips work in a browzer?

    I wouldnt worry about passing the html as a header. Just have your perl script output the html with print statements.
  12. C

    I have a form which send info to my mysql database. (Using PHP.)?

    The smartest thing to do is to set up a function that will clean the form inputs. Typically mysql_real_escape_string() will escape the quotes. However if you are still having problems than I would try using htmlentities() to decode the quotes and other special characters into html entity...
Back
Top