Primo commit: trasferimento del progetto PPEasy

This commit is contained in:
2024-09-18 10:30:50 +02:00
commit eb475f257e
4233 changed files with 1043848 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php
# FileName="WADYN_MYSQLI_CONN.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_cmctrfdb = "localhost";
$database_cmctrfdb = "cmccopia";
$username_cmctrfdb = "solocla";
$password_cmctrfdb = "!Massarosa2";
$servername = $hostname_cmctrfdb;
$username = $username_cmctrfdb;
$password = $password_cmctrfdb;
$dbname = $database_cmctrfdb;
@session_start();
$cmctrfdb = mysqli_init();
if (defined("MYSQLI_OPT_INT_AND_FLOAT_NATIVE")) $cmctrfdb->options(MYSQLI_OPT_INT_AND_FLOAT_NATIVE, TRUE);
$cmctrfdb->real_connect($hostname_cmctrfdb, $username_cmctrfdb, $password_cmctrfdb, $database_cmctrfdb) or die("Connect Error: " . mysqli_connect_error());
?>
+15
View File
@@ -0,0 +1,15 @@
<?php
# FileName="WADYN_MYSQLI_CONN.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_cmctrfdb = "localhost";
$database_cmctrfdb = "acscuips_cmcdb";
$username_cmctrfdb = "acscuips_cmc";
$password_cmctrfdb = "HcU4gm6zzx=~";
@session_start();
$cmctrfdb = mysqli_init();
if (defined("MYSQLI_OPT_INT_AND_FLOAT_NATIVE")) $cmctrfdb->options(MYSQLI_OPT_INT_AND_FLOAT_NATIVE, TRUE);
$cmctrfdb->real_connect($hostname_cmctrfdb, $username_cmctrfdb, $password_cmctrfdb, $database_cmctrfdb) or die("Connect Error: " . mysqli_connect_error());
?>
+14
View File
@@ -0,0 +1,14 @@
<?php
include('include/headscript.php'); ?>
<?php
$country_id = mysqli_real_escape_string($_POST['idarticletype']);
if($idarticletype!='')
{
$states_result = $conn->query('select * from modelarticle where idarticletype='.$idarticletype.'');
$options = "<option value=''>Select State</option>";
while($row = $states_result->fetch_assoc()) {
$options .= "<option value='".$row['idmodelarticle']."'>".$row['namemodelarticle']."</option>";
}
echo $options;
}?>