11.09.2018 Views

Aprender a desarrollar un sitio Web con PHP y MySQL

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

formador INNER JOIN sala ON formador.Id_sala = sala.Id_sala WHERE<br />

becario_formador.Id_becario = ".$registro[’Id’];<br />

if ($resultado_formador =<br />

mysqli_query($<strong>con</strong>nect,$<strong>con</strong>sulta_formador)) {<br />

/* busca la matriz asociativa */<br />

while ($registro_formador =<br />

mysqli_busca_assoc($resultado_formador)) {<br />

$dt_inicio = date_create_from_format(’Y-m-d’,<br />

$registro_formador[’Fecha_inicio’]);<br />

echo $registro_formador[’Nombre’]." - ".$registro_formador[<br />

’Etiqueta’]." - ".$dt_inicio->format(’d/m/Y’)." -<br />

".$registro_formador[’Fecha_fin’]."";<br />

}<br />

}<br />

echo "&nbsp;";<br />

echo "";<br />

echo "";<br />

}<br />

}<br />

/* Cierre de la <strong>con</strong>exión */<br />

mysqli_close($<strong>con</strong>nect);<br />

?><br />

<br />

<br />

<br />

<br />

<br />

Añadir <strong>un</strong> becario Modificar <strong>un</strong> becario<br />

<br />

<br />

La página eliminar_becario.php elimina en la base de datos:<br />

<br />

<br />

<br />

<br />

Ejercicio formación<br />

<br />

<br />

<br />

www.FreeLibros.me

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!