PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
the code bellow get's and pastes the name of a file, the size of it and when it was uploaded for example "epic.swf - 2Mb - 2009-09-16". in the code i pasted bellow i have a someting i wanna ask. how could i do so that when someone for example clicks on "epic.swf" and "play.php" opens in a new window the row ". $row["name"] . " should print out the name of the file that was clicked in this manner "echo '<a href="/. $row["name"] . "></a>"'" how could i do this?
tasairis wrote:What's the name of the unique field in the table? Might be auto_incremented? I'll call it "id" - make sure you change it to whatever it needs to be.
play.php then uses $_GET["id"] (the unique ID of whatever it should play) to look up which file to use.
Id did like you said so now my links are "/play.php?id=4" but when i open play.php nothing happens, the values are empety. what i have i play.php now is this