Jump to content

[SOLVED] mysql Joints and php fetch array


jaikar

Recommended Posts

 

Hi,

 

i use joints in my query

for example .  $query = "SELECT a.id, b.name FROM xxx AS a, yyy AS b WHERE a.id=b.id" and execute this query and use

 

$res = mysql_fetch_array($query);

 

now.... how do i get the value..

 

is it

        $val = $res['a.id']

 

or

 

  $val = $res['id']

 

PLease advice .. Thanks !!

 

Jaikar

Link to comment
https://forums.phpfreaks.com/topic/43124-solved-mysql-joints-and-php-fetch-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.