skip to main | skip to sidebar

Cool Stuff

Saturday, January 19, 2008

PHP mysql quick reference


$mysqli = new mysqli($host, $login, $pw, $database);
if ($result = $mysqli->query('SELECT name from employee'))
{
while( $row = $result->fetch_assoc() ){
echo "".$row['name']."
";
}
/* Destroy the result set and free the memory used for it */
$result->close();
}

/* Close the connection */
$mysqli->close();
?>
Posted by Drew LeSueur at 8:26 PM
Labels: mysql, php

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2008 (73)
    • ►  March (16)
    • ►  February (19)
    • ▼  January (38)
      • Helpful Acronym Explanations
      • Thoughts
      • TI Calculators
      • flash games vs. Java Games
      • Learning how to make my own web server
      • Linksys Router
      • html 5
      • Interplay's Atomic Bomberman
      • Bluetooth
      • Remote Desktop
      • Sockets?
      • mysqli
      • php myql quick reference2
      • PHP mysql quick reference
      • What is the difference?
      • Flex
      • Jamba Juice Web Site
      • Comet and Sockets
      • Javascript Form
      • Ajax
      • Comet article on Opera website
      • Flash can talk to Javascript
      • My Canvas Project
      • Comet with script tag
      • PHP can make images
      • PHP add dates
      • Comet example
      • Jetty on Mac OS
      • More on Comet
      • Javascript helps avoid code duplication
      • My bug using php on a windows server
      • Comet
      • Ajax
      • Free Online Group Chat for any website
      • Ajax Online Chat
      • Web Design and Programming
      • Flash Flex Actionscript SWF mxmlc compiler

About Me

Drew LeSueur
View my complete profile