a few n00b questions
Moderator: General Moderators
a few n00b questions
first things first..
1. to redirect someone to a different page say if and if statement is true what is the best method?
header("Location: page.php");
the above is what i found in one of the tutorials is that the best way?
2. if i want to have a kill script that erases all information in my database what is the best way?
$del = "DELETE * FROM database"
$kill=mysql_query($del);
?
is that the best way.
3. are cookies the best/only way to automatically log somone in when they return to my site?
Thanks in advance!
1. to redirect someone to a different page say if and if statement is true what is the best method?
header("Location: page.php");
the above is what i found in one of the tutorials is that the best way?
2. if i want to have a kill script that erases all information in my database what is the best way?
$del = "DELETE * FROM database"
$kill=mysql_query($del);
?
is that the best way.
3. are cookies the best/only way to automatically log somone in when they return to my site?
Thanks in advance!
1. yes, but have a look at HTML Metatags. Forwarding in javascript can also be handy. It does depend on the situation/application
2. to delete a table write "DROP TABLE tablename"
3. They are a convenient and, on the internet, the only way (to my knoweldge). If there are other ways, I'd love to hear about them.
moved to PHP - Code, btw.
2. to delete a table write "DROP TABLE tablename"
3. They are a convenient and, on the internet, the only way (to my knoweldge). If there are other ways, I'd love to hear about them.
moved to PHP - Code, btw.
Thanks. I do not want to delete the table just the information stored in it.patrikG wrote:1. yes, but have a look at HTML Metatags. Forwarding in javascript can also be handy. It does depend on the situation/application
2. to delete a table write "DROP TABLE tablename"
3. They are a convenient and, on the internet, the only way (to my knoweldge). If there are other ways, I'd love to hear about them.
moved to PHP - Code, btw.
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
Yeah.
http://www.mysql.com/doc/en/TRUNCATE.html pretty much covers the ins and outs of it.
http://www.mysql.com/doc/en/TRUNCATE.html pretty much covers the ins and outs of it.