mysql - Select 2 different columns from 2 different tables -


i'm trying select 2 different columns (newsid table news , movid table movies) can use mysql_num_rows grab items in conditions.

i tried code below, not working. how can fix it?

$queryy="select newsid ".prefix."news published='1'"; $queryy="union (select movid ".prefix."movies activated='2')"; $all=safe_query($queryy);  $gesamt=mysql_num_rows($all); 

you're overwriting variable second assignment. in 1 string assignment:

$queryy = "select newsid ".prefix."news published='1'            union (select movid ".prefix."movies activated='2')"; 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -