/    Sign up×
Community /Pin to ProfileBookmark

Is there a way to clear the screen?

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.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@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.
Copy linkTweet thisAlerts:
@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.
Copy linkTweet thisAlerts:
@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?
Copy linkTweet thisAlerts:
@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]
×

Success!

Help @Max_Headroom spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...