Daily Archives: Saturday, December 4, 2004

MySQL PHP example

PHP-MySQL really simple example <?php // Connecting, selecting database $link = mysql_connect("localhost", "_USERNAME_", "_PASSWORD_")    or die('Could not connect: ' . mysql_error()); echo 'Connected successfully'; mysql_select_db("_DB_NAME_") or die('Could not select database'); // Performing SQL query $query = 'SELECT * FROM _TABLE_NAME_ '; echo 'Query successfully'; $result = mysql_query($query) or die('Query failed: ' . mysql_error()); echo [...]
Posted in Linux, Mac, and LAMP Open Source | Leave a comment
  • Welcome…

    ...to Daigo’s Daily Digital Diorama. This is utterly useless online journal (yes, that was what it was originally called before term "blog") that I've been keeping since 2002. Since it is ".org," my wife once called it a nonprofit nonsense. I use this blog mostly about baseball, and being Japanese man in America. Wondering who the heck Daigo is?

  • Color Switcher

    Purple Red Green Blue No Style

  • My websites

    JapaneseBallPlayers.com
    A bilingual websites dedicated to bring you the information on Major League Baseball players from Japan.

    Go-RedSox.com
    Japanese language blog about Boston Red Sox.

    Daigo Fujiwara portfolio
    My work as graphic designer/web designer.

    Daigo.org
    Personal blog that I've been keeping since 2002.

    Itadakimasu
    I like to eat. And taking photo of it.

  • Calendar

    December 2004
    M T W T F S S
    « Nov   Jan »
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  
  • Past entries

  • Topics that I cover

  • Flickr