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

Recommended Answers

All 2 Replies

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.

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>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.