Jump to content

Simple Query Problem I think


payney

Recommended Posts

Hi guys.

 

I have a pretty simple query, but I cant seem to get an output. It works in phpmyadmin but not on the webpage, personally I think my echo is wrong? I am trying to display d.name (division as an alias).

 

$query1 = "select DISTINCT d.name division from division d, division_teams dt WHERE dt.pk = d.pk AND (dt.team LIKE '%%%Leeds%%%');";

 

while($row = mysql_fetch_assoc($result1)) { 

echo $division;

      }

Link to comment
https://forums.phpfreaks.com/topic/72768-simple-query-problem-i-think/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.