I’m just wondering if there is a way that I can display some text on the screen and then clear it off the screen so when something else prints out it will be starting with a fresh environment again? Thanks a lot.
@GenixdeaeMay 04.2005 — #user refresh[code=php]header(location:"page to go to"); //Or echo "<meta http-equiv="refresh" content="1;pagetogoto">"; [/code] I personally like the meta tag way beter....that's how i'd do that.
@Max_HeadroomauthorMay 04.2005 — #I don't want to start a new topic since this one is still on the top, so I'll just ask my other question here. Is there a way to reassign an AUTO_INCREMENT value from PHP? If I erase a row in a MySQL table which implements the AUTO_INCREMENT function and then create a new one it's value still increases instead of reassigning it.
Example: I have rows 1 through 5 in a table and remove number 5. If I then insert a new row at the end, the AUTO_INCREMENT value for that row is now 6, makeing the numbering go: 1,2,3,4,6. How can I get it to go back to 5? Thanks a lot.
@bokehMay 04.2005 — #I personally like the meta tag way beter....that's how i'd do that.[/QUOTE] The meta method is the method W3C say not to use as amongst other things it breaks the 'back' button.
The other way you can change what a page displays is using javascript.
Can you post a little more info about what you are doing?
@GenixdeaeMay 04.2005 — #it sounds more like you want to auto-increment values in a table, not in php. with mysql you can assign a column a AUTOINCREMENT('column') value which does exactly what you are looking for...
more can be found [URL=http://dev.mysql.com/doc/mysql/en/example-auto-increment.html]here[/URL]