Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP Script Planning

Featured Replies

Hi there guys, I've been lurking here a while but as I have a question, I may as well use the forums properly!

 

Basically I'm sick of the way we handle returns at work. We fill everything out onto a spreadsheet and then set the colour to indicate its status (red = closed, green = in progress, etc etc). So I'm planning on writing a basic PHP tool to allow everything to be entered on a web page and then saved to DB and displayed again.

 

In theory it's pretty simple, 12 input fields that are posted to the db and a form with a DB query to display everything. I'm not amazing at PHP but I think I could handle it.

 

My difficulty comes with the prettier features such as changing the colours and ordering the lists by progress. The status of jobs need to be changed and the colour along with it. The display page would need to have an option "Order by open returns", "Order by closed returns", "Order by In Progress".

 

In addition to this I would need to code in a delete function in case we cancelled a return and an edit function if we needed to add details.

 

It is with these areas that I am stuck. Does anyone have any advice?

 

Thanks guys!

 

-Cloudy

its fairly simple for the colour part --

 

if (status = completed) then

background-color:red;

else if (status = xx ) then

xxx;

 

the delete function would be linked to a checkbox, and when you click that one it runs a delete command

 

e.g.

delete xx where id="xx";

  • Author

Ok I can understand how to make the checkbox delete function work. I guess editing would just be a modified version of the submission form but using update rather than insert?

 

As for the colours, how would I link to the posting to a variable storing the colour? I understand the pseudocode that you showed me but as for implementing the full thing, well I'm a bit hesitant. I'll be flicking through php.net and a couple of books tonight - hopefully I shall create something vaguely decent!

 

-Cloudy

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.