Created a simple database of 3 fields and am trying access it using MySQL CRUD control Adding a record works, but searching doesn't, always returns no records found.
Geting this error (hostname removed).
AH01215: PHP Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /var/www//wb.mysql.crud.php on line 133: /var/www/cgi-bin/cgi_wrapper/cgi_wrapper, referer: http:..../unsubscribe.html
Also, one of the fields is a date. Is there any way to have it default to today's date?
MySQL CRUD search not working.
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Re: MySQL CRUD search not working.
It is difficult to say anything meaningful about this without knowing the context of the error.
To be able to help you, I need to know all settings, the URL of the page, the PHP code and the database structure.
It works for me, as you can see here:
https://www.wysiwygwebbuilder.com/support/mysqlcrud.php
To be able to help you, I need to know all settings, the URL of the page, the PHP code and the database structure.
It works for me, as you can see here:
https://www.wysiwygwebbuilder.com/support/mysqlcrud.php
Re: MySQL CRUD search not working.
1. What PHP code are you referring to?
2. I don't see any items listed when I go to my page?
3. I would prefer the URL not be posted in a public forum as this is live data with user's email addresses. Is there a way to send it to you privately?
2. I don't see any items listed when I go to my page?
3. I would prefer the URL not be posted in a public forum as this is live data with user's email addresses. Is there a way to send it to you privately?
Re: MySQL CRUD search not working.
I would suggest that, while you are testing, you create a dummy page with dummy data. It's never good to work on live data for the very reason you suggest - it could go public if you are not careful - which would fall foul of GDPR and could end up with a large fine.drosen001 wrote: Tue Dec 07, 2021 7:00 pm 1. What PHP code are you referring to?
2. I don't see any items listed when I go to my page?
3. I would prefer the URL not be posted in a public forum as this is live data with user's email addresses. Is there a way to send it to you privately?
Re: MySQL CRUD search not working.
In the workspace go to Page -> Page HTML1. What PHP code are you referring to?
Are you sure all settings are correct?I don't see any items listed when I go to my page?
Did you set a primary key, as documented in the PDF?
The best way to test new functionality is creating a DEMO project with only the extension and nothing else. Then you can also rule out potential conflicts with other scripts.I would prefer the URL not be posted in a public forum as this is live data with user's email addresses. Is there a way to send it to you privately?
Note that I can only help you, if I know exactly what you have done.