Apply for Zend Framework Certification Training


Step 1 Create Index file

<table id="jsondata" class="table table-bordered table-hover" width="400" align="center">
<th>Email Link</th>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
 	var url="read_json.php";

  		$.each(data.tutorials, function(i,post){
			var newRow = "<tr><td>""</td>                  
                           <td><a href='""'>WebLink</a></td>
                          </tr>" ;

Step 2 Create  an read_json.php

	$posts = array();
	$query = "SELECT * FROM users";
	$mq = mysql_query($query);
	while($row = mysql_fetch_assoc($mq)) {
		  $posts['tutorials'][] = $row;
	echo json_encode($posts);

< Insert Data Using Php Mysql Jquery in Json Format Access Json Data in jquery in php >

Ask a question

  • Question:
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question

Back to Top