01.
$db2
= mysql_connect(
"localhost"
,
"aaa"
,
"1111"
);
02.
mysql_query(
"SET NAMES UTF8"
);
03.
$db4
= mysql_connect(
"localhost"
,
"bbb"
,
"222"
);
04.
mysql_query(
"SET NAMES UTF8"
);
05.
$objQuery
= mysql_query("SELECT * FROM db_car_stock.car_stock AS a
06.
INNER JOIN qcss.repair AS b ON a.car_stock_id=b.idcarstock
07.
INNER JOIN qcss.service_center AS c ON b.idservice=c.idservice
08.
INNER JOIN qcss.status_repair AS d ON b.idstatus=d.idstatus where a.car_stock_regis LIKE
'%$q%'
" );
09.
$num
=mysql_num_rows(
$objQuery
);