Search Posts

Category: mysql

AngularJS POST request send and recieve data to and from the same PHP script

I’ve looked extensively and still haven’t found the answer to my question. I’ve gotten close, but I think that’s as far as I can get on my own. I have a database that has tables for different years, like so: year_2016, year_2017, year_2018, etc… I’m using PHP and MySQL to query these tables and using AngularJS to display them in HTML. Here is my HTML: <div id=”main” ng-controller=”MyController”> <input type=”text” placeholder=”Search” autofocus ng-model=”query” /> <input […]

How to filter key/value pair based table columns

I have following code to filter given value in ng-model=”searchm” of table column but it shows undefined without search it showing all table columns . <div ng-show=”reports” > <input type=”text” class=”form-control input-sm” style=”width:150px” ng-change=”search()” ng-model=”searchm” placeholder=”Search Label”/> <table style=”border-radius:4px; font-size:12px; overflow-y:scroll; ” id=”reportsTable” class=”table table-sm table-bordered table-condensed”> <tr style=””> <th style=”min-width:20px; “> Sr#</th> <th style=”min-width:30px;”> Name </th> <th style=”min-width:10px;” ng-repeat=”(key,value) in keys”> {{key}} ({{getActive(value).length}}) </th> </tr> <tr ng-repeat=”x in reports | orderBy:’name'”> <td style=”min-width:20px; “> […]

how to copy mysql DB from localhost to server using php?

I have a php project running in my local machine(angular,php,mysql).Same copy of project running in online. My Aim is to Sync(copy local db to server db) every one hour by running any PHP Script using angular ‘set Interval’ function. What is the IDEA behind this functionality should i use? or how i will achieve this ? Any suggestions will be great help for me, and Thanks in advance. Source: AngularJS

AngularJS Project Does Unable to Load Data from MySQL Database

I have a webpage I am trying to create a two row table from data loading from a mySQL database. I have a PHP server setup on the MySQL machine and am able to load data when I hit the URL for the PHP script but when I try and load it in my webpage I get the following error: ng:///DashboardModule/DashboardComponent.ngfactory.js:22 ERROR TypeError: Cannot read property ‘Name’ of undefined Here is the HTML code: <html […]

Web-App: Multiple Users access on form (Push Notification)

hope ur all doing good. First of all i’m not used to write in english so i apologize for any misunderstanding. My question is quite simple i believe but i’m not able to get through it on my own. Situation: I programmed a Web App in HTML5, MySQL with Frameworks AngularJS and Bootstrap. Multiple users have access with their own login data. Now i want to create a page with a form with three different […]

Why am I not able to establish a session on my project on AngularJS, php & MySQL?

I am working on a login system using AngularJS,php, andMySQL. I am following this tutorial on creating an AngularJS user signup and login authentication using php & MySQL. When I put it on “live”, I get the error message below: Failed to load resource: the server responded with a status of 404 (Not Found) angularlogin/files/functions/session:1 Failed to load resource: I have checked my phpinfo for session, which is is enabled. What is wrong? Source: AngularJS

Next Page »