Jump to content

SJames

Members
  • Posts

    55
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

SJames's Achievements

Member

Member (2/5)

0

Reputation

  1. Okay, I took out the whole read part since it's not important whether it's set to no for the pages that use it. Anyway this fixed the problem. Thanks.
  2. Like I said, same error as before: 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 'read, subject, message) Values('test1', 'test2', '1193537533', 'no', 'test', 'test')' at line 1 Insert into `messages` (sender, reciever, date, read, subject, message) Values('test1', 'test2', ''1193537533, 'no', 'test', 'test')
  3. 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 'read, subject, message) VALUES ('test1', 'test2', '1193537533', 'no', 'test', 'test')' at line 1
  4. Nothing shows up on screen, but nothing gets added to the database, and if an or die() is set, the whole page gets messed up.
  5. For some reason, now when I use VALUES, the entire page gets completely messed up... Edit: It's because I had an or die () set that the page was getting messed up. But this means that there is an error somewhere in there.
  6. $sql = "INSERT INTO messages (sender, reciever, date, read, subject, message) VALUE ('$sender', '$reciever', '$date', 'no', '$subject', '$message')"; mysql_query($sql); It responds that there's a syntax error. When I print $sql it comes out correctly.
  7. SJames

    Firefox

    I'm sorry that this doesn't have much to do with PHP... Does anybody know where I can find a list of common errors that make websites look different in Firefox than internet Explorer? Ex: HTML and CSS tags that are interpreted differently between browsers.
  8. I am writing the PHP for a website that makes weekly comics. They would like a feature where the comic can automatically be posted at a certain time and date, so they don't have to be up at midnight sunday nights to press "Post Comic". Is there a way to have the server run the script that posts the comic automatically or something that would allow the comic to be posted without human intervention? *I wont be able to post any code for you as I haven't written any, I am trying to see if this is feasible before I do anything.
  9. Oh, never mind -- I got it working... Thanks anyway.
  10. I'm not echoing anything yet, I'm trying to get the mysql_fetch_array to work, it still gives me the error.
  11. I'm just trying to make the array here... Printing it doesn't work because the array doesn't get made. If it's important, printing out $result returns "Resource ID#3".
  12. $result = mysql_query("SELECT * FROM page_content WHERE cID = '$cID'") or die ("Select Error"); $resultArray = mysql_fetch_array($result) or die ("Array Error"); It already connects properly and everything but when it gets to the fetch_array part, I get the "Array Error" error. I can't figure out why this doesn't work. mysql_fetch_row doesn't work either.
  13. For some reason when I have a stylesheet at the top of my page's source code, when I do anything to a cookie (set or delete), I get the following error message: Warning: Cannot modify header information - headers already sent by (output started at ...) in ... on line # *I removed the URL information and replaced it with ... This does not occur when the stylesheet is at the bottom of the page.
  14. How to I do the redirect thing?
×
×
  • 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.