Re: HMGSCRIPT R42
Posted: Tue Feb 19, 2019 10:09 am
Jair,
Cannot test while missing themes/desktop.css and lib/hmgscript.js
Serge
Cannot test while missing themes/desktop.css and lib/hmgscript.js
Serge
Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System
http://www.hmgforum.com/
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
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
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;
?>