Voting

: max(nine, one)?
(Example: nine)

The Note You're Voting On

ramoncin at hotmail dot com
4 years ago
<?php
session_start
();
?>
<?php
$conexion
=mysqli_connect('192.168.2.201','proba','abc123.','senderismo') or die (mysqli_error($conexion));
if (
$conexion) {
if (isset(
$_GET['c'])) {
$datos=mysqli_query($conexion,"SELECT * FROM material");
}
if (isset(
$_GET['m'])) {
$datos=mysqli_query($conexion,"SELECT * FROM material ORDER BY Marca");
}
if (isset(
$_GET['p'])) {
$datos=mysqli_query($conexion,"SELECT * FROM material ORDER BY Prezo");
}
if (isset(
$_GET['e'])) {
if (isset(
$_GET['T']){
$type=$_GET['T']
$datos=mysqli_query($conexion,"SELECT * FROM material where Tipo like '$type$");
}
}
if (
$datos != FALSE) {
while (
$fila=mysqli_fetch_array($datos)) {
$srcImaxe=$fila['Imaxe'].".jpg";
echo
"<div class='produto'><img src='imaxes/$srcImaxe'><br>",$fila['Nome'],"<br>",
$fila['Marca'],"<br>",$fila['Tipo'],"<br>",$fila['Prezo'],"€<br></div>";
}
}
echo
"<form action='ver.php' method='GET'
<input type='submit' name='volta' value='Vovler atrás'<br>
</form>"
;
}
else{
echo
"Mal;"
}
?>

<< Back to user notes page

To Top