|
|
|
|
#1 |
|
Forum King
Join Date: Mar 2002
Location: Hell
Posts: 3,309
|
php help?
Im trying to make it so I can submit using the dosomething plugin for winamp, the current playing song, artist, and album that Im listening to. I got a script that submits the song and it works
PHP Code:
Artist: current artist's name Title: Current song's title Album: Current Album. Does anyone have any idea cause Im stumped :\ |
|
|
|
|
|
#2 |
|
Rudolf the Red.
(Forum King) Join Date: Nov 2000
Posts: 9,314
|
$query = "SELECT * from $table WHERE name = $song";
$result = mysql_query($query); $num = mysql_affected rows(); if ($num == 0) { echo "Artist: $result[0]"; echo "Song: $result[1]"; echo "Album: $result[2]"; } else { do something else } "We think science is interesting and if you disagree, you can fuck off." |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2003
Posts: 18
|
you can ger more help from phpbuilder.com
|
|
|
|
|
|
#4 |
|
Alumni
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
|
This thread might help some.
|
|
|
|
|
|
#5 |
|
Forum King
Join Date: Mar 2002
Location: Hell
Posts: 3,309
|
I got it a day or two ago
thankshttp://www.chrisw.us/np/w00t.php (b00n wrote the code for t3h bottom)
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|