Jump to content

GenuineSounds

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by GenuineSounds

  1. Thank you guys SOOOO much I was WAY over doing the code lol
  2. LOL right when I was posting that you did all by yourself '".$playerid."'
  3. result = mysql_query("SELECT COUNT(*) as count FROM gamestats WHERE statsPlayerID=".$playeridID." AND statsGameID = '".$gameid."'") or die ('Error: '.mysql_error ()); into result = mysql_query("SELECT COUNT(*) as count FROM gamestats WHERE statsPlayerID=\".$playeridID.\" AND statsGameID = \".$gameid.\"") or die ('Error: '.mysql_error ()); I think that's right...
  4. Shouldn't you use _get instead of _request?
  5. I want to be able to use the values of the selected number in the drop down list to append into a url. http://genuinesounds.mine.nu/index.php <?php function dropdown( $name, array $options, $selected=null ) { /*** begin the select ***/ $dropdown = '<select name="'.$name.'" id="'.$name.'">'."\n"; $selected = $selected; /*** loop over the options ***/ foreach( $options as $key=>$option ) { /*** assign a selected value ***/ $select = $selected==$key ? ' selected' : null; /*** add each option to the dropdown ***/ $dropdown .= '<option value="'.$key.'"'.$select.'>'.$option.'</option>'."\n"; } /*** close the select ***/ $dropdown .= '</select>'."\n"; /*** and return the completed dropdown ***/ return $dropdown; } ?> <center> <font size=9><b> Refresh interval in seconds. </b></font> <form> <?php $name = 'time'; $options = array( '5', '10', '30', '60', '120' ); $selected = 0; echo dropdown( $name, $options, $selected ); ?> </form> <form method="link" action="getmyip.php?time=<?php print("$NEED THIS PART"); ?>"> <input type="submit" value="Submit"> </form> </center>
×
×
  • 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.