Jump to content

BlueStryke

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Everything posted by BlueStryke

  1. To return the variable correctly, you have to use printf, but for some reason, the rounding is off... $num = "76561200929753726"; printf('%.0f', $num); //Returns 76561200929753728, I have no idea why???
  2. Headers are sent once HTML is produced. If you try to edit headers once HTML is produced, PHP will say "headers already been sent". Thus you have to put your script BEFORE any HTML. I do not know the details about your script, but you have to make it work by putting it above HTML.
  3. Slightly less stupid way... sorry, it's 3am... XD <select> <?PHP $year = date("Y") - 3; for ($i = 0; $i <= 6; $i++) {echo "<option>$year</option>"; $year++;} ?> </select> P.S. - I would edit, but it doesn't let me anymore.
  4. header( "Location:login.php" ); header( "Location: property.php" ); Must come before any HTML.
  5. <select> <?PHP $year = date("Y") - 4; for ($i = 0; $i <= 6; $i++) {$year++; echo "<option>$year</option>";} ?> </select>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.