|
Posted by .:[ ikciu ]:. on 10/17/06 02:16
Hmm linda <newsaccount@tiscali.co.uk> wrote:
> Many, many thanks in advance,
> @mysql_connect($host,$user,$password) or die("Unable to connect with
> server!");
> @mysql_select_db($database)or die("Unable to connect database, please
> try later!");
>
> $id=mysql_real_escape_string($_POST['id']); //This is set to unique
you no need to escape integer variables - you should to check values before
insert it in db.
your question is a bit st.... if your table in db has autoincrement you no
need to wory about it, just insert new data - do not set id manualy !!!
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl
2be || !2be $this => mysql_query();
Navigation:
[Reply to this message]
|