Jump to content

zimmy52420

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by zimmy52420

  1. I have no experience with frames whatsoever, and have no idea how to implement/code them, sorry, ;pOK, something's confusing me here. The exact same code on a different page works perfectly. And I mean, exact. Exact same destination. But yet, on this page it isn't. o_O
  2. Is there any way I can refresh only the contents of a DIV within one of my pages?Thanks in advance(Every time I get my scripts working, they come up with a new problem. Stupid IE.)
  3. zimmy52420

    Welcome

    I knew this existed, didn't realise there was a post here. o_O
  4. ok, I'll look into some Javascript tutorials, see if they have the answerThanks,
  5. <META http-equiv=refresh content=12;URL=./index.php#1> I've put this into a live chat script of mine, in the headers. The file is index.php#1. I've put in #1 because alot of people bookmarked ./index.php, and complained when they didn't automatically reach the end of the DIV. In Internet Exploder, it doesn't refresh, When I take out the URL redirect part, it does. Also in IE, text entered into some <input name="stuff" type="text"> boxes gets deleted on refresh... is there anyway to stop IE doing this? Or at least refreshing properly? Thanks in advance
  6. It doesn't matter now, I've found a new way to do it. :)Thanks for all your help
  7. zimmy52420

    Width

    The CSS thing is working perfectly for me. :)And I just needed it to not stretch whenever a name was too long. :/
  8. I've got it to work... kinda, but there's a new error. I'm having a great time with this script...Every time I put a new post, it's eating the stuff on the first line, and so, killing the old text, which I need to keep. Is there anyway to fix this? :/
  9. I know absolutely NOTHING about MySQL, other than the fact it is a database, and I'm using PHP to connect to it, it could be that I'm a complete idiot, (Could be, I am!) and this is what mysql_query's supposed to produce, or it could be that I'm still a complete idiot, and there's a problem with my code <?phpmysql_connect('host', 'user', 'pass') or die( "Error #1 - Couldn't connect to Server");mysql_select_db('db') or die( "Error #2 - Couldn't connect to Database");$query="SELECT * FROM table";$result=mysql_query($query) or die( "Error #3 - Couldn't collect Table Data");mysql_close;echo $result;?> Obviously, I've done the obvious and set host user pass etc. etc. But whenever I run the script I get the following output.Resource id #3This doesn't seem to be an error to me, due to the 'die' bits, and it looks nothing like a PHP default error to me, now someone can come along and point out what I've done wrong. ;pThanks in advance
  10. Even once I've removed the quotes, I'm still getting the same two errors. I'm looking up file_get_contents and file_put_contents nowEDIT:My hosting company have PHP 4.4.1 installed on the server, so the function won't work for me. :/
  11. I've probably got this wrong somewhere along the line, but if I understood correctly you mean $name = $_REQUEST["name"];$message = $_REQUEST["message"];$fstuff = "fopen(./chatlog.html, r+b)";fwrite($fstuff, "$name<BR>$message<P>");fclose($fstuff); I've tried it, and I'm still getting the same errors, any suggestions, or have I just managed to misunderstand what you've told me?
  12. The only time I used phpMyAdmin, I couldn't find an option to make it use a MySQL database on a seperate hostMy database is on a different server from my website. :/
  13. zimmy52420

    Free MySQL GUI

    Doesn't matter. I've found a good one now.
  14. It removes the first error, but keeps the other 2, and doesn't write to the fileI'll try the two other combinations you gave me now,EDIT:The other two give the same two errors, and do they leave the previous contents of the page, and place the pointer at the front of the file? :/Heh, I think my live chat script just doesn't like me.Another EDIT:One of the combinations you gave me truncated the file length, which I find odd. Any ideas why it can delete but not write? o_O
  15. zimmy52420

    Width

    on a <SELECT NAME="namehere"> form input type, how would I stop it from stretching with long options? There's probably a simple answer to this, but Google didn't want to help me. :)Thanks in Advance
  16. I have created, what I have been assured is a perfectly valid script... I have asked several people who seem to know what they are talking about in the field, and they assure me there is nothing wrong with this. However I recieve the following errors whenever I use the scriptWarning: fopen(./chatlog.html): failed to open stream: Success in /home/fhlinux183/c/canine-haven.co.uk/user/htdocs/chat/action.php on line 10Warning: fwrite(): supplied argument is not a valid stream resource in /home/fhlinux183/c/canine-haven.co.uk/user/htdocs/chat/action.php on line 11Warning: fclose(): supplied argument is not a valid stream resource in /home/fhlinux183/c/canine-haven.co.uk/user/htdocs/chat/action.php on line 12I am using Dead Rat Linux on my server, and following a different PHP support group's suggestions, went through the shell, and did CHMOD 777 on the file, and it still is not working. The code is below. <?php$name = $_REQUEST["name"];$message = $_REQUEST["message"];$filename = "./chatlog.html";fopen($filename, "br+");fwrite($filename, "$name<BR>$message<P>");fclose($filename);?> I have tried various different combinations of b r+ and t (br+, r+b, tr+, r+t, r+) some of these removed the first error, but kept the others, some changed 'Success in /home/fhlin...' to 'Failure in /home/fhlin...' but otherwise, yielded no resultsThe server can READ chatlog.html, as in a different file it is read with the include function,Well... I hope I've been detailed enough, if there's anything important I've left out, please tell me, as I'm REALLY after getting this fixed, if it is any help at all, the script can be located at http://www.canine-haven.co.uk/chatMany thanks in advance
×
×
  • Create New...