Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > Database & Database Programming

Vote on your favorite hash algorithm here!

Database & Database Programming MySQL, Oracle, SQL, PL/SQL, ABAP, Smart Forms, and other databases and languages. A database is an organized body of related information used in many websites (including CC).

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old 02-24-2008, 11:00 PM
TkTech TkTech is offline
 
Join Date: Jun 2006
Posts: 918
Last Blog:
Having trouble with yo...
Credits: 49
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-24-2008 at 11:01 PM. Reason: Fixed a boo-boo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 02-25-2008, 12:46 AM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 795
Last Blog:
Programming "Just a ...
Credits: 102
Rep Power: 9
phpforfun will become famous soon enoughphpforfun will become famous soon enough
Default

good news is that works like a charm. bad news I have NO idea what all that code means, but I learn fast ;-) Thanks guys
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
SQL Tutorials Jordan Database & Database Programming 7 02-23-2008 03:20 AM
Make a script vulnerable to SQL injection? shibbythestoner PHP Forum 7 12-15-2007 08:56 PM
Best program for SQL database manipulation Rhadamanthys Database & Database Programming 3 07-02-2007 02:32 PM
Executing SQL Server 2k DTS Package via Visual Basic Joemama Visual Basic Programming 0 04-09-2007 06:21 PM
Oracle has more Flaws than MS SQL? Jordan Database & Database Programming 9 12-05-2006 09:39 AM


All times are GMT -5. The time now is 02:57 AM.

Contest Stats

Xav ........ 1357.94
MeTh0Dz|Reb0rn ........ 1080.79
WingedPanther ........ 919.18
marwex89 ........ 906.86
morefood2001 ........ 903.18
John ........ 902.37
Brandon W ........ 777.89
chili5 ........ 312.39
Steve.L ........ 264.99
dcs ........ 240.34

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 83%

Ads