u can't
- Original Message -
From: Ron Piggott [EMAIL PROTECTED]
To: PHP DB php-db@lists.php.net
Sent: Monday, March 12, 2007 7:52 AM
Subject: [PHP-DB] auto_increment command
I am not sure if that last e-mail went through or not. I am wondering
how to re-set the auto_increment field
Actually you can. As Bastien pointed out:
ALTER TABLE tbl AUTO_INCREMENT = 1;
This may screw with your indexes though, if you have a primary indexed,
or unique indexed row, and you set this to 1, mysql MAY try and
insert conflicting values. I've never done this so I have no idea how
this is
1st of all b sure tht wt i the type of $delete
n wt value r u geting in it now
if u echo or print it.
then u can get a bettr idea
as wt change mite b needd in ur if condition
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What is $delete? Are you sure its numeric? if you echo it out what is the
value?
Bastien
From: Ron Piggott [EMAIL PROTECTED]
Reply-To: Ron Piggott [EMAIL PROTECTED]
To: PHP DB php-db@lists.php.net
Subject: [PHP-DB] IF command
Date: Sat, 2 Jul 2005 11:05:48 -0400
I am trying to run the
Ryan Jameson (USA) wrote:
Bummer... So I can't send the named variables as a query string? Well,
this will work. Thanks!
You could pass a querystring-style parameter to a script and then run it
through http://php.net/parse_str but I can't see any benefit to doing that.
--
Stuart
--
PHP Database
php script.php %1 %2 %3 %4
And it is referenced as $argv[arg number]
... I think. To be sure, here is the link to that info:
http://www.php.net/manual/en/features.commandline.php
- Paul
-Original Message-
From: Ryan Jameson (USA) [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29,
Bummer... So I can't send the named variables as a query string? Well,
this will work. Thanks!
-Original Message-
From: Paul Miller [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 29, 2004 3:51 PM
To: 'PHP-DB'
Subject: RE: [PHP-DB] PHP Command Line
php script.php %1 %2 %3 %4
header ("Location: http://www.php.net"); /* Redirect browser
-Original Message-
From: Julio Cuz, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 4:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Redirect command?
Hi--
I've been looking for a "redirect" command
if ( $x==true) {
print "script language='javascript'\n";
print "window.open('b.php','_self');\n";
print "/script\n";
die;
}
-Original Message-
From: Julio Cuz, Jr. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 3:23 PM
To: [EMAIL PROTECTED]
Subject: