Click here to Skip to main content
15,557,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a simple MySQL database what stores two data. A name and an audio file. I don't know how to play any audio file yet. I just learned the basics of php and I'm just stuck learning. I have not found a simple enough video or description so far about this on the Internet. I'm also building a website but I can't go any further until I can do this. I don't need any control buttons just to play it after I clicked a button.

What I have tried:

I tried nothing yet because I have no clue how to start.
Posted
Updated 16-Sep-22 22:32pm
v2

1 solution

You don't play it in the PHP code, that runs on the server. You need to use HTML and maybe Javascript to play it in the browser. And if you are just starting out I suggest you stick to the easier parts of web pages until you have got more experience. You can get lots of good information and tutorials on all subjects related to making websites at W3Schools Online Web Tutorials[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900