Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem order number with sql query #83

Open
sunaryaap opened this issue Feb 21, 2015 · 0 comments
Open

Problem order number with sql query #83

sunaryaap opened this issue Feb 21, 2015 · 0 comments

Comments

@sunaryaap
Copy link

Hello admin or all, can you help me.

I make a query for datatables in CI with Ignited-Datatables version 0.7, like this:
$this->datatables
->select(' @i := @i + 1 AS i,
concat(firstname, " ", lastname) AS fullname')
->join('(SELECT @i := 0) dummy', ' 1')
->from('db_member');

I aim for make a order number, like this : http://prntscr.com/67vn90
But I have a problem, sought after in the form results into a mess, like this : http://prntscr.com/67vnej

Do you have a solution ?

Thanks before :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant