Jump to content

carnot

Members
  • Posts

    16
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

carnot's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Is it possible to make a url refresher that refreshs a page every 5 seconds, and warns you with a sound(or any other way) if there is any change from the last time the url was refreshed in javascript?
  2. Is it possible to make a url refresher that refreshs a page every 5 seconds, and warns you with a sound if there is any change from the last time the url was refreshed, i know it's possible, but can u do it in PHP? What would be the best language to make something like this?
  3. dude, i think u didn't understand... first i want to get information from the database... then put it into a formulary so that i can edit the form!!! so when opening the page, it updates the textarea(where i'm supposed to edit) with the info it found on the database... i had the mysql connection, but it's login root password gogeta when i do like... http://127.0.0.1/editar.php?editar=1 IT has to get 'titulo' and 'conteudo' information from the id 1 do u understand now?
  4. ...
  5. i think i will just kill myself... i don't freaking understand why the hell this isn't working, when there isn't a error, the submit button just doesn't work...
  6. dude, there is still an error, i'm going nuts... i'm sorry if this is too much to ask, but could you add the line , remove the 152 and let me test it... i've been trying to get this to work since 2pm... i'ts 10pm here
  7. Parse error: parse error, unexpected '&' in C:\Program Files\VertrigoServ\www\SuperNews\admin\editar.php on line 172 $resultado = mysql_query("UPDATE titulo FROM supernews titulo='$titulo' WHERE ID='$id'") or die(mysql_error()); 
  8. no need, dude it's still not working, could u send the whole script, deleting useless parts?
  9. in which line of the code am i supposed to add this?
  10. to tell you the truth, i don't even know what the heck was that line 152 doing here(the script didn't work without it...), I got this script from some random place and the author discontinued it... if you can do what I said... then i think, everything will be alright... thanks for your help man... One thing I noticed, it's that when I take out line 152, the script will get the info from the database and put it on the form, but i can't submit it, when i press submit it just doesn't move, the button has no function, if you can fix this... i think it would work!
  11. basically, i want to $sql = "SELECT titulo, conteudo FROM supernews WHERE ID=$id"; $resultado = mysql_query($sql); and put the 'titulo' and 'conteudo' in a place where I can edit it... and then press some kind of submit button... submit will update the database with information I just edited $sql =  "UPDATE supernews SET         titulo='$titulo',         conteudo='$conteudo'         WHERE ID=$id";
  12. it didn't work... same error... Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\Program Files\VertrigoServ\www\SuperNews\admin\editar.php on line 152
  13. the error changed to Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\Program Files\VertrigoServ\www\SuperNews\admin\editar.php on line 152 to explain this script... it does the database query and put the result on a form so that i can edit it and post it again, then updating the database...
  14. no, it didn't work...
  15. line 152 is <form action=\"$_SERVER['PHP_SELF']\" method=\"post\" onsubmit=\"return formCheck(this);\"> this is portuguese... this is a script to edit news... a very basic one. This one is part of the admins scripts...
×
×
  • 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.