Search found 34 matches

by frankus
Wed Jan 23, 2019 5:37 pm
Forum: Off Topic Section
Topic: Help with code
Replies: 10
Views: 2921

Re: Help with code

Did you update ALL mysql statements? Depending on your php.ini settings, error messages were probably written to an "error_log" file. If so you'll find the file in your hosting account in the folder where the page is that caused the error. You can view the file to see the errors. EDIT: Just noticed...
by frankus
Wed Jan 23, 2019 12:27 am
Forum: Off Topic Section
Topic: Help with code
Replies: 10
Views: 2921

Re: Help with code

WWBman wrote:
Tue Jan 22, 2019 11:25 pm
It is not as simple as just changing mysql to mysqli.
E.g.
$result = mysql_query($sql, $db);
should be:
$result = mysqli_query($db, $sql);

EDIT:
For the error reporting you can put the following at the start of the page :
<?php
error_reporting(E_ALL);
?>
It didn't work out. And no error.
by frankus
Tue Jan 22, 2019 11:06 pm
Forum: Off Topic Section
Topic: Help with code
Replies: 10
Views: 2921

Re: Help with code

It didn't work. <?php error_reporting(0); session_start(); if($_SESSION['username'] != '') { $mysqli_server = 'localhost'; $mysqli_username = 'username'; $mysqli_password = 'password'; $mysqli_database = 'databasename'; $mysqli_table = 'tablename'; $db = mysqli_connect($mysqli_server, $mysqli_userna...
by frankus
Tue Jan 22, 2019 8:30 pm
Forum: Off Topic Section
Topic: Help with code
Replies: 10
Views: 2921

Help with code

I once used the below code to display user's data on a page using e.g. '.$extra2.' after login. But now it stopped. Anyone knows how to make below code work in php 5.6 server, with MYSQLi functionality? Thank you. <?php error_reporting(0); session_start(); if($_SESSION['username'] != '') { $mysql_se...
by frankus
Tue Jan 22, 2019 5:19 pm
Forum: Forms
Topic: Display data from a MySQL database
Replies: 14
Views: 10226

Re: Display data from a MySQL database

Pablo wrote:
Tue Jan 22, 2019 5:00 pm
I will investigate if this this can be added in a future release.
Great! Thanks!
by frankus
Tue Jan 22, 2019 4:48 pm
Forum: Forms
Topic: Display data from a MySQL database
Replies: 14
Views: 10226

Re: Display data from a MySQL database

Pablo wrote:
Tue Jan 22, 2019 4:36 pm
The option 'PHP5+' only affects built-in scripts, not custom code.
PHP5+ includes support for PHP7.x
Ok. I understand.
As I suggested earlier, it would be great to have a paid extension that has the functionality in question.
Thanks for your time.
by frankus
Tue Jan 22, 2019 4:19 pm
Forum: Forms
Topic: Display data from a MySQL database
Replies: 14
Views: 10226

Re: Display data from a MySQL database

Unfortunately, the code still doesn't work. The presently chosen php version on my server is PHP 5.6 and has other options like PHP 7.0, PHP 7.1, PHP 7.2 and PHP 7.3.
by frankus
Tue Jan 22, 2019 3:26 pm
Forum: Forms
Topic: Display data from a MySQL database
Replies: 14
Views: 10226

Re: Display data from a MySQL database

Pablo wrote:
Tue Jan 22, 2019 3:04 pm
If you set the PHP version in Page properties to "PHP5+" then all database function will use mysqli
Ok, great. Thanks!
by frankus
Tue Jan 22, 2019 2:58 pm
Forum: Forms
Topic: Display data from a MySQL database
Replies: 14
Views: 10226

Re: Display data from a MySQL database

Pablo wrote:
Tue Jan 22, 2019 12:20 pm
I doubt that this has anything to do with WB14.
Maybe you have upgraded the PHP version on the server?
In that case you will need to use mySQLi functions instead of mySQL
Does Login objects have mySQLi option? I see only mySQL and Flat file.
by frankus
Tue Jan 22, 2019 10:49 am
Forum: Forms
Topic: Display data from a MySQL database
Replies: 14
Views: 10226

Re: Display data from a MySQL database

I used to place below code on the account page with HTML object and use '.$ extra1 .' to display the data on page with Text object. But it stopped working after updating wwb to 14. <?php error_reporting(0); session_start(); if($_SESSION['username'] != '') { $mysql_server = 'localhost'; $mysql_userna...
by frankus
Tue Jan 22, 2019 10:36 am
Forum: Forms
Topic: Display data from a MySQL database
Replies: 14
Views: 10226

Re: Display data from a MySQL database

Pablo wrote:
Tue Jan 22, 2019 10:24 am
This requires a custom script.
I wish you could have this as a paid extension.
by frankus
Tue Jan 22, 2019 10:13 am
Forum: Forms
Topic: Display data from a MySQL database
Replies: 14
Views: 10226

Display data from a MySQL database

I have login objects. I want to display any of user's data on the user's account page. I want to be able to display any data at any location on the page. I'm aware of Dataviewer , Responsivedatatable , Mysqlconnector and Mysqltableeditor but they display data as list or table which I don't want. Tha...
by frankus
Sun Oct 14, 2018 9:05 pm
Forum: Forms
Topic: Admin form
Replies: 3
Views: 1572

Re: Admin form

As I stated, I went to the location where server saves errors, I saw no error.
by frankus
Sun Oct 14, 2018 6:41 pm
Forum: Forms
Topic: Admin form
Replies: 3
Views: 1572

Admin form

Admin form doesn't display. Used a test.php (below) to check if connection to database works, and it does connect. <?php # Fill our vars and run on cli # $ php -f db-connect-test.php $dbname = 'db'; $dbuser = 'user'; $dbpass = '********'; $dbhost = 'localhost'; $link = mysqli_connect($dbhost, $dbuse...
by frankus
Tue Jun 19, 2018 9:17 am
Forum: Share self-made extensions with other users of WYSIWYG Web Builder
Topic: SUGGEST FOR EXTENSION DEVELOPMENT
Replies: 640
Views: 601164

Re: SUGGEST FOR EXTENSION DEVELOPMENT

[RZ] wrote:
Tue Jun 19, 2018 8:28 am
have you seen this? http://www.wysiwygwebbuilder.com/forum/ ... 53&t=70102
The demo doesn't show much. Does it have the things I stated I want?