2608 comments found.
Hello,
I try to add ckeditor but it is not working because ckeditor try to replace textarea before
ckeditor.js:252 Uncaught TypeError: Cannot read property ‘getEditor’ of undefined
Hello,
Ckeditor is not working ? I try to add ckeditor on textarea but nothing work… Can you help me please ?
Hi
what you have tried? Let me know.
I have given one example in demo for adding plugin ckeditor. Can you check with that. It will help you.
Thanks
Hi
<?php $pdocrud = new PDOCrud(); $pdocrud->addPlugin(“ckeditor”);//to $pdocrud->fieldCssClass(“content”, array(“ckeditor”)); echo $pdocrud->dbTable(“actualites”)->render();
?>
I try to add it on all field (insert, edit) but nothing append 
If i use ->render(‘insertform’), i see him but only add form 
Okay, i make 3 pages (index, edit and add), i remove javascript button (edit and add), it’s working.
Notice: Undefined variable: cols in /home/pdocrud1/public_html/script/classes/PDOCrud.php on line 2222
Hi,
where are you getting these errors? in demo? Recently someone uploaded millions entries that I have deleted so you can check demo again.
Thanks
Notice: Undefined index: dispaly_records_info in /home/pdocrud1/public_html/script/classes/templates/bootstrap/template-sql.php on line 16
I have replied to your other message, Thanks
Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 256 bytes) in /home/pdocrud1/public_html/script/classes/PDOModel.php on line 442
I have replied to your other message, Thanks
How do I remove the Checkbox Col next to the # col?
Why does the Search not work?
Hi,
1.How do I remove the Checkbox Col next to the # col? – Please check settings for this in config. php. This settings can be set via config or directly using code.
2. Search is working. Please explain what you mean by search not working.
Thanks
Hello,
Filter: i not understand for what in the select fiel you have “select”,”selectefilter” and after result, the better is just Select for all result but not display selectfilter not useful.
Hi
sorry,I am not able to understand your question. Please explain. Thanks
Hi,
I do not understand why you have a double select in the filter, the selectfilter returns -1 what is the utility? Sorry for my question but I have never seen this kind of filter work like this. For me the recovery of the database is sufficient and if you want to delete the filter just delete it with the Delete Cross .
Hi, i back again, i try understand, please read demo: http://pdocrud.com/demo/pages/filters If a choose classic car i have result ok perfect, now choose “select” => no result, Choose “SelectProductLineFilter” => no result, Choose radio + select or Select productline filter => error sql. you can help me?
Ok, you mean that if you re-select, it doesn’t show any result. Reason is that, when you choose “select” , it searches “-1” in the table so instead of that you need to remove that using the cross sign.
Thanks
Why do you have twice the selection? Is it not possible to keep the select single and not display the slectfilter which is useless?
Hi
Let me know how exactly you want this, I will try to make it same. Thanks
Hi,
Just select for all result 
Other question: is possible modify result before showing in table because i have tested with call back function but is only for edit mode.
Thanks
How can I include additional databases simultaneously from other DB?
Hi, It’s not possible to include more than 1 database at a time. Thanks
ouch!
Nice Work. GLWS 
Thanks 
Purchase Code: c22e35a0-a61e-46d1-8c39-1f4c4a7f90ca
Hi – I’m having some issues with an Inner Join I hoped you could help with?
The table renders correctly, but when I click to Edit a record, I get an error message "SQLSTATE[42S22]: Column not found: 1054 Unknown column 'model_id' in 'where clause'"
I also have an issue with Adding an item, but I’ll ask a separate question about that!
My code is below, but the 2 tables involved – measured_make and measured_model. I want the rendered table to show make_name (instead of make_id), which is working, but I don’t seem to be able to edit without the above error. I was hoping you could provide some guidance please?
<?php
$pdocrud = new PDOCrud();
$pdocrud->crudTableCol(array("make_name", "model_id", "model_name","measured_model_enabled"));
$pdocrud->joinTable("measured_make", "measured_model.make_id = measured_make.make_id", "INNER JOIN");
$pdocrud->fieldTypes("measured_model_enabled", "select");//change state to select dropdown
$pdocrud->fieldDataBinding("measured_model_enabled", array("Disabled","Enabled"), "", "","array");
$pdocrud->tableColFormatting("measured_model_enabled", "replace",array("1" => "Enabled"));
$pdocrud->tableColFormatting("measured_model_enabled", "replace",array("0" => "Disabled"));
echo $pdocrud->dbTable("measured_model")->render();
Hi
When you are including “make_id” in crudTableCol function() then is it giving error also or not? Let me know
Please send me structure of both table so I can check accordingly. Thanks
Hi – yes, I still get the error unfortunately – I’ve tried with adding make_id from each table and also together – updated code snippet below.
$pdocrud = new PDOCrud();
$pdocrud->crudTableCol(array("measured_model.make_id", "measured_make.make_id", "make_name", "measured_model.model_id", "model_name","measured_model_enabled"));
$pdocrud->joinTable("measured_make", "measured_model.make_id = measured_make.make_id", "INNER JOIN");
echo $pdocrud->dbTable("measured_model")->render();
The db structure is as follows:
measured_make
- make_id (PK)
- make_name
- measured_make_enabled
- model_id (PK)
- make_id (FK)
- model_name
- measured_model_enabled
I hope this helps!? Thanks for your support!
Hi,
Ok. Let me create same db structure and test it with same code. I will check and let you know in some time. Thanks
Hi
I have checked it. There was some changes in last version that cause this issue. Please contact me via profile. I will send you required solution. Thanks
Great news – thank you. I’ve just sent you a message!
I have replied to email. Thanks
Thank you. I tried to reply via email, but suspect the code I included may have been stripped out so thought I’d post here!
Thank you very much for fix to the above issue! This seems to have fixed that issue… however I think it’s revealed a new one.
My code is now as follows:
$pdocrud = new PDOCrud();
$pdocrud->crudTableCol(array("make_name", "model_id", "model_name","measured_model_enabled"));
$pdocrud->joinTable("measured_make", "measured_model.make_id = measured_make.make_id", "INNER JOIN");
$pdocrud->fieldTypes("make_id", "select");//change state to select dropdown
$pdocrud->fieldDataBinding("make_id", "measured_make", "make_id", "make_name", "db");//add data using another table name country
$pdocrud->fieldTypes("measured_model_enabled", "select");//change state to select dropdown
$pdocrud->fieldDataBinding("measured_model_enabled", array("Disabled","Enabled"), "", "","array");
$pdocrud->tableColFormatting("measured_model_enabled", "replace",array("1" => "Enabled"));
$pdocrud->tableColFormatting("measured_model_enabled", "replace",array("0" => "Disabled"));
echo $pdocrud->dbTable("measured_model")->render();
The table render displays as I’d expect. However when I Edit or Add, I think there’s a new issue.
On both the Edit and Add screens, I also get all the fields from the ‘joined’ tables – and these are mandatory. I’ve got another page where I do 2 joins, and the fields from both ‘joined’ tables are shown.
If I use $pdocrud->fieldNotMandatory(“make_name”); then I get an error on Submit.
If I use $pdocrud->crudRemoveCol(array(“make_name")); then it also removes the column from the table on the render.
Finally, if I fill in the fields of the ‘joined’ table then it alters the records of the ‘joined’ table – which is not desirable.
I guess the fields from the ‘joined’ table shouldn’t be requested all? Would you be able to confirm for me please? Am I doing something incorrectly?
Many thanks
Hi,
You can remove which fields not to be shown using the formRemoveFields function or you can use formFields function to show specific fields.
Please note that for crud table and form fields, we have different sets of functions. Sorry for late reply as my office got shifted and I was having some trouble in accessing internet.
I hope it clears now.
Thanks
Thank you – that’s great and makes sense!
I’ve just tried it for Edit and it works really well!
For Add/Insert though there’s an error on submit… SQLSTATE[HY000]: General error: 1364 Field 'make_name' doesn't have a default value
My code is now as follows – would you be able to confirm for me?
Note – I’m adding a record to the measured_model table. make_name is a value in the measured_make table and is not a PK or FK.
$pdocrud = new PDOCrud();
$pdocrud->crudTableCol(array("make_name", "model_id", "model_name","measured_model_enabled"));
$pdocrud->joinTable("measured_make", "measured_model.make_id = measured_make.make_id", "INNER JOIN");
$pdocrud->fieldRenameLable("make_id", "Make Name (ID)"); //Rename label
$pdocrud->fieldTypes("make_id", "select");//change state to select dropdown
$pdocrud->fieldDataBinding("make_id", "measured_make", "make_id", "make_name", "db");//add data using another table name country
$pdocrud->formFieldValue("make_id", $makeid); //set the value of model_id to be as per the selection of the top form - i.e. default to what the user selected
$pdocrud->fieldDataAttr("model_id", array("disabled"=>"disabled"));
$pdocrud->fieldTypes("measured_model_enabled", "select"); //change state to select dropdown
$pdocrud->fieldDataBinding("measured_model_enabled", array("Disabled","Enabled"), "", "","array");
$pdocrud->tableColFormatting("measured_model_enabled", "replace",array("1" => "Enabled"));
$pdocrud->tableColFormatting("measured_model_enabled", "replace",array("0" => "Disabled"));
$pdocrud->formRemoveFields(array("make_name", "measured_make_enabled"));
$pdocrud->where("measured_model.make_id", $makeid, "=");
echo $pdocrud->dbTable("measured_model")->render();
}
Any thoughts at all?
Many thanks
Hi
It’s related to table/sql error not script related. Please check this
http://stackoverflow.com/questions/15438840/mysql-error-1364-field-doesnt-have-a-default-valuesHi – thanks very much for this. I’ve had a read, but I’m struggling to understand why an insert to the measured_model table, is causing an error to the measured_make table. The insert should only impact the _model table? The script shouldn’t be trying to add any details to the _make table?
Hi
Please check your table. There must be some constraint like foriegn key/primary key defined for both tables that’s why it is giving these message.
Hi – thanks for coming back to me – I really appreciate the support. I’ve been doing some testing to try and get to the bottom of this.
I have 2 constraints – a FK between measured_make.make_id and measured_model.make_id and a unique index on measured_make.make_name.
Also to confirm, measured_make.make_name does not have a default value set as it needs to be unique for that table.
The error that is being displayed suggests that when I do an Insert on the _model table, it is also trying to do an insert on the _make table – which it shouldn’t be doing – it should only be doing an insert on the _model table.
Because I don’t have a default value set in the make_name field it is throwing the error.
To test this, I set a default value for make_name to be “bob1”. When I ran the add/insert on the _model table, the insert succeeded with no error. HOWEVER, there is now an entry of “bob1” in the make_name column of the _make table – which is incorrect behaviour for what I want to achieve…
I think the issue lies with the $pdocrud->joinTable because if I remove this then the Add/Insert succeeds (sort of – it does 3 inserts!?).
So I guess it’s worth me explaining what I’m trying to achieve because I suspect I’m either using incorrect lines of code, or there is a bug.
To recap – my table structures are as follows:
measured_make- make_id (PK)
- make_name
- measured_make_enabled
- model_id (PK-Unique)
- make_id (FK)
- model_name
- measured_model_enabled
Note – one make (make_id) can be used on many models.
When I load the measured_model PDOCrud page, I want the following columns to be displayed: .- measured_make.make_name
- measured_model.model_id
- measured_model.model_name
- measured_model.measured_model_enabled
$pdocrud = new PDOCrud();
$pdocrud->crudTableCol(array("measured_make.make_name","model_id", "model_name","measured_model_enabled"));
$pdocrud->joinTable("measured_make", "measured_model.make_id = measured_make.make_id", "INNER JOIN");
$pdocrud->tableColFormatting("measured_model_enabled", "replace",array("1" => "Enabled"));
$pdocrud->tableColFormatting("measured_model_enabled", "replace",array("0" => "Disabled"));
echo $pdocrud->dbTable("measured_model")->render();
.
NOTE: I think the documentation says that where there is a one-to-many relationship I should use LEFT JOIN… but when i do this, I get an error that measured_make.make_name is an unknown column even though it’s joined… is this a bug or have I set the join incorrectly?
So the display of the CRUD table works. But then the Edit and Add/Insert need a bit extra. For this, I only want to show the measured_model fields because I only want to edit or add to the measured_model table. Additionally, I want to have a dropdown box that contains the measured_make.make_name values instead of the measured_model.make_id.
The render of the forms is achieved with this code:
$pdocrud = new PDOCrud();
$pdocrud->crudTableCol(array("make_name","model_id", "model_name","measured_model_enabled"));
$pdocrud->joinTable("measured_make", "measured_model.make_id = measured_make.make_id", "INNER JOIN");
$pdocrud->fieldRenameLable("make_id", "Make Name (ID)"); //Rename label
$pdocrud->fieldTypes("make_id", "select");//change state to select dropdown
$pdocrud->fieldDataBinding("make_id", "measured_make", "make_id", "make_name", "db");//add data using another table name country
$pdocrud->formFieldValue("make_id", $makeid); //set the value of model_id to be as per the selection of the top form - i.e. default to what the user selected
$pdocrud->fieldDataAttr("model_id", array("disabled"=>"disabled"));
$pdocrud->fieldTypes("measured_model_enabled", "select"); //change state to select dropdown
$pdocrud->fieldDataBinding("measured_model_enabled", array("Disabled","Enabled"), "", "","array");
$pdocrud->tableColFormatting("measured_model_enabled", "replace",array("1" => "Enabled"));
$pdocrud->tableColFormatting("measured_model_enabled", "replace",array("0" => "Disabled"));
$pdocrud->formFields(array("make_id", "model_name", "measured_model_enabled"));
echo $pdocrud->dbTable("measured_model")->render();
.
This displays the forms correctly and the drop downs contain the correct data.
When I use Edit (following your advice in your previous reply above) everything works really well.
However, when I use Add, I get the error that the field make_name doesn’t have a default value – which as described above is correct (it doesn’t have a default value).
So I think my questions become – how can I display the make_name column on the crud render, when I’m viewing measured_model table. And how can I only Edit the values of or Add/Insert to the measured_model table?
Please could you confirm what the expected behaviour is when doing an Insert where a join has been used?
Sorry for the long reply, I thought it important to explain what I’m trying to do!
Hi,
I have tried to read 2-3 times but still I am not getting this long post. can you be more specific. I know that you tried to elaborate as much but I am not able to get that. sorry about that.
Hi,
No problem – sorry for being confusing!!
The code uses an Inner Join to create the Crud table.
I think the problem is that I expect that when I do an “Add” to the _model table, that the script will only do an Insert to the _model table.
However, the behaviour I’m seeing is that the script is also doing an Insert to the _make table (I’ve been able to test and prove this – it’s not a db issue). I don’t want the script to do that. I only want the insert to the model table.
So I think the question is – how do I stop the insert to the ‘joined’ table?
I need to use the Join to make the CRUD display the correct fields, but when I do Add or Edit (although I can hide the _make fields), how do I stop it from trying to update or insert into the _make table?
I hope this helps to clarify?
Many thanks
Hi,
Yes, I understood your problem that you don’t want to insert data in other table. Script was designed in a way that it insert data in both tables. Let me try to find some solution for that. Thanks
Great news – thank you!
Hi – I wondered if you’d had any joy with this? Is there any input I can provide to help find a solution? Many thanks
Hi, I am working on same. I will release it with new version asap. Thanks
Hi – Just wondered how the new version was going? Sorry for the chaser – my project is stalled at the moment, so thought I’d ask for an update!!
Hi
I have completed all other points in new version but stuck at this point. I am trying to figure out it asap. I will let you know once done.
Thanks
Great news – Thank you! Really excited to see the results!
Hi – Just thought I’d check in and see how the new dev was coming? Have you been able to figure out the final challenge you were having? Thanks!
Hi – any news at all on this fix? have you been able to resolve it all?
Hello Best regards. Giacomo Racioppi
I have this problem:
Notice: Undefined index: i in /var/www/vhosts/grwebservice.it/httpdocs/ar/script/classes/templates/bootstrap/template-table.php on line 83
How to solve? Look for an answer with confidence.
Thank you.
Hi
in which operation, you are getting this message. Please let me know. THanks
Hello Best regards. Giacomo Racioppi
When I use:
$pdocrud->setPK("id");
echo $pdocrud->dbTable("users")->render("EDITFORM",array("id" => "$sel_id_utente"));
Top of the page I get:
{message":""}
or
{message eseguita con successo",error":""}
When I use:
echo $pdocrud->dbTable("users")->render();
I get:
Notice: Undefined index: i in /var/www/vhosts/grwebservice.it/httpdocs/ar/script/classes/templates/bootstrap/template-table.php on line 83
of all records.
How to solve? Look for an answer with confidence.
Thank you.
Hi,
I have tried but I am not able to replicate this scenario i.e. I am not getting any errors. Can you upload somewhere and provide me access so I can check. Thanks
To better see the errors described in previous posts send the links in your profile.
Thank you.
Ok, I will check it. Thanks
Hello, I inform you that ckeditor doesn’t work if you don’t print the “insertform” between render brackets, I mean if you print something like: echo $pdocrud->dbTable(“products”)->render(); in the Add form there isn’t the ckeditor but if you print for instance: echo $pdocrud->dbTable(“products”)->render(“insertform”); it works.
sounds strange.
Bye
Hi
That’s strange. Can you send me complete code you are using for both cases. Please send me via my profile page on email. Thanks
Hi, ok Sended.
Ok..thanks. I will check it today and will get back to you.
Very nice work !!!
Thanks 
Hello ddeveloper,
I hope you are doing all well!
My name is Nicolai representing Original Products Security.
Your various Wordpress Plugins (especially your PDO Crud – Advanced PHP CRUD application (Database Management System)) has become fairly popular on the internet which is very good for your business. Unfortunately I have come across many leaked and cracked versions of your product online recently on file sharing websites.
Of course, this is probably not too surprising to you, it can still come to a shock as you have put hard work and dedication into the production, marketing, and release of your product. Would you be surprised if I said that your product has over 500 downloads on a single forum alone? These downloaders could be potential customers as they are already interested in your software. If the product was not already available online for free, about 30% of people statistically would have bought the product legitimately! Even if only 10 users purchased the software from you, we are still talking hundreds of dollars.
Here is a few links I found with a quick search of Google. As you can see, your product is leaked on many file sharing sites!
http://zippysharee.com/v/pdocrud-advanced-php-crud-application-database-management-system-download-nulle-3193260/file.html http://nulled.gps-poi-us.com/category-database-abstractions/download-pdocrud-advanced-php-crud-application-database-management-system.php http://nulledtalk.net/php-scripts/pdocrud-advanced-php-crud-application-database-management-system.php https://downloads10.com/pdocrud-advanced-php-crud-application-database-management-system/ http://www.free-download.pro/pdocrud-advanced-php-crud-application-database-management-system-I have found several other links on the internet that are also giving your product away for free.
In a recent study saw that people tend to see if they can get something online for free before paying for it. If they can then they obviously do not pay for it, but, if they can’t, over 30% of those people go on to buy the product.
We are able to practically completely wipe these links off of the internet making it almost impossible to get your software for free. With our process we remove the easy to find links that potential buyers may find. Then, we continue to remove the links from the underground membership sites, these private forum sites make it so their files are only visible to forum members. We have accumulated hundreds of memberships on underground forums over our time in the industry so we are able to REALLY make it impossible to get your software from a file hosting site.
Sincerely, Nicolai Nguyen Original Products Security
Thanks
Let me know how you can help us. Thanks
We will file a complaint to the website illegally hosting your contents, asking them to permanently remove it. We are very experienced in this so we assure that 99% we will success. The process usually take 2-3 business days
How much you charge for this work? Thanks
It would cost 10$ per month for this service
Hi,
Ok. let me know more details via profile. Thanks
What do you mean “via profile”?
Can this app simply change with other admin theme? or does this app have some hardcoded script making other admin theme difficult to port in?
Hi,
There is some css written for the table part, but it can be easily integrated with any other theme. Thanks
I have tried and work so perfect!
Great Thanks 
Hello, First of all thank you for your replies. it’s possible to associate a value to a checkbox array?
If I have something like:
$pdocrud->fieldTypes("visible", "radio");
$pdocrud->fieldDataBinding("visible", array("Yes","No"),"","", "array");
1) If the user select Yes the value inserted in the table will be for istance 55 if the user select “No” the value inserted will be 99.
2) How I can insert just 1 checkbox and write in DB “1” if is checked or “0” if is unchecked?
Hi,
please check demo.
http://pdocrud.com/demo/pages/field-type
$pdocrud->fieldTypes("hobbies", "checkbox");//change hobbies to checkbox button
$pdocrud->fieldDataBinding("hobbies", array("Dance","Art","Games"), "", "","array");//add data for checkbox button
or example with key/array
$pdocrud->fieldDataBinding("hobbies", array("0"=>"Dance","2"=>"Art","5"=>"Games"), "", "","array");//add data for checkbox button
Thanks
Hello 
I’m so sorry – just found what I was looking for. Great Script!
I would like to see some polish for the Docs with some advanced Examples and some Functions that combine Grid & Form Functions like renaming or removieng fields.
It’s great that you find the correct things.
I don’t know polish but I have tried to add as many example as possible with many pages separate documentation also.
I am continuously adding more features and improving docs.
Thanks 
Hi – I have a pre-sales question if that’s ok?
I have a car db that has 4 tables. Make, Model, Year and Details.
Make is structured:- make_id (PK)
- make_name
- model_id (PK)
- <make_id (FK make.make_id)
- model_name
- year_id (PK)
- model_id (FK model.model_id)
- year_name
- details_id (PK)
- year_id (FK year.year_id)
- model_id (FK model.model_id
- columnx
- columny
- columnz
I can see from your documentation and examples that joins are supported – this is great… but I had some queries about usability that I hoped you could help with?
If I want to CRUD the Details table, can you tell me whether it’s supported to have the year_id column show the associated year_name text and the model_id column to show the associated model_name text?
If I Edit the Details table, is it also possible to have the year column to be a drop down of year_name values? and is it possible to have the model column to be a drop down of model_name values… when the edit takes place, I would want the _id to be stored though, not the _name. is this possible?
Also – the same question for Insert too… when I create a record in Details, can the year and model columns be dropdown’s of the _name values and when the record is saved, can it store the _id’s rather than the text of the _name ?
Do you think this would be possible? Which functions would I need to use/combine? Sorry for the 3 questions in 1 post!
Many thanks
Hi
Answer to your all question
1. Yes 2. Yes 3. Yes
Thanks
Thank you! I think I’ve now seen in the documentation that I’d make use of the “Replace Column value” (tableColFormatting) as shown on your demo site for all 3 of these?
But… in the demo, it uses a manually typed array… is it possible to drive this via SQL? i.e can I specify a sql query in this function or would the array always have to be manually typed? Or, would the array need to be created via a separate query and then used as a variable to pass it in?
Many thanks
Hi
You can use both array as well as DB to get data. Thanks
Can we have Calculated Columns? example : col a + col b / col y
Hi
You can perform simple operation like sum to get new column but complex sum formula is not supported in current version. Thanks
b6055d4b-9455-473c-8865-8e0f91f0d51f
search box not working on mobile phone (unable to type text in search box). Is there a trick to make it responsive? Do I need to modify css?
Hi,
I am able to type on mobile also. Please check. Yes, you can write custom css also as explained in the skin.css. Thanks
The live demo site pdocrud.com on an iphone 6s plus using safari does not allow you to search or type any text. In fact, the only button that works is the x button…
Hi,
It’s small css bug for the safari. I have corrected that, please check and please contact me via profile, I will explain that small change. I will upload here also. Thanks