savanihd / php-angularjs-crud-with-search-and-pagination Goto Github PK
View Code? Open in Web Editor NEWPHP Angularjs CRUD with Search and Pagination
PHP Angularjs CRUD with Search and Pagination
This area of code:
<button data-toggle="modal" ng-click="edit(value.id)" data-target="#edit-data" class="btn btn-primary">Edit</button>
It show empty input for edit.
I try to use it wih MSSQL server. I changed db connection to sql server syntax. I understand that i have to change also and here:
<?php
require '../db_config.php';
$num_rec_per_page = 5;
if (isset($_GET["page"])) { $page = $_GET["page"]; } else { $page=1; };
$start_from = ($page-1) * $num_rec_per_page;
if (!empty($_GET["search"])){
$sqlTotal = "SELECT * FROM sms_addrs
WHERE (adrs LIKE '%".$_GET["search"]."%')";
$sql = "SELECT TOP($start_from)id,adrs FROM sms_addrs
WHERE (adrs LIKE '%".$_GET["search"]."%')";
}else{
$sqlTotal = "SELECT * FROM sms_addrs";
$sql = "SELECT TOP($start_from)id,adrs FROM sms_addrs";
}
$result = $mysqli->query($sql);
while($row = $result->fetch_assoc()){
$json[] = $row;
}
$data['data'] = $json;
$result = mysqli_query($mysqli,$sqlTotal);
$data['total'] = mysqli_num_rows($result);
echo json_encode($data);
?>
But i cant. Can someone give a try here? Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.