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

ddeveloper

ddeveloper supports this item

Supported

666 comments found.

dhuerta29

dhuerta29 Purchased

In user login, can user roles be created to hide specific pages?

Hi

You need to save values in session at login time and on the basis of session, you can show/hide pages. There is no direct function for this. Thanks

dhuerta29

dhuerta29 Purchased

hello, is there any way to use conditional logic for the fields of type date, that if I choose a date later I do not let me choose it?

Hi There is no direct function for this. You need to write Javascript for that part. Thanks

kaigu

kaigu Purchased

hello,

1) can one multiply values using pdocrud?

2)how can i upload a pdf file in this demo ? http://pdocrud.com/demo/pages/multiple-file-uploading

3) there seems to be a problem with the alertify plugin, based on this example. http://pdocrud.com/demo/pages/plugin-alert.php

i have customised it well on my end, and it does not bring any error message … yet , when i try to run it, i don’t see it working like it should…

what i was hoping to see … http://alertifyjs.com/ what i got instead ... https://ibb.co/mc9WSS

my code :

<?php $pdocrud = new PDOCrud(); $pdocrud->addPlugin(“alertify”);//to add plugin $pdocrud->formFields(array(“product_name”)); echo $pdocrud->dbTable(“producttable”)->render(“insertform”); echo $pdocrud->loadPluginJsCode(“alertify”,”input[type=text]”);//to add plugin call on input[type=file] elements ?>

code on plugin helper

<script type=”text/javascript”> jQuery(document).on(“pdocrud_on_load pdocrud_after_submission pdocrud_after_ajax_action”, function (event, container) { jQuery(”<?php echo $elementName; ?>”).alertify({ <?php if (isset($params)) echo implode(’, ’, array_map( function ($v, $k) { return $k . ’:’ . $v; }, $params, array_keys($params) )); ?> }); }); </script>

3.

1. Yes, please check version 3.1 details 2. You can select pdf files in same way like other files. 3. I have checked plugin alertify, to call that initiate function of that plugin requires different parameters, I was trying to add that for you but we have to upload new version fast as some changes in php latest version caused some bugs. I will add it in next version.

Thanks

indufred

indufred Purchased

Hi, Can I make that when I change a field of a select and save send an email automatically? Sorry for my english

indufred

indufred Purchased

Or Can I verify using PHP if a ” field is = ‘yes’ ”-> then send email ??

indufred

indufred Purchased

Ohh, really I want to know if when I edit a entrie and save, automatically can send an email with the changes. Can I?

Hi

Yes, you can send email. You need to set the formSendEmail(). Please check documentation for more details. Thanks

i have two tables in my database .registration and location. a new user has to (1)create an account in one form , (2) fill in the location details in another form. the fields used for the tables are listed below :: pk means that that field is a primary key.

registration -> user_id (pk) , name , email , username , password

location -> location_id (pk) ,user_id , location ,building name , building phone number

i want the user to sign up in the signup form, then create location details in location form . the user id should be the same in the two tables.

i have used inner join to join the two tables using user_id field, since its the common field in the two tables.

code sample: ( screenshot – https://ibb.co/ez8N47 )

the issues i have observed:

1. when i include the where condition, it brings an error SQLSTATE23000: Integrity constraint violation: 1052 Column ‘user_id’ in where clause is ambiguous

2. when i remove the where condition , and hide unwanted fields ,the data will not submit (error screenshot – https://ibb.co/cCZvP7 )

3.when i remove the where condition and show all the fields, thats when the data submits. this makes me create a new user and include location details in one form, which i didnt want .(error screenshot – https://ibb.co/bBcocS )

how can i fix this issue?

I have a question with conditional logic. I have a selector of number of people and when I choose a certain number, for example, 100 people show me all the selectors available for those people, until then everything is fine. But when saving the configuration is not saved in the database, what can be happening?

by
by
by
by
by
by