Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Archived Discussions
Archived Development & Programming
mySQL problem
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
mySQL problem
El Forum
Unregistered
#1
11-22-2012, 04:00 AM
[eluser]JunlieF[/eluser]
Pls. correct me I need a little help here...
$sql = "SELECT * FROM deparments, prints WHERE 'id{$dept}' AND 'date_printed BETWEEN '{$from}' AND '{$to}'";
El Forum
Unregistered
#2
11-22-2012, 06:41 AM
[eluser]solid9[/eluser]
Why are you using the traditional way?
Why not use Active Records?
Try executing and testing that inside PHPMyAdmin,
So when you see an error it's easy for you to fix it.
El Forum
Unregistered
#3
11-23-2012, 01:30 AM
[eluser]rochellecanale[/eluser]
What exactly you want to do? And what's the error?
El Forum
Unregistered
#4
11-23-2012, 03:38 AM
[eluser]fasfad[/eluser]
If you run that query with $this->db->query($sql);
Use $this->db->last_query(); To get the generated sql and check that or put it in phpmyadmin to check whats wrong with it.
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB