Jump to content

codes to see the out put of a variable


phpworker

Recommended Posts

Hi

if (isset($_GET['p']) && (int)$_GET['p'] > 0) {
$pdId = (int)$_GET['p'];
$sql = "SELECT pd_name
		FROM tbl_product
		WHERE pd_id = $pdId";

$result    = dbQuery($sql);
$row       = dbFetchAssoc($result);
$pageTitle = $row['pd_name'];

}

 

In the above coding,what is the code for seeing the output of the variable $sql,$result,$row

at runtime of the application..

 

Is it echo $result or print ($result) or any other...?

 

thanks

phpworker

 

Link to comment
https://forums.phpfreaks.com/topic/206771-codes-to-see-the-out-put-of-a-variable/
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.