# What am i doing wrong here?

**URL:** <https://forum.kirupa.com/t/what-am-i-doing-wrong-here/310366>\
**Category:** Uncategorized\
**Created:** [June 8, 2010, 3:41pm UTC](https://forum.kirupa.com/t/what-am-i-doing-wrong-here/310366 "2010-06-08T15:41:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)\
**Post date:** [June 8, 2010, 3:41pm UTC](https://forum.kirupa.com/t/what-am-i-doing-wrong-here/310366/1 "2010-06-08T15:41:36Z")

</div>

should be simple and the query works in phpmyadmin, what the heck am i screwing up here?

```auto
 

function getBio($bioID){

echo "id:".$bioID;
$q = "SELECT * FROM `phys` WHERE `ID` = 65"; //hardcoded here for testing
$info = mysql_query($q);

echo "firstName ".$info['firstName'];

}

getBio($bioID);

```
