Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: use active records in library
Post: RE: use active records in library

PHP Code: -- public function userExists($id){        $query = $ci->db->get_where('users', array('id' => $id));        $number = $query->num_rows();        if($number > 0)            return true; ...
7,350 Views
4 Replies
10-22-2017, 06:22 AM
Valerekk
    Thread: use active records in library
Post: use active records in library

Hello, i'm writing my personal library for Users. but i have a problem trying to query my db. is wrong call db from Lib? PHP Code: -- Class User {    public function __construct(){       ...
7,350 Views
4 Replies
10-21-2017, 07:10 PM
Valerekk
    Thread: input post empty
Post: RE: input post empty

ivantcholakov Wrote: (10-20-2017, 09:24 AM) -- js: Code: -- function sendLogin(id, email) {   $.ajax({       type: 'post',       url: "http://www.plickapp.com/API/index.php/users/register_u...
19,014 Views
9 Replies
10-21-2017, 01:29 PM
Valerekk
    Thread: input post empty
Post: RE: input post empty

my js function Code: -- function sendLogin(id, email) {    $.ajax({        type: "POST",        contentType: "application/json; charset=utf-8",        url: "http://www.plickapp.com/API/index...
19,014 Views
9 Replies
10-20-2017, 04:53 AM
Valerekk
    Thread: input post empty
Post: RE: input post empty

ponzo Wrote: (10-19-2017, 11:53 PM) -- Try  PHP Code: -- $_POST = json_decode(file_get_contents("php://input"), true); -- Or if it's not json you're sending without the json_decode -- I'm s...
19,014 Views
9 Replies
10-20-2017, 01:49 AM
Valerekk
    Thread: input post empty
Post: RE: input post empty

neuron Wrote: (10-19-2017, 11:21 PM) -- which js frawework you are using for posting? As I remember I had similar using when I used Angularjs. -- I tried by Jquery, pure Javascript and tool called ...
19,014 Views
9 Replies
10-20-2017, 01:47 AM
Valerekk
    Thread: input post empty
Post: input post empty

Hi guys, i'm writing a backend in CI (frontend separated in html/js) when i tried to send POST data to my controller $_POST is empty.. I've tried for few way but i always receive a empty array. Ma...
19,014 Views
9 Replies
10-19-2017, 03:35 PM
Valerekk
    Thread: Database problems. mysql/mysqli/pdo
Post: RE: Database problems. mysql/mysqli/pdo

Narf Wrote: (10-04-2017, 10:15 AM) -- You should be using num_rows() - the method, not a property. -- omg... i'm feeling so stupid... It works... thanks
6,030 Views
4 Replies
10-04-2017, 02:11 PM
Valerekk
    Thread: Database problems. mysql/mysqli/pdo
Post: RE: Database problems. mysql/mysqli/pdo

Narf Wrote: (10-04-2017, 07:42 AM) -- Define what you mean by "doesn't work". -- I'm sorry. how you can see in model Code: -- if($query->num_rows < 1)           return "NO";       else  ...
6,030 Views
4 Replies
10-04-2017, 07:46 AM
Valerekk
    Thread: Database problems. mysql/mysqli/pdo
Post: Database problems. mysql/mysqli/pdo

Hi!  i wrote an easy script in CI for testing db access... using mysql driver it works, but it shows a warning message Code: -- A PHP Error was encountered Severity: 8192 Message: mysql_pc...
6,030 Views
4 Replies
10-04-2017, 07:20 AM
Valerekk

Theme © iAndrew 2016 - Forum software by © MyBB