Search found 16 matches

by devilinc
Mon Jan 10, 2011 5:17 am
Forum: PHP - Frameworks
Topic: Cake PHP beforeSave()
Replies: 2
Views: 3566

Re: Cake PHP beforeSave()

ok now i get the beforeSave() working correctly with my form values still there but my url is changed now....i pass an id also with the url but now the id is not present and hence my function never runs and i get the form with the values entered back to me.........it doesnt save...what am i doing wr...
by devilinc
Mon Jan 10, 2011 4:36 am
Forum: PHP - Frameworks
Topic: Cake PHP beforeSave()
Replies: 2
Views: 3566

Cake PHP beforeSave()

i want to check a condition when the user enters a text field input in the form....i want to check that the value doesnt exceed a value already listed...i run this condition before if($this->save($this->data))....what happens on submission is that the condition succeeds BUT the form entries entered ...
by devilinc
Fri Dec 17, 2010 5:08 am
Forum: PHP - Frameworks
Topic: How to pass an id in cakephp to ajax form?
Replies: 1
Views: 3394

How to pass an id in cakephp to ajax form?

implementing a search functionality with ajax helper...now how do i pass an id present in an array in my ctp file to this search box also present in the same ctp file???i use ajax for search...i need to pass it so that the search function in the controller gets this id as its argument?
by devilinc
Thu Dec 16, 2010 3:04 am
Forum: PHP - Theory and Design
Topic: Need Cake PHP design help
Replies: 0
Views: 1168

Need Cake PHP design help

Here is my scenario. I have a tab namely catalogs which has categories and products under it. Catalog is lets say the menu of categories and when we click on category we get to see the products under it. So, Now, do i have to make separate controllers for catalog, categories and products? because i ...
by devilinc
Thu Dec 16, 2010 3:00 am
Forum: PHP - Frameworks
Topic: Need a corresponding Cake PHP query using find() for my SQL
Replies: 2
Views: 3498

Re: Need a corresponding Cake PHP query using find() for my

I think the query is good enough for simple search
by devilinc
Thu Dec 16, 2010 12:29 am
Forum: PHP - Frameworks
Topic: Need a corresponding Cake PHP query using find() for my SQL
Replies: 2
Views: 3498

Re: Need a corresponding Cake PHP query using find() for my

this is how far i have reached...could anyone advise me if i have written something wrong? $conditions = array( "OR" => array ( "department_name LIKE" => "%".$this->data['Department']['department_search']."%", "department_email LIKE" => "%"...
by devilinc
Thu Dec 16, 2010 12:15 am
Forum: PHP - Frameworks
Topic: Need a corresponding Cake PHP query using find() for my SQL
Replies: 2
Views: 3498

Need a corresponding Cake PHP query using find() for my SQL

I need someone to translate this into CakePHP style....dont want to use normal queries..... SELECT * FROM `departments` WHERE `department_name` LIKE '%hi%' OR `department_email LIKE '%hi%' here i use the email or name from a text field input so i will handle it but if u could just translate this it ...
by devilinc
Tue Dec 14, 2010 10:17 am
Forum: PHP - Frameworks
Topic: Cake PHP file upload
Replies: 0
Views: 3066

Cake PHP file upload

when i try to upload a file, the end result is the filename is stored in database table but the file is not uploaded to the images/logo folder and hence my file isnt displayed.....where did i go wrong? my ctp file is: <?php echo $form->create('Customer',array('type' => 'file'));?> <div class="d...
by devilinc
Tue Dec 07, 2010 10:57 pm
Forum: PHP - Code
Topic: Help with mysql and php form variables!
Replies: 4
Views: 313

Re: Help with mysql and php form variables!

CHANGE BELOW LINE::: $query_rs_insert_gen = "INSERT INTO tbl_gen (dob, desc, dod, fname, img, lname, rootID) VALUES ('".$_POST['dob']."', '".$_POST['desc']."', '".$_POST['dod']."', '".$_POST['fname']."', '".$_POST['img']."', '".$_POST['lnam...
by devilinc
Mon Dec 06, 2010 10:47 am
Forum: PHP - Code
Topic: Login md5 encrypt password verify help
Replies: 7
Views: 1331

Re: Login md5 encrypt password verify help

yes note the above things and maybe i must have overlooked but where is your insert query that actually does the hashing? or did i miss that post?it first hashes the password and stores it right?
by devilinc
Mon Nov 22, 2010 12:34 am
Forum: PHP - Code
Topic: on select of value in drop down list
Replies: 1
Views: 98

on select of value in drop down list

i have a drop down list of values which i had retrieved from table and displayed in this select drop down box...each value in drop down has corresponding information stored in table......now what i want to do is get the information for the corresponding value from the database table when one of the ...
by devilinc
Tue Nov 16, 2010 12:47 am
Forum: PHP - Theory and Design
Topic: PHP Memory Usage
Replies: 3
Views: 1755

Re: PHP Memory Usage

i think its more to do with some memory leak u have in code....script can consume but i dont think this much unless it is a very very very big system he has implemented....i had ran into one of such similar issues.....it had to do with my code....and i corrected it....a massive memory leak :D
by devilinc
Fri Nov 12, 2010 7:05 am
Forum: PHP - Code
Topic: parsing excel files frequently
Replies: 4
Views: 557

Re: parsing excel files frequently

thanks for popping in with ur idea...and hoping for more after u read my post....
by devilinc
Fri Nov 12, 2010 7:02 am
Forum: PHP - Code
Topic: parsing excel files frequently
Replies: 4
Views: 557

Re: parsing excel files frequently

well actually those files are csv files and so i output the contents in different places based on the conditions, description fields etc....is it possible to do some formatting for the files stored in memcache? i use a filereader and csv reader files which i got it downloaded from net to help in fil...
by devilinc
Fri Nov 12, 2010 5:16 am
Forum: PHP - Code
Topic: parsing excel files frequently
Replies: 4
Views: 557

Re: parsing excel files frequently

so here is what i found my reading that file_get_contents() does help in retreiving file contents and acting as primary memory but it writes the entire file to string which is not very useful....i used sessions here and checked if the session is unset before closing the file? is it close enough or d...