Jump to content

WebCheez

Members
  • Posts

    30
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

WebCheez's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. First suggestion: use body instead of html for your formatting. Like: <style type='text/css'> html{ font-size: 300%; } </style> Even so, you should just delete that at the beginning so the font size will be variable. if($_SESSION['FontSize']=='') { ?> <style type='text/css'> body { font-size: 100%; } </style> <?php } The browser doesn't know that the <style> is in an if statement. Any thing that is not in the <?php ?> tags is ignored by PHP, but even if you didn't drop out of PHP. I would suggest: if(!isset($_SESSION['FontSize'])) { echo '<style type='text/css'> body { font-size: 100%; } </style>'; } That will output your style to the browser, so it's interpreted only when FontSize is blank. I also added an isset so that it checks if the variable is not set, rather than if it is blank. There may be a few other errors, I'm not sure; I'm no expert.
  2. When I run that, it says this when I print the error. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delete DAY)' at line 1
  3. I have a table with several fields, one of which is an amount of days after which the row will be deleted. Every time the script is run, I want to check for old entries and delete them. How would I do this?
  4. I'm trying to send some POST data to a page and then get the contents of it. The page is not on my server, so I can't use Sessions or GET. Google hasn't provided me with a definite answer. How would I do this?
  5. So once I have that, what do I do?
  6. How would I make a script that would delete any row in a MySQL table that was more than 7 days old?
  7. You can't. But quart containers don't have scrollbars.
  8. Oh, looks like the .gif extension was capitalized so it was .GIF. I got it to work.
  9. The following displays no image: body { background-color: #000000; background-image: url('code.gif'); background-repeat:no-repeat; } I made sure that code.gif exists, so what's going on here??
  10. Sorry for the late reply, and thanks!
  11. Oh, crap, how do you do this when there's PHP in the code?
×
×
  • 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.