|
lol am sorry . I will think of that next time, but it wont go :-( I am missing something
<?
$db_name = "user_mapforum";
$table_name = "ibf_post";
$table_name2 = "ibf_topics";
$connection = @mysql_connect("localhost", "user name", "pass") or die("Couldn't Connect.");
$db = @mysql_select_db($db_name, $connection) or die("Couldn't select database.");
$sql = "SELECT ibf_posts.ibf_posts, ibf_topics.title FROM $table_name, $table_name2
WHERE ibf_topics.title = ibf_posts.post_date";
$result = @mysql_query($sql, $connection) or die("Couldn't execute query.");
while ($row = mysql_fetch_array($result)) {
$ibf_topics = $row['ibf_topics'];
$ibf_posts = $row['ibf_posts'];
$display_title .= "<p><strong>$ibf_topics</strong></p>";
$display_post .= "<p><strong>$ibf_posts</strong></p>";
}
?>
I keep getting couldnt execute query..I think ..well I am missing something..I am calling with echo command on another page using the $display
ohh well I hope people can sort through that mess. thanks
|