Reputation: 127
We have a website where we receive enquiries for products which we sell online.
When a New enquiry is received to the support employee I want to run a audio file which alerts the person that a new enquiry got assigned to them.
The admin module works in PHP & MySQL.
The enquiry Table columns is as given below
Enquiry_Id | EnqName | EnqEmail | Created_On | Attended_Status
Thanks in advance
Upvotes: 0
Views: 132
Reputation: 5344
I would create an AJAX script that runs periodically (let's say every minute) that
This assumes that employee has got a page that's always on.
If you give us more information I can update this.
Upvotes: 1
Reputation: 2042
Here's a bit of a quick solution, and not knowing too much about the structure of your application, this may or may not work...
<object height="1" width="1" data="some_alert.mp3"></object>
which should generate a 1x1 (essentially invisible) mp3 player based on whatever default audio player is installed on the user's computer.It's the quickest/easiest way I can think of, as I said above, not knowing too much about your app.
Upvotes: 0
Reputation: 8200
An alternative solution is to use the php email function, so when you insert the row into the DB, lookup the representatives email and email him to notify him. (The email program can play an audio clip).
Upvotes: 0