how do i open my datadbase

a.vanderplas56
11 Posts
a.vanderplas56 posted this 17 February 2023
Ask a Question

where do I open my database (the connect statement) on my HTML page?

where do I open my database (the connect statement) on my HTML page?
Vote to pay developers attention to this features or issue.
7 Replies
Order By: Standard | Newest
Support Team
Support Team posted this 17 February 2023

Abraham,

HTML site does not require a database, just make the design in the application and export it to a remote folder via FTP.
...................................................
Sincerely,
Alan R.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Abraham, HTML site does not require a database, just make the design in the application and export it to a remote folder via FTP. ................................................... Sincerely, Alan R. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
a.vanderplas56
11 Posts
a.vanderplas56 posted this 18 February 2023

Hi, The database exists already but how can I search for info, do I open the database with a PHP file and get the info e transport it in the HTML file like:
<?php $servername ; $username ; $password ; $dbname ; create connection $conn mysqli($servername, $username, $password, $dbname); check connection if ($conn-?>connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT Code FROM Persoon";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_assoc()) {

echo "Code: " . $row["id"]. "<br>";

}
} else {
echo "0 results";
}
$conn->close();
?>

Or can I include this code in the HTML code in a form like HTML code?.. <?php....code ......?> ...HTML code

Hi, The database exists already but how can I search for info, do I open the database with a PHP file and get the info e transport it in the HTML file like: &lt;?php $servername ; $username ; $password ; $dbname ; create connection $conn mysqli($servername, $username, $password, $dbname); check connection if ($conn-?&gt;connect_error) { die("Connection failed: " . $conn->connect_error); } $sql = "SELECT Code FROM Persoon"; $result = $conn->query($sql); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { echo "Code: " . $row["id"]. "<br>"; } } else { echo "0 results"; } $conn->close(); ?> Or can I include this code in the HTML code in a form like HTML code?.. &lt;?php....code ......?&gt; ...HTML code
Support Team
Support Team posted this 18 February 2023

Hello Abraham,

Unfortunately, Nicepage doesn't export websites into PHP format; therefore, it doesn't require a connection to a database or a server. If you need a PHP website, check on the internet: "how to convert HTML websites into PHP."

Thank you for understanding
...................................................
Sincerely,
Ahmad.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Abraham, Unfortunately, Nicepage doesn't export websites into PHP format; therefore, it doesn't require a connection to a database or a server. If you need a PHP website, check on the internet: "how to convert HTML websites into PHP." Thank you for understanding ................................................... Sincerely, Ahmad. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
a.vanderplas56
11 Posts
a.vanderplas56 posted this 19 February 2023

It is a great disappointment to me that the HTML environment of Nisepage has no communication with a database. So one cannot have a database in combination with a website made with Nicepage and that is for a financial expenditure that does not correspond to the functionality. I think that working with a database is normal for many people. The fact that Nicepage can only make html pages is therefore not that special, but I find it more than disappointing to charge a solid price for that!!!

So I ask the Nicepage users to lend me their hand otherwise I have to look for a web builder who does have that option. Double costs!!! So if there is someone who can help me with the communication of a database and with the Nicepage environment, it is very welcome, please help!!!!!!
Abraham

It is a great disappointment to me that the HTML environment of Nisepage has no communication with a database. So one cannot have a database in combination with a website made with Nicepage and that is for a financial expenditure that does not correspond to the functionality. I think that working with a database is normal for many people. The fact that Nicepage can only make html pages is therefore not that special, but I find it more than disappointing to charge a solid price for that!!! So I ask the Nicepage users to lend me their hand otherwise I have to look for a web builder who does have that option. Double costs!!! So if there is someone who can help me with the communication of a database and with the Nicepage environment, it is very welcome, please help!!!!!! Abraham
Ch3vr0n
363 Posts
Ch3vr0n posted this 19 February 2023

Well NP sort of does export to php but only IF you use the CMS Joomla or Wordpress (and maybe woocommerce plugin) option. HTML natively simply doesn't support PHP. PHP is a serverside script language that can output HTML, but HTML is a client-side web language that doesn't support php.

What exactly is it you're trying to do? What's that db connect code from?

Well NP sort of does export to php but only IF you use the CMS Joomla or Wordpress (and maybe woocommerce plugin) option. HTML natively simply doesn't support PHP. PHP is a serverside script language that can output HTML, but HTML is a client-side web language that doesn't support php. What exactly is it you're trying to do? What's that db connect code from?
a.vanderplas56
11 Posts
a.vanderplas56 posted this 19 February 2023

Thanks for your response!!!
1. I try to create a login with a control on the database
Then I like to save the data of the client in a Database.!
2. I like to register some financial gifts from clients in a database.
3. then I like to store a transport truck with characteristics.

The site is a site to help Ukraine with gifts and other stuff, driven by volunteers.
Those volunteers need to be registered.
The handle communication with the database e uses a website with many volunteers in different places.
that it. I started with the website and when I like to create the "Login" I found the problem that Nicepage
that not has a solution and is not able to put and read info from a database.

In the past, I was able to create a website that has io traffic with a database but that software is not anymore valid(old)
I'm not a software engineer but I like to help this project volunteers.

If you can show my a way to go, PLEASE help!!!

Thanks for your response!!! 1. I try to create a login with a control on the database Then I like to save the data of the client in a Database.! 2. I like to register some financial gifts from clients in a database. 3. then I like to store a transport truck with characteristics. The site is a site to help Ukraine with gifts and other stuff, driven by volunteers. Those volunteers need to be registered. The handle communication with the database e uses a website with many volunteers in different places. that it. I started with the website and when I like to create the "Login" I found the problem that Nicepage that not has a solution and is not able to put and read info from a database. In the past, I was able to create a website that has io traffic with a database but that software is not anymore valid(old) I'm not a software engineer but I like to help this project volunteers. If you can show my a way to go, PLEASE help!!!
Support Team
Support Team posted this 21 February 2023

Hello Abraham,

If you require so many options, we would like to suggest you use third-party plugins in WordPress along with Nicepage.
Where you can allow users to register, donate and track all the data.
...................................................
Sincerely,
Ahmad.
Nicepage Support Team

Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1
Follow us on Facebook: http://facebook.com/nicepageapp

Hello Abraham, If you require so many options, we would like to suggest you use third-party plugins in WordPress along with Nicepage. Where you can allow users to register, donate and track all the data. ................................................... Sincerely, Ahmad. Nicepage Support Team Please subscribe to our YouTube channel: http://youtube.com/nicepage?sub_confirmation=1 Follow us on Facebook: http://facebook.com/nicepageapp
You must log in or register to leave comments