Click here to Skip to main content
15,887,596 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: guidance regarding a project Pin
Aladár Horváth3-Aug-15 3:33
professionalAladár Horváth3-Aug-15 3:33 
AnswerRe: guidance regarding a project Pin
Erick Shawn3-Aug-15 22:07
professionalErick Shawn3-Aug-15 22:07 
QuestionEvent to detect when browser(IE) is maximized... Pin
NJdotnetdev30-Jul-15 7:33
NJdotnetdev30-Jul-15 7:33 
AnswerRe: Event to detect when browser(IE) is maximized... Pin
Kornfeld Eliyahu Peter30-Jul-15 8:48
professionalKornfeld Eliyahu Peter30-Jul-15 8:48 
GeneralRe: Event to detect when browser(IE) is maximized... Pin
NJdotnetdev30-Jul-15 9:48
NJdotnetdev30-Jul-15 9:48 
AnswerRe: Event to detect when browser(IE) is maximized... Pin
Afzaal Ahmad Zeeshan1-Aug-15 0:54
professionalAfzaal Ahmad Zeeshan1-Aug-15 0:54 
GeneralRe: Event to detect when browser(IE) is maximized... Pin
NJdotnetdev3-Aug-15 3:07
NJdotnetdev3-Aug-15 3:07 
QuestionMy Data is not showing on my html page Pin
Salman _Memon28-Jul-15 21:17
Salman _Memon28-Jul-15 21:17 
<?php
mysql_connect ("localhost", "root", "") or die (mysql_error());

mysql_select_db ("webservices_exmple")or die (mysql_error());


$var = array();

$sql = "SELECT * FROM User";

$result = mysql_query($sql);


while($obj = mysql_fetch_object($result)) {
$var[] = $obj;

}

echo json_encode($var);

?>

// here second page///
&lt;html>
&lt;head>

&lt;script type="text/javascript">
$(document).ready(function(){
var url="getjson.php";
$("#jsondata tbody").html("");
$.getJSON(url,function(data){
$.each(data.User,function(i,data){
var newRow =
"<tr>"
+"<td>"+data.id+"</td>"
+"<td>"+data.name+"</td>"
+"<td>"+data.age+"</td>"
+"<td>"+data.gender+"</td>"

+"</tr>" ;
$(newRow).appendTo("#jsondata tbody");
});
});
});

&lt;/script>

&lt;/head
&lt;body>
<table class="mGrid" id="jsondata" >
<thead>
<th>Id</th>
<th>Name</th>
<th>Age</th>
<th>Gender</th>
<th>Location</th>
</thead>
<tbody></tbody>
</table>


&lt;/body>
&lt;/html>

-- modified 29-Jul-15 3:45am.
AnswerRe: My Data is not showing on my html page Pin
DPaul199417-Aug-15 19:46
DPaul199417-Aug-15 19:46 
QuestionConvert Horizontal <table> to vertical using CSS Pin
Jassim Rahma26-Jul-15 20:39
Jassim Rahma26-Jul-15 20:39 
AnswerRe: Convert Horizontal <table> to vertical using CSS Pin
Salman _Memon28-Jul-15 21:36
Salman _Memon28-Jul-15 21:36 
AnswerRe: Convert Horizontal <table> to vertical using CSS Pin
Erick Shawn3-Aug-15 22:22
professionalErick Shawn3-Aug-15 22:22 
QuestionWindows VM to process Microsoft Office files Pin
jgrogan26-Jul-15 4:54
jgrogan26-Jul-15 4:54 
AnswerRe: Windows VM to process Microsoft Office files Pin
Erick Shawn3-Aug-15 22:32
professionalErick Shawn3-Aug-15 22:32 
QuestionConvert Device Info to Media Query Pin
Jassim Rahma26-Jul-15 4:34
Jassim Rahma26-Jul-15 4:34 
QuestionAdjust Table into CSS based on Device Width Pin
Jassim Rahma25-Jul-15 21:51
Jassim Rahma25-Jul-15 21:51 
AnswerRe: Adjust Table into CSS based on Device Width Pin
Jassim Rahma26-Jul-15 1:42
Jassim Rahma26-Jul-15 1:42 
AnswerRe: Adjust Table into CSS based on Device Width Pin
Erick Shawn31-Jul-15 2:14
professionalErick Shawn31-Jul-15 2:14 
QuestioniPhone media query not working Pin
Jassim Rahma25-Jul-15 10:54
Jassim Rahma25-Jul-15 10:54 
AnswerRe: iPhone media query not working Pin
Peter_in_278025-Jul-15 22:09
professionalPeter_in_278025-Jul-15 22:09 
AnswerRe: iPhone media query not working Pin
Ferd Really31-Jul-15 7:27
Ferd Really31-Jul-15 7:27 
QuestionCSS or Separate Mobile Site? Pin
Jassim Rahma24-Jul-15 5:19
Jassim Rahma24-Jul-15 5:19 
AnswerRe: CSS or Separate Mobile Site? Pin
F-ES Sitecore26-Jul-15 1:18
professionalF-ES Sitecore26-Jul-15 1:18 
AnswerRe: CSS or Separate Mobile Site? Pin
Erick Shawn31-Jul-15 1:46
professionalErick Shawn31-Jul-15 1:46 
QuestionHow to find which DIV is selected and get selected DIV element values in jquery Pin Pin
sr15924-Jul-15 1:37
sr15924-Jul-15 1:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.