Marco_18 0 Newbie Poster

Hello, I created a function to show data related to a database called skede with fields "name" "surname" "age" in a page called vive.php
This is the code

function mostraskede(){
$ricercaskede = query('SELECT * FROM skede ORDER BY id LIMIT 1 OFFSET 0');
conferma($ricercaskede);
while ($row = fetch_array($ricercaskede)){
    //echo $row['titolo'];
    $skede = <<<STRINGA_SKD
    <!-- Hero -->
   Parte in html ecc.ecc.

I find myself in the need to show in the vive.php page (the code below) only the skede that the value "luca" appears in the "name" field. On another page, "marina" value and so on….

<?php require_once("config.php"); ?>
<?php require_once("header.php"); ?>
<?php mostraskede();  ?>
<?php require_once("footer.php"); ?>  

I don't know how to enter the code.
Can someone help me? Thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.