Hello, brief description of my mysql tables are
owners
-user_id
-email
-aim
-team_id
teams
-team_id
-location
-name
-pre
here's my query that i use
and i get this error message
<?php
mysql_connect("localhost", "user", "pass");
mysql_select_db("database");
$query = "select o.email, t.name, o.aim, t.location, from owners o, teams t WHERE o.team_id = t.team_id";
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
echo "{$row['location']}";
echo "nbsp;";
echo "{$row['name']}";
echo " ";
echo "{$row['email']}";
echo " ";
echo "{$row['aim']}";
echo "<br>";
}
?>
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/styckx/public_html/maddenworld/owners.php on line 25
any help in remedying the situation would be GREATLY appreciated 🙂