techker Posted February 22, 2009 Share Posted February 22, 2009 hey guys im doing a script for when a member scans his card(barcode0it gets his info in a databse .now it's a membership information, is it possible that if the membership is expired it sound an alarm ? Quote Link to comment https://forums.phpfreaks.com/topic/146372-alert-sound/ Share on other sites More sharing options...
Mchl Posted February 22, 2009 Share Posted February 22, 2009 Why do you post it in MySQL forum? In what language are you creating your script? Quote Link to comment https://forums.phpfreaks.com/topic/146372-alert-sound/#findComment-768495 Share on other sites More sharing options...
techker Posted February 22, 2009 Author Share Posted February 22, 2009 in php but since it has something to do with mysql since im getting the info.?sorry if not. Quote Link to comment https://forums.phpfreaks.com/topic/146372-alert-sound/#findComment-768497 Share on other sites More sharing options...
Mchl Posted February 22, 2009 Share Posted February 22, 2009 If you can play a sound or not is a matter of language you write your applicatoin in. MySQL just provides the data storage capability. PHP does not support playing sounds because it's a server-side language, and sound has to be played on client's machine. Quote Link to comment https://forums.phpfreaks.com/topic/146372-alert-sound/#findComment-768501 Share on other sites More sharing options...
techker Posted February 22, 2009 Author Share Posted February 22, 2009 its one machine made for the scanner only.so your saying i cant use any html or serverside for this? Quote Link to comment https://forums.phpfreaks.com/topic/146372-alert-sound/#findComment-768504 Share on other sites More sharing options...
Mchl Posted February 22, 2009 Share Posted February 22, 2009 You could probably use JavaScript to play a wav file... In PHP you could perhaps use system command put in `` to call a program on server to play an alert sound. PHP as it is, does not know how to play sounds (AFAIK) Quote Link to comment https://forums.phpfreaks.com/topic/146372-alert-sound/#findComment-768509 Share on other sites More sharing options...
techker Posted February 22, 2009 Author Share Posted February 22, 2009 so i will check for javascript thx Quote Link to comment https://forums.phpfreaks.com/topic/146372-alert-sound/#findComment-768510 Share on other sites More sharing options...
techker Posted February 23, 2009 Author Share Posted February 23, 2009 know anything about this? http://www.schillmania.com/projects/soundmanager2b1/#requirements Quote Link to comment https://forums.phpfreaks.com/topic/146372-alert-sound/#findComment-769107 Share on other sites More sharing options...
Mchl Posted February 23, 2009 Share Posted February 23, 2009 Nope. Never worked with Flash Quote Link to comment https://forums.phpfreaks.com/topic/146372-alert-sound/#findComment-769110 Share on other sites More sharing options...
techker Posted February 23, 2009 Author Share Posted February 23, 2009 all the scripts i find is for triggering sound thru a button not with an event?and i would need to mix it with php? like select * from table WHERE member_id=$id if date ==today alert sound.... Quote Link to comment https://forums.phpfreaks.com/topic/146372-alert-sound/#findComment-769115 Share on other sites More sharing options...
Mchl Posted February 23, 2009 Share Posted February 23, 2009 Yes. You would still use PHP to get the data from the MySQL. How is your application working now? What happens when the user scans his/hers card? Quote Link to comment https://forums.phpfreaks.com/topic/146372-alert-sound/#findComment-769125 Share on other sites More sharing options...
techker Posted February 23, 2009 Author Share Posted February 23, 2009 well it goes to a check page and it echo's the user's name and and appointment date and if there is a note in his file it shows an icon. Quote Link to comment https://forums.phpfreaks.com/topic/146372-alert-sound/#findComment-769130 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.