rogerzebra
Technical User
Hi friends,
I have problem to get a inner join query to work. I start to wonder if I'm missing a driver or so, to make join queries? When i try a simple select it shows me the information.
My tables are Inno db. As always I really appreciate if someone could take a moment to look at my problem.
Thanks
/rz
I have problem to get a inner join query to work. I start to wonder if I'm missing a driver or so, to make join queries? When i try a simple select it shows me the information.
My tables are Inno db. As always I really appreciate if someone could take a moment to look at my problem.
Code:
$colname_rsArticles = "-1";
if (isset($_GET['id_art']))
{
$colname_rsArticles = (get_magic_quotes_gpc()) ? $_GET['id_art'] : addslashes($_GET['id_art']);
}
mysql_select_db($database_db, $db);
$query_rsArticles = sprintf("SELECT * FROM blg_article_art INNER JOIN blg_topic_top ON idtop_art = id_top WHERE id_art = %s", $colname_rsArticles);
$rsArticles = mysql_query($query_rsArticles, $db) or die(mysql_error());
$row_rsArticles = mysql_fetch_assoc($rsArticles);
$totalRows_rsArticles = mysql_num_rows($rsArticles);
/rz