I have used "echo $query" to see whether it is getting value or not but it is not showing anything on the page. What is the other way to see what value it is getting?I use Aptana Studio 2.0 PDT but I am not able to set the breakpoints. Quite new in it.\[code\]<?phperror_reporting(E_ALL);ini_set('display_errors', '1'); $ulName = $_GET['ControlName']; $query = $_GET['SqlQuery']; echo $query; mysql_connect('localhost:3306','pffsddsf','dfsdfsd'); mysql_select_db('publicdb'); $result=mysql_query("select * from electioncategorymaster");?><ul id="<?php echo $ulName; ?>" name="<?php echo $ulName; ?>"><?php while($row=mysql_fetch_array($result)){ ?> <li><?php echo $row[1]; ?></li><?php } ?></ul>\[/code\]