Program Stock Barang Php Mysql

Posted on by admin
Program Stock Barang Php Mysql 6,1/10 1262 reviews

I have a problem creating a button on the fly within its function. I've created a table perfectly in php but I don't know how to create a button inside php code using a function on each button.

Aplikasi stok barang menggunakan PHP MySQLi Masih sangat dasar dan banyak kekurangan mohon saran dan masukan agar. Php sama mysql.

The button add is dynamically using looping inside the html table. and when I process a click on the button, then the id, name, and price item will be changed with the textbox and each textbox has an auto value using the old one, and button 1 will be added one button left button 1, or button 2, or button 3.

This is the code. When the button created I the other td will be changing into textbox with its value and after user finished edit user can also save it within the save button beside the add button but the save button will be appeared when user click on edit button like the image above :

user1088172

2 Answers

just add like a normal button in the last td

and for action do with some jquery function

Php

oh... may be you can do with this

Program Stock Barang Php Mysql

EDITED

Program Stock Barang Excel

changes this <td><button name='button'>Edit</button></td>

to

<td><button name='button' style='display:none'>Edit</button><button name='..$data['kode_barang'].'>Edit2</button></td>

Php

and on the javascript just add modify just like this

Khairu AqsaraKhairu Aqsara

Program Stock Barang

Here is an example of creating a button on the fly with javascript.

I'm a little confused about what you're question is asking but maybe this will help a little. You could set your javascript function to then redirect to a php file on your server.

Contoh Program Stock Barang

jcmitchjcmitch