Code

Discussion on PDO Crud – Advanced PHP CRUD application (Form Builder & Database Management)

Discussion on PDO Crud – Advanced PHP CRUD application (Form Builder & Database Management)

Cart 2,301 sales

ddeveloper supports this item

Supported

2608 comments found.

Hi, How to hide field in viewform ? hide in edit but no in view tks

Hi

view form fields are same as columns set.

I am interested in the product. Please let me know if you have already added Oracle support.

Yes, you can ask some developer to do that. I will add in future version but if you need now then it will require some cost for this customization. Thanks

Perfect, naturally, you know what my next question is. May I know the charges for this?

Please contact via my profile. I will let you know. Thanks

I have a bunch of questions:

1. Please see the following screen shot:

As you can see, when I activate inline editing, it shifts all the fields to the right. Furthermore, the “Loan Amount” field is displayed as a tiny input box, not wide enough to display the data. How can I fix these issues?

2. Is there any way to manually get and set column values? I understand you can use the tableColFormatting() function to assign various format types, but this approach is too limiting. I want to be able to write my own custom functions to dynamically modify field values, prior to displaying them in the table. I’m looking for something like:

colGetData($colname);
colSetData($colname, $val);

3. Can you please explain the usage of the colDependent() method? The documentation states that it allows you to make the value of one field dependent on another, but it’s unclear how to actually use the function. Can you provide an example?

4. Is there any way to format dates in the edit form? I know how to format dates in the table view, but it seems like in the edit box, dates are always displayed in Y-m-d format.

5. Currently, the script treats timestamp fields as numeric. However, when you query a MySQL timestamp field, it returns the result in date/time format, not as an integer. This causes jQuery errors and the displayed data is blank, unless you manually override the format using tableColFormatting() and fieldTypes() methods, forcing it to date format.

6. There should be a preference setting to display numeric fields using a standard input box instead of a numerical input box. I find numeric input boxes annoying, since they display a up/down arrows to increment/decrement the values. For many times of numeric fields, this control is not applicable. Again, I realize, we can override it manually, but I’d like an option to make the standard input box the default control for numeric fields.

5. We have tableColUsingDatasource() to lookup foreign key values in the grid, and we have fieldDataBinding() to lookup values in the edit form, but what about the view form? I was expecting tableColUsingDatasource() to affect both the grid and the view form, but it has no effect on the view form.

6. I’m trying to create a join and getting the following error message:

SQLSTATE23000: Integrity constraint violation: 1052 Column ‘id’ in field list is ambiguous

I know what the error means, but I don’t understand why it’s happening in this case. Both the source table and the joined table contain a field called “id”, but in the joinTable() method, I’m explicitly referencing the fields using table.field notation: joinTable('loan_types', 'loan_applications.loan_type_id = loan_types.id', 'INNER JOIN')

Strangely, if I change ‘INNER JOIN’ to ‘LEFT JOIN’, I get a different error:

SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘type’ in ‘field list’

The error occurs when I add the ‘type’ field as a parameter in the crudTableCol() method. I’ve tried adding it as ‘type’ and also tried explicitly referencing the table name, ‘loan_type.type’, yet it acts as though the field doesn’t exist.

1. SQL query can be of any type so it creates issues. That’s why we haven’t added it yet. May be in future.

2.Timestamp field is different and saved as int.

3. It depends on table type, it returns as int also.

4. There is no callback for table display, I might add in next version.

5. Yes, you are right. There is no function of view form. I will add it.

6. It is because the left join requires all fields to be added at both times.

Thanks

hello , wanna know if this can do something like this http://xcrud.com/demos/index.php?page=relations&theme=bootstrap plus if a register is made it can validate it alredy exist? on the db?
http://jsfiddle.net/hxZSU/1/ and can add something like this including for button_

Hi

1. Yes, can be done.

2. Registration validation feature is not available in current version.

3. Please check this example, click on add/edit button

http://pdocrud.com/demo/pages/join

Hi How to add custom button in grid custom data ej: data-print={col_name} Thank

Hi,

Please check this example

http://pdocrud.com/demo/pages/action-buttons

Thanks

Hi, Great product and i am sure will be collecting this very soon. 1. Is there an option to display the action buttons on the left? Because if there are a lot of table columns, in order to edit or delete, we have to scroll all the way to the right to look for the action buttons to click for every record. 2. On the mobile device (Galaxy S6), the search row is not able to fit into a single row, may be make the search input field shorter by default for mobile device. 3. Import does not seems to work on the demo. 4. Image Manipulation on demo does not seems to work, after upload an image, nothing happened. i am not seeing a tool to crop the image or preview of the image. (because my borwser’s popup blocker?). Thanks.

Hi! Please, how do I perform the select in the database with a “where” condition, through the $ pdocrud-> fieldDataBinding (html input type select)? very thanks!

Hi, you need to first perform select query and get data and pass data as array there. There is no direct select query to do that.

Hi friend, thanks, and what is the function that I can use to perform select, a ($ pdocrud-> setQuery)? Thank you

Hi,

You can create PDOModel object using $pdocrud->getPDOModelObj() function and run any type of query. Please read the more details about this in documentation. Thanks

I will write here because I do not have an answer, I reported that there was an error with the Popup Form, when it is activated and I select mutiple fields and then the DEL button, popup s ‘Opens with the table, this error was also visible on your demo page, now I did a test again on your demo page and it’s functional, have you fixed the problem? Thank you for replying so I can be notified of possible correction …

