Im trying to pull and show the info below. THe select line is what im having trouble with.
[php]<?php
// Connects to your Database
$teamid = $_GET[“id”];
if (!is_numeric($teamid)){die();}
$sql = "select * from playerslist11, teams.teamnameseason AND teams.Team = (SELECT Team from teams WHERE newsid = " . $teamid . “) ORDER BY season11.P DESC”;
$data = mysql_query($sql)
or die(mysql_error());
Print “
TEAM | ”;# | ”;NAME | ”;POS | ”;SALARY | ”;CONTRACT | ”;STATUS | ”;11/12 SALARY | ";12/13 SALARY | ”;13/14 SALARY | ”;PROTECTED | ”;ROOKIE | ”;
---|---|---|---|---|---|---|---|---|---|---|---|
”.$info[‘Team’] . " | ";”.$info[‘Num’] . " | ";”; Print $totalwins; Print " | ";”.$info[‘Name’] . " | ";”.$info[‘Pos’] . " | ";”.$info[‘Salary’] . " | ";”.$info[‘Contract’] . " | ";”.$info[‘11/12_Salary’] . " | ";”.$info[‘12/13_Salary’] . " | ";”.$info[‘13/14_Salary’] . " | ";”.$info[‘Protected’] . " | ";”.$info[‘Rookie’] . " | ";
?> <?php include 'closedb.php'; ?>[/php]
any help would be fantastic…