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.
PJ keeps on making me laugh...
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]
Oooh! I really have to study MySQL more in-depth...
OMG!!! This is cool!!! Knowing you peeps care makes me well already. :*)
I'm getting oodles of mysql errors, but he're a toast to rel.
*toast*
get well soon, buddy