I have a mysql query that works fine except for one item. It returns empty, giving only a null value when there is in fact data in the db. Here is the query
$sql1 = "SELECT * FROM mdl_university order by '$srtdata'";
$result1 = @($sql1, $conn) or die("Couldn't execute 'Continue addition' query1 ".$sql1);
while ($row = mysql_fetch_array($result1))
{
$university_num =$row['university_num'];
$course_webaddress = $row['course_webaddress'];
echo 'line 46 course_webaddress =', $course_webaddress ;
The last echo comes up empty even though all the other vars in the query work fine.
On the mysql side, if I do the query from mysql admin I get the expected results.(the course_webaddress column will output its contents from a query)
So what can be keeping "$course_webaddress = $row['course_webaddress'];" from working properly?