Jair,
Cannot test while missing themes/desktop.css and lib/hmgscript.js
Serge
HMGSCRIPT R42
Moderator: Rathinagiri
- serge_girard
- Posts: 3222
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: HMGSCRIPT R42
There's nothing you can do that can't be done...
Re: HMGSCRIPT R42
I used the hmgscript42 folder, use this folder as reference and add the uploaded filesserge_girard wrote: ↑Tue Feb 19, 2019 10:09 am Jair,
Cannot test while missing themes/desktop.css and lib/hmgscript.js
Serge
- serge_girard
- Posts: 3222
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: HMGSCRIPT R42
Jair,
Missing /php/mysql.php AND themes/desktop.css !
Serge
Missing /php/mysql.php AND themes/desktop.css !
Serge
There's nothing you can do that can't be done...
Re: HMGSCRIPT R42
So I need an example with mariadb I do not use php, how to connect to mysql with mariadb ?, can I create the php file manually and add in my application does it work or not?serge_girard wrote: ↑Tue Feb 19, 2019 3:43 pm Jair,
Missing /php/mysql.php AND themes/desktop.css !
Serge
- serge_girard
- Posts: 3222
- Joined: Sun Nov 25, 2012 2:44 pm
- DBs Used: 1 MySQL - MariaDB
2 DBF - Location: Belgium
- Contact:
Re: HMGSCRIPT R42
Jair,
In function MySQLBrowse you use: xmlHttp.open( "POST" , "/php/mysql.php" , false ) ;
This PHP file will do all the work. You will have to create it yourself!
It will be something like this:
Serge
In function MySQLBrowse you use: xmlHttp.open( "POST" , "/php/mysql.php" , false ) ;
This PHP file will do all the work. You will have to create it yourself!
It will be something like this:
Code: Select all
<?php
$db = mysqli_connect( '127.0.0.1', 'root', ''); // your parameters!!
if( ! $db ) :
die( mysql_error() ) ;
endif;
if( ! mysqli_select_db($db, 'bk')):
die( mysql_error() );
endif;
$query = mysqli_query( $db, "select * from " ); / your parameters!!
if( !$query ) :
die("error SQL");
endif;
$table = array();
while( $row = mysqli_fetch_array( $query, MYSQLI_NUM ) ):
$table[] = $row;
endwhile;
$string = json_encode( $table );
mysqli_free_result( $query );
mysqli_close($db);
echo $string;
?>
There's nothing you can do that can't be done...