Get ID of the record after the save action
if($this->ModelName->save($this->data)){ $id=$this->ModelName->id; echo $id;}
if($this->ModelName->save($this->data)){ $id=$this->ModelName->id; echo $id;}
“Never memorize something that you can look up.”“Paper is to write things down that we need to remember. Our brains are used to think.”
Open Services find Print Spooler in the list, and click the Stop button. Open Windows Explorer and in location bar type %windir%System32spoolPRINTERS Delete the files but don’t delete the PRINTERS folder, just the files. Now go back to Services and click the Start button to start up the service again.
First type sudo apt-get install xinit To install Gnomesudo apt-get install ubuntu-desktop To install KDE issudo apt-get install kubuntu-desktop and to install XFCE sudo apt-get install xubuntu-desktop after installing reboot the systemsudo reboot No X server by design By design, Ubuntu Server Edition does not include an X server or any […]
Youtube generates 4 thumbnails for for every video uploade. To know the thumbnail image location, replace the 11 digit alphanumeric with your own video id http://img.youtube.com/vi/KjNJmwwf7QA/2.jpg
There are two ways to enable error reporting in your PHP . 1. You can add the following function in the .php file: error_reporting(E_ALL); 2. You can add/enable the following option in the php.ini file for your web site: error_reporting = E_ALL To turn error reporting off for a single […]
RocketDock is a smoothly animated, alpha blended application launcher. It provides a nice clean interface to drop shortcuts on for easy access and organization. With each item completely customizable there is no end to what you can add and launch from the dock. Now with added Taskbar support your minimized […]
<form><input type=”button” value=” Print this page ” onclick=”window.print();return false;” /></form> <a href=”#” onclick=”window.print();return false;”>Print this page</a> <a href=”#” onclick=”window.print();return false;”><img src=”images/icon_print.png”></a>
<head><script type=”text/javascript”>function confirmDelete(){return confirm(‘Are you sure?rnrnThis will permanantly delete user from the database!’ );}</script></head> <body> <a onclick=”return confirmDelete();” href=”delete_user.php?id=<? echo $row_ul[‘username’]; ?>”>Delete</a> </body>