Qbasicnews.com

Full Version: If everyone could sign this (and Relsoft, take a look ;*) )
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
http://thegeekery.org/relbook/
Take a look, and sign it if you please. Smile
Ahhhh noooo, sorry zack i misspellt my name and accidentally pressed enter instead of backspace. =P could u remove the other post, thanx ;-)
Sure thing...*flips open phpMyAdmin*
I love MySQL. Smile
Very cool Wink
PJ keeps on making me laugh... Smile
And speaking of MySQL, what was that method of obtaining data from tables that you showed me? With arrays?
Code:
// Define sql

$sql = "SELECT foo, joe AS bar
  FROM blah
  WHERE condition
  AND other_condition
  LIMIT number, number";

// Do query
if ( !$result = @mysql_query( $sql ) )
{
  // die, with nice, formatted output. I suggest a function for this
  die('
Database Query Error!

' . mysql_error() . '
$sql
Line: ' . __LINE__ . ', File: ' . __FILE__);
}

// Get each result, and store it in $row as we go
while ( $row = mysql_fetch_array( $result ) )
{
  // Do what you will with each result
  $foo = $row['foo'];
  $joe = $row['bar'];  // Note, the AS bar clause means joe is in bar
}

[end oracle's quick db tutorial]

Wink
Oooh! I really have to study MySQL more in-depth...
OMG!!! This is cool!!! Knowing you peeps care makes me well already. :*)

Big Grin
I'm getting oodles of mysql errors, but he're a toast to rel.

*toast*

get well soon, buddy Wink
Done. Wink
Pages: 1 2