View Single Post
  #11 (permalink)  
Old 02-25-2008, 12:00 AM
TkTech TkTech is offline
 
Join Date: Jun 2006
Posts: 1,022
Last Blog:
Having trouble with yo...
Rep Power: 20
TkTech is on a distinguished road
Send a message via MSN to TkTech
Default

PHP Code:
  1. <?
  2.     $user        =    'root';
  3.     $pass        =    'password';
  4.     $database    =    'roscripts';
  5.     $table          = 'Name of the table';
  6.  
  7.     mysql_connect ( "localhost", $user, $pass ) ;
  8.     mysql_select_db ( $database);
  9.     $result = mysql_query("SELECT * FROM `$table`");
  10.  
  11.     for($i=0;$i<mysql_num_rows($result);$i++){
  12.         $row = mysql_fetch_row($result);
  13.         echo "#" . ($i+1) . ".";
  14.         for($x=0;$x<mysql_num_fields($result);$x++){
  15.             echo $row[$x] . "    |    ";
  16.         }
  17.         echo "<br />";
  18.     }
  19. ?>

That should do for just printing everything in a table. I don't know if that will work right out of the box, Windows Mobile doesn't have PHP yet ^^
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall

Last edited by TkTech; 02-25-2008 at 12:01 AM. Reason: Fixed a boo-boo
Reply With Quote