0

I need the code for inserting and deleting and updating a form in php
by using of mysql in the back in this my table
table vehicle
veh_id
veh_name
model
type
color
cost
airbag
speed

3
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by vinay7868
2

If you post your code, we can help you with specific problems.

If you're looking for someone to write the code for you, you might be better posting it in the Jobs forum and hiring a developer.

0

hey please solve this..........

      <?php
        connection check;
        select database;
        $sql="select * from category"
        mysql_query($sql);
        $prod_name=$_POST["prod_name"];
        $cat_id="What to write here...."
        sql1="insert into product(prod_name,cat_id) values('".$prod_name."','".$cat_id."');
        $r=mysql_query($sql1);
        ?>

        <html>
            <form>
                <select id=prod name=prod>
                    <?php
                        while ($row=mysql_fetch_array($r))
                        {
                            echo "<option value=".$row["cat_id"].">$row["cat_name"] </option>";   
                        }
                        //can you tell me how to add the above value of cat_id and bind to table....
                    ?>
                </select>
            </form>
        </html>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.