I have a simple POST script that I need to return to the page that was doing the Posting. Is there any way to do it like this? if($done) { //go to page }
Codeigniter variables from constructor are undefined
I’m using CI’s Auth Tank library to query records for certain users. The variable $user_id = tank_auth->get_user_id(); grabs the user id from the session. I want to pull records where user_id = $user_id. From what I understood, constructors can load variables each time a class is initiated. Sort of like global variables. So I figured I’ll set my $user_id in
add existing pdfs to fpdf
Is there any function that I could call in order to include an existing pdf in my fpdf file? For example $pdf->AddPage(from file example.pdf); something like that? is it posible?
Fatal error: Call to undefined method mysqli_stmt::query()
Why am I getting the following error? Fatal error: Call to undefined method mysqli_stmt::query() $mysqli = new mysqli(“localhost”, “***”, “***”, “***”) or die(…
How can I format the number for only showing 1 decimal place in php?
Does any one know how can I format the number and limited it to only show 1 decimal place in php? Example: How can I format the number 2.10 to 2.1 in php?
MySQL and PHP – insert NULL rather than empty string
I have a MySQL statement that inserts some variables into the database. I recently added 2 fields which are optional ($intLat, $intLng). Right now, if these values are not entered I pass along an empty string as a value. How do I pass an explicit NULL value to MySQL (if empty)? Answer To pass a NULL to MySQL, you do
Show more/less without stripping Html tags in JavaScript/jQuery
I want to implement readmore/less feature. i.e I will be having html content and I am going to show first few characters from that content and there will be a read more link in front of it. I am …
Edit ScriptCase Code Directly?
I’m doubting since this site is full of experts anyone has dealt with this, but I’m hoping someone might have. I’m working with a client now who is creating a site using ScriptCase. I’ve tried figuring it out, and I’m lost as to how I can do something as simple as parse a CSV file after its been uploaded. So,
PHP: Check who had read sent email?
I am sending email to some users and wants to know who had read it, means if some one had read that email then a log file will maintain which contain the email address of that user with date/time/IP. For this I send a javascript function with the email (html template) which just alert the email address of the user
Smarty permissions problems
Smarty is complaining about permissions. I’ve written a small mvc framework for a project I’m working on and I need to be able to render templates in each controller. I went ahead and followed the …