Hi Guys,
It’s been a while since I’ve been on here asking questions to my php problems.
My latest puzzle is I’m looking at using a javascript add/delete row table system to an order page so the user can add additional rows if they need them and vice versa. I’ve found a tutorial here:- http://devzone.co.in/add-remove-rows-in-table-dynamically-using-jquery/ which should allow me to add onto my page easily enough.
at the moment my database is structured so that I have say 5 rows that the user can insert to but the problem I’m having is that more and more users are wanting difference row counts.
Is there a dynamic way that the user can have as many or as little rows as they want and the database would be adjusted to suit?
At the moment my code will individually add the values like this;-
[php] if (isset($_POST[“pur”]))
$row1 =$_POST[‘row1’];
$row2 =$_POST[‘row2’];
$row3 =$_POST[‘row3’];
$row4 =$_POST[‘row4’];
$row5 =$_POST[‘row5’] ;[/php]
I’ve seen this working on an accounting website I use for my invoicing etc so I know something is possible but I’m a bit clueless as to how.
thanks for your input