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 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 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 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 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 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 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 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 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 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 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 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 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.