bondja
-
Posts
8 -
Joined
-
Last visited
Never
Posts posted by bondja
-
-
lol thanks, now i dont have an error but it says i odnt have members now...but i do
-
Could not successfully run query (SELECT teamid, From members) from DB: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'From members' at line 1
I have
<table border="0" width="100%">
<tr>
<td width="33%"><b>Username</b></td>
<td width="33%"><b>Email</b></td>
<td width="34%"><b>some_info</b></td>
</tr>
<?php
include('config.php');
$sql = "SELECT teamid, From members";
$get_teamid = mysql_query($sql);
if (!$get_teamid) {
echo "Could not successfully run query ($sql) from DB: " . mysql_error();
exit;
}
if (mysql_num_rows($get_teamid) == 0) {
echo "
<td><font color=\"#FF0000\">*Your have no members</font></td>";
include('html.php');
exit;
}
while ($rw = mysql_fetch_assoc($get_teamid)) {
echo '
<tr>
<td width="33%">' . $rw['teamid'] . '</td>
<td width="33%">' . $rw['email'] . '</td>
<td width="34%">' . $rw['some_info'] . '</td>
</tr>';
}
mysql_free_result($get_teamid);
?>
-
My database is ladder, then in there i have members, and in members I have teamid and id etc.
-
same thing as above
-
hm...i guess i was wrong how much i know lol yea still wont work
-
Username Email some_info
Could not successfully run query (SELECT members) from DB: Unknown column 'members' in 'field list' -
Hey, I just got this script for a gaming ladder for like $10 bucks, and it was good bargain but I'm wanting to add features to it, right now i'm trying to figure out how to fetch the user names from the mysql database and put them in the table. I know what the code means and I understand it, i just don't know how to lpace it together, help would be amazing.
Fetch User names
in PHP Coding Help
Posted