Hi all, Let's say I have a query:
" SELECT * FROM table
WHERE donor_id = " .$this->session->userdata('id') ."
GROUP BY rating"
However, it appears that I get a mysql syntax error here, citing that $this->session->userdata('id')
gives me '25' for example, instead of 25. Are there any workarounds here to prevent $this->session->userdata('id')
from being quoted?
Thanks.