# MYSQL Query String

**URL:** <https://forum.kirupa.com/t/mysql-query-string/231289>\
**Category:** programming\
**Created:** [July 3, 2007, 2:34pm UTC](https://forum.kirupa.com/t/mysql-query-string/231289 "2007-07-03T14:34:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rschoenbach](https://avatars.discourse-cdn.com/v4/letter/r/7cd45c/32.png) [@rschoenbach](https://forum.kirupa.com/u/rschoenbach)\
**Post date:** [July 3, 2007, 2:34pm UTC](https://forum.kirupa.com/t/mysql-query-string/231289/1 "2007-07-03T14:34:47Z")

</div>

Can somebody tell me why this query string has nothing in it?

$query = “SELECT wkusers.uid, wkusers.name, alertuserstogroups.alertgroupuid FROM wkusers LEFT JOIN alertuserstogroups ON wkusers.uid = alertuserstogroups.useruid”;  
$result = mysql\_result($query);

while($row = mysql\_fetch\_array($result)) {  
echo “blah”;  
}

My thoughts were that there was something wrong with the php interpreter and the periods in the query.

Anybody have any thoughts regarding this?

This is a valid query and we have connection to database.