Hi,

I haven’t changed anything in demo. Let me know your exact issue. Thanks.

ok sorry the problem is still here, on your demo page Opera: http://prntscr.com/e6tkgc And Firefox: http://prntscr.com/e6tkzu

Ok..I am checking it. Thanks

I am creating a user registry with only 2 data (name and email)

I need to validate that the email is not duplicated

Two questions:

1) Is there any function in the script that does that?

I inserted a code to validate the duplicate email in $ pdocrud-> addCallback (“before_insert”, “beforeinsertCallBack”);

But

2) How can I abort the script to send an error message when there is a duplicate email record?

I have replied you in other message. Thanks

I am creating a user registry with only 2 data (name and email)

I need to validate that the email is not duplicated

Two questions:

1) Is there any function in the script that does that?

I inserted a code to validate the duplicate email in $ pdocrud-> addCallback (“before_insert”, “beforeinsertCallBack”);

But

2) How can I abort the script to send an error message when there is a duplicate email record?

Hi

no you need to write specific code to validate it.

Script calls via ajax so can’t be aborted.

Thanks

Could you show me an example ?

HI

Recaptcha and captcha do not work when you use formFields

Do you have a solution for this?

<?php $pdocrud = new PDOCrud(); $pdocrud->formFields(array(“nombre”,”email”, “password”, “reset_password”)); $pdocrud->recaptcha(“6LeXCxQUAAAAALBvDVydqAppWlYiwYDg10VEf69-”,”6LeXCxQUAAAAABrx8OVjCaXsFkv2TzBwl0Ls9rhU”); $pdocrud->fieldRename(“reset_password”, “Confirmar Password”); $pdocrud->addCallback(“before_insert”, “beforeinsertCallBack”); $pdocrud->formRedirection(’#’); $pdocrud->buttonHide(“cancel”); // Hide button $pdocrud->enqueueCss(“form-elements”, ”../assets/css/form-elements.css”); $pdocrud->enqueueCss(“signup”, ”../assets/css/signup-form.css”); $pdocrud->enqueueCss(“style”, ”../assets/css/style.css”); echo $pdocrud->dbTable(“usuarios”)->render(“insertform”);

I’m sorry, I mistakenly hit it 3 times but it’s the same code

If you delete $ pdocrud-> formFields (array (“name”, “email”, “password”, “reset_password”)); The code works

Hi,

Ok.. I will check this. Thanks

Hi can you please include html5, max tag, for the field type number, through the function of pdocrud (fielTypes)?

And for the data field, when the data type like (dd-mm-yy), to insert non-DB display error by not converting to the format (yy-mm-dd), can not change the code to insert In the correct way ?

Thank you

Hi friend, perfect, however I have problem in: I define in the config file the date format (dd-mm-yy). In the form the date is displayed correctly in the calendar after I select, for example: 07-02-2017. When I click save, the date format is not returning to the default (yy-mm-dd) to be inserted into the database in the correct form. So it ends up giving an error in the insert, in the invalid date format. As I can be correcting, either in the code I make change without problem, if you can help me thank you. Thank you very much.

Hi,

If you change date format, then you need to write the code to change format in date. Thanks

cool, any option to create fields on demand?

Hi

You mean you want to dynamically add fields, yes, it can be done. Please check demo/documentation for more details. Thanks

Hi, I’ve searched the option in the demo but I can not find it, could you tell me what menu option it is? Thank you

Hello ddeveloper, I test it for 4 days but I admit that is very difficult for me to solve it alone. Just trying to use “file input” plugin, and it seems working. In “Insertform” if I browse an image, this will be uploaded and saved correctly in the db field.

But the plugin doesn’t work when I press “Edit” because the “input type=”image” is empty. (I expect some box with the inserted images) In other words Looking at plugin page I exepct something like this: http://plugins.krajee.com/file-preview-management-demo Can you help me, how about preview the alredy inserted image?

Thank you very much.

Hi,

I am checking this plugin. You can send me details about code and steps yo have followed. Thanks

Hi friend, please, when I use fieldValidationType or fieldType as being numeric, if I add maxlenght validation it does not work, just by running the numeric field option. What should I do? thank you so much.

Hi, I will update you for all validation type in next version in this week. Thanks

Thank you if you can let me know as soon as I update on the site. thank you.

Sure. Thanks

Please, the function (fieldValidationType) is not working according to the example given in the Demo. Is it possible to put masks in the field (telephone, date of birth)?

Hi,

There is some change in last version that caused issue in fieldValidationType function. For fieldvalidationtype, I am working on next update with correction. Thanks

Thanks! You can put mask in the text field, for (data) for example ?

I will try for mask. Thanks

please What is the difference between the pdo crud advanced plugin and pluginFormdoid?

Hi,

Formdoid is only for forms while PDOCrud does complete crud operation including form. Basically PDOCrud has all feature of formdoid and many more features. Thanks

very thanks.

Hi; it is possible to integrate PDOCrud with Codeigniter 3? Thank you

Hi,

Yes, but PDOCrud basically does everything related to database directly so you don’t have call model so it will be basically like calling the controller and passing it to view. so you can use like this. Thanks

thank you

Hello,

Is possible change complete line color ? Ty

Hi,

This option is not available. Thanks

Thanks

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey