Jump to content

___ROCK___

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

___ROCK___'s Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. question can you show me the syntax for the path.
  2. Yeah, well I wouldn't do that. What is the proper way to do this. Can u show me an example. or how to do it.
  3. I am saving the audio file itself. But I plan to have many audio files there.
  4. Hello I would like to know how do I store audio files in a database so I can retrieve them. The problem starts when I try to save the audio file. Right now I am using phpMyAdmin and manually inserting the data(which I intend to change later). The problem occurs when I hit BROWSE and then OPEN. It just loops and loops and then I get this error. "#2006 - MySQL server has gone away" So far this is my structure: Table structure for table `music` -- CREATE TABLE IF NOT EXISTS `music` ( `music_id` tinyint(4) NOT NULL AUTO_INCREMENT, `music_title` varchar(200) DEFAULT NULL, `music_file` mediumblob, `music_catagory` varchar(50) DEFAULT NULL, PRIMARY KEY (`music_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; and this is the code I am using to retrieve it. while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { // 6a. Get the values with the new Array() $row[]. // Put the name of the field you want between the [] for $row. echo "<br>ID: " . $row["music_id"]; echo "<br>Title: " . $row["music_title"]; echo "<br>Music Link: " . $row["music_file"]; echo "<br> Catagory: " . $row["music_catagory"]; echo "<br />"; echo "<br />"; } If you can send me to a tutorial or help on how to save audio files and then retrieve them that would be very helpful. Thanks In advance
  5. Our childish behavior has set me off track for a bit. Now back to the main topic, I did not mention that I wanted see the formatted text. :'( Therefore what you have posted is correct, but i need to go one step further which is display the formatted code. So if i wanted to say "u r rite oh great one". i would like to have it displayed like this. <html> <title> The Grate One</title> <body> <p> You Are Right, Oh Great One! </p></body> </html> Thanks for all the php help, and for helping me relieve myself.
  6. I don't need you to hold my dick, Just open your mouth so I can pee and shit in it!
  7. I did that but it did not work, and since you are a php guru show me something that works. I don't you to hold my dick, Just open your mouth so I can pee and shit in it!
  8. Can you guys show me a small example of what you mean on the above answers. Maybe I'm not doing it right. <?php $my_str = htmlspecialchars('<html> <head> </head </html>' ); echo $my_str; ?> how can I format that above code to look like this. <html> <title> </title> </html>
  9. <?php $my_html = htmlspecialchars("<html> <head> <title> </title> </head><body>whats up </body></html>"); echo $my_html; ?> How can I format this code so it appears like this <html> <head> <title> </title> </head> <body>whats up </body> </html>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.