you have the idea.

Just add the other sql statements and run it again. (Just multiply the
script by 3) or you can use a loop to add the next sql to run eg.
$sql1= "insert statement 1";
$sql2="insert statement 2";
$sql3= "insert statement 3";

for ($i=0; $i<3; $i++)
    {
$qryno = '$sql' + $i
$result = mysql_db_query($dbname, $qryno);
    }


try that or something alongs that line should work. of course you can always
refer to teh help files.



>
> How do I set up the insert statement?
>
>    $query = "INSERT INTO $table VALUES ('$menu_id', '$server',
> '$menunumber', '$menuname')";
>
>  $result = mysql_db_query($dbname, $query);
>
> <form enctype="multipart/form-data" method="post"
>                             action="<?php echo $PHP_SELF ?>">
>
> Anyting special I have to do with the form submit?
> <INPUT type="submit" name="submenu" value="submenu">
> <INPUT type=reset value="Reset">
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to