# Mysqli prepare select query help!

**URL:** <https://forum.kirupa.com/t/mysqli-prepare-select-query-help/248345>\
**Category:** Uncategorized\
**Created:** [January 7, 2008, 10:55am UTC](https://forum.kirupa.com/t/mysqli-prepare-select-query-help/248345 "2008-01-07T10:55:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peeki](https://avatars.discourse-cdn.com/v4/letter/p/7cd45c/32.png) [@Peeki](https://forum.kirupa.com/u/Peeki)\
**Post date:** [January 7, 2008, 10:55am UTC](https://forum.kirupa.com/t/mysqli-prepare-select-query-help/248345/1 "2008-01-07T10:55:17Z")

</div>

Ok, im quite new to this prepared statement thing… i have this so far

```php
    if ($objstmt = $objConnection->prepare("SELECT * FROM authUsers WHERE fldUsername= ? AND fldPassword= ?")) { 
    $objstmt->bind_param("ss", $this->strUsername,$this->strPassword);
    $objstmt->execute();
    $objstmt->bind_result($col1,$col2,$col3,$col4,$col5);
      while ($objstmt->fetch()) {
           echo($col1.$col2.$col3.$col4.$col5);
       }

```

but it echo’s nothing, though i do get no errors… im totally puzzled…:flower:  
but obivously im doing something wrong… and the username and password is correct and inside the database

Kirupa-doo-too-you-too
