I use a program it puts the ID of the recommended content in a recommendation table I want to call a recommended type of content can not be adjusted, please expert guidance.
$result =mysql_query ("SELECT * from ' recommendation table ' where tj_id=1 limit 0,12");
while ($row =mysql_fetch_array ($result)) {
?>
$aid = $row [tj_id];
$result 1=mysql_query ("select * from" Content table ' where Id=aid ');//where id=aid here to the aid directly to the number can come out, should be the last line to get results
while ($row =mysql_fetch_array ($result 1)) {
?>
}
?>
}
?>
Reply to discussion (solution)
Print_r ($row); Look
$aid = $row [tj_id];
If the "previous row does not get results", then there is no execution at all
$aid = $row [tj_id];=> $aid = $row [' th_id '] if the value is not reached, then you look closely.
$aid = $row [tj_id];
$result 1=mysql_query ("select * from ' content table ' where id=1");//That is to say, this outputs
while ($row =mysql_fetch_array ($result 1)) {
?>
$aid = $row [tj_id];
$result 1=mysql_query ("select * from" Content table ' where Id=aid ");//landlord here should be replaced by the aid $aid it? Do you mean to check the id= string for aid?
Aid changed to $aid, you're a variable, not a character.