phpworker Posted July 5, 2010 Share Posted July 5, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/206771-codes-to-see-the-out-put-of-a-variable/ Share on other sites More sharing options...
premiso Posted July 5, 2010 Share Posted July 5, 2010 var_dump will tell you what is the variable, the length and what the type of the variable is. Quote Link to comment https://forums.phpfreaks.com/topic/206771-codes-to-see-the-out-put-of-a-variable/#findComment-1081327 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.