开发者

Creating a GUI (PHP/MYSQL)

开发者 https://www.devze.com 2023-03-12 13:13 出处:网络
I need some consultation here. I am a C# developer, and for just about all of my applications, I enjoy building the GUI up before writing most of the code (it\'s just how my brain functions).I am very

I need some consultation here. I am a C# developer, and for just about all of my applications, I enjoy building the GUI up before writing most of the code (it's just how my brain functions).I am very new to PHP/MYSQL, and I am having a LOT of trouble wrapping my head around the right way of doing what it is I am trying to do (see below). Please keep in mind I am only looking for graphical help here - what would you do to make this look sleek?

I have a database which will hold a decent amount of customers. For example purposes, let's say this database will hold 50 customers. The table which holds all customer information is 5 columns across, and, in this case, 50 rows down. I need to have the ability to add new customers along with the ability to delete old customers from the database. (* AGAIN * I am not looking for code here, but advice on how to go about designing this page). For adding new customers, I have a seperate .php page with an html form, and five textboxes. This will create a new row. Deleting / editing customer information i开发者_开发百科s what I have yet to come up with. I can't decide if these functions should be placed onto a separate page or the same one as the database.

Basically, any ideas / help at all will be much appreciated.


I'd probably display the information in a table, add a delete control column at the end of each row, and some kind of edit in place option. Either turn the row into editable inputs, or slide down an edit row right beneath the row in question when a user wants to edit a record.


If you have just five fields I would do all remove-update-delete operations on the same page, and creating records in a seperate for like have now.

Basically each row could have controls edit/delete control at its right, pagination controls could be a bonus for 50 rows and more. But .. hey, have you not seen any similar layout before? I seem to be explaining what is the most basic gui layout of most any record based web application.


You could mock the page up using good old fashioned pen and paper, i do this sometimes when theres a lot going on on a page. I find it helps me quite a bit.

0

精彩评论

暂无评论...
验证码 换一张
取 消