How to insert data from to database by php | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to insert data from to database by php

I create php project and i create the database table are products, category, brand. catagory_id and brand_id are display products but not showing,extra item added products tables, can you help me?

3rd Apr 2017, 5:56 PM
Ahsanul Hoq
Ahsanul Hoq - avatar
7 Answers
+ 7
You displayed. Now?
3rd Apr 2017, 6:25 PM
Sachin Artani
Sachin Artani - avatar
+ 6
first connect MySQL with PHP code using mysql_connect() or mysqli_connect() method. Then you need to create SQL query to save details of product to the appropriate column of table of connected database.
3rd Apr 2017, 6:19 PM
Sachin Artani
Sachin Artani - avatar
+ 6
Oh alright. No issue, just comment here if you need help more. ☺
3rd Apr 2017, 6:39 PM
Sachin Artani
Sachin Artani - avatar
+ 5
You can show me the code by sharing code link here
3rd Apr 2017, 6:35 PM
Sachin Artani
Sachin Artani - avatar
0
i displayed cat_id, brand_id into products table,
3rd Apr 2017, 6:22 PM
Ahsanul Hoq
Ahsanul Hoq - avatar
0
thank you replied question. Buy unfortunately i chatting the mobile apps so i can't showing php code. I wanted yuor profile.please can you tellme?
3rd Apr 2017, 6:34 PM
Ahsanul Hoq
Ahsanul Hoq - avatar
0
at the moment my code have laptop,but i chatting by mobile
3rd Apr 2017, 6:38 PM
Ahsanul Hoq
Ahsanul Hoq - avatar