Location: PHPKode > projects > OpenCabling > opencabling/get_connection_name.php
<?php
        $connection_id=$_REQUEST['connection_id'];

	if (is_numeric($connection_id)) {
	        include "opendb.php";
	      	
	        $sql="select * from connections where id_connection='$connection_id'";
	        $query=mysql_query($sql,$mysql_conn);
	        if (mysql_num_rows($query)>0) {
	                $result=mysql_fetch_assoc($query);
			echo $result['name'];
		}
	}
?>
Return current item: OpenCabling