Advertisement
Guest User

Untitled

a guest
Aug 29th, 2011
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <?
  2. session_start();
  3. if(!session_is_registered(myusername)){
  4. header("location:main_login.php");
  5. }
  6. ?>
  7. <?
  8. echo "<BR>Account: ".$_SESSION["user"];
  9. //acc name
  10. include "config.php";
  11. mysql_connect(SQL_HOST, SQL_USERNAME, SQL_PASSWORD);
  12. mysql_select_db(SQL_DBNAME);
  13.  
  14.  
  15. $result = mysql_query("SELECT * from characters WHERE account_name='".$_SESSION["user"]."'")
  16. or die(mysql_error());
  17.  
  18.  
  19. // keeps getting the next row until there are no more to get
  20. echo '<select name="platforma" size="1">';
  21. while($row = mysql_fetch_array( $result )) {
  22. // Print out the contents of each row into a table
  23. echo '<form method="POST" action="view_project.php"> ' ;
  24. echo '<input type="hidden" name="sector" value="sector_list"> ' ;
  25. echo ' <select name="sector_list" class="inputstandard"> ' ;
  26. echo '<option value="'.$row['char_name'].'">'.$row['char_name'].'</option>';
  27. echo ' </select> ' ;
  28. echo ' <input type="submit" value="Go!"> ' ;
  29. echo ' </form>' ;
  30.  
  31.  
  32. }
  33. echo '</select>'
  34. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement