Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $con=mysql_connect("localhost","cmsmarthom_pond","55021744")or die("cannot connect");
- mysql_select_db("cmsmarthom_project")or die("cannot select DB");
- //$strWhere = $_POST["username"];
- $strWhere = "pond";
- $sql = "select * from timer_backup WHERE Username = '".$strWhere."' ";
- $result = mysql_query($sql);
- $json = array();
- if(mysql_num_rows($result)){
- while($row=mysql_fetch_assoc($result)){
- $json['emp_info'][]=$row;
- }
- }
- mysql_close($con);
- echo json_encode($json);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement