Getting information from mysql using jquery
<p>i have mysql database for i fetch information using json
for example:</p>

<pre><code>$sql ="SELECT * FROM parent WHERE id = '$name'";       
$result = mysql_query($sql);
while($row = mysql_fetch_array($result))
 {
$abc=$row[id];
}
echo json_encode($abc)
</code></pre>

<p>Now how can i display this json encoded element in my main html file using jquery?
what i want to do is based on this fetched element i want to do some if else operation.</p>

<p>for example:</p>

<pre><code>if(value of row[id](should be achieved using jquery) ==null)
{}
else
{}
</code></pre>

<p>I am looking for something like $(xxxx).somefunction()
Thanks in advance.</p>
