Parse error: syntax error, unexpected "mysqli_select_db" (T_STRING) in
Publicado por Nathanael (1 intervención) el 17/10/2020 20:35:56
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
include("con_dbventas.php");
include("variable.php")
mysqli_select_db($conexv,$db) or die("problemas");
$reg = mysqli_query($conexv,"SELECT id FROM ventas WHERE sim = $pi");
if ($re=mysqli_fetch_array($reg))
{
mysqli_query("DELETE FROM sim WHERE SIM = $pi",$conexv);
echo "DATOS ELIMINADOS";
}else {
echo "DATOS no ELIMINADOS";
}
if (isset($_POST['activarsim'])) {
if (strlen($_POST['ingresarsim']) >= 1) {
$ingresarsim = trim($_POST['ingresarsim']);
$numero = trim($_POST['numero']);
$fechareg3 = date("d/m/y");
$consultasventas = "INSERT INTO ventas(sim, numero, fechareg) VALUES ('$ingresarsim','$numero','$fechareg3')";
$resultadosventas = mysqli_query($conexv,$consultasventas);
if ($resultadosventas){
?>
<h3 class="ok"> !SIM AGREGADA! </h3>
<?php
}
}
}
?>
Como pueden ver tengo un problema con el mysqli_select_db($conexv,$db) or die("problemas");
alguien me puede ayudar a identificar el error y resolverlo?
Valora esta pregunta


0