![]() |
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 :\ |
$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 } |
you can ger more help from phpbuilder.com
|
This thread might help some.
|
I got it a day or two ago :) thanks
http://www.chrisw.us/np/w00t.php :D (b00n wrote the code for t3h bottom) |
| All times are GMT. The time now is 21:34. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.