Kullaniciadi 0 Newbie Poster

Multiple database select - but print ids separately

$sql = "SELECT * FROM peron, peronmedia WHERE peronmedia.PID=5" and peron.ID=5"; $xc = mysqli_query($baglanti, $sql); $rs=mysqli_fetch_array($xc);

echo $rs["peron.PID"];
echo $rs["peronmedia.ID"];

but the codes don't work

How can I do it?

Thank you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.