whughesiii
MIS
I have an SQL statement. When I output the actual statement to the web browser I get this
My actual SQL code looks like this:
I am not getting any results and I tried to use die(mysql_error()) but I am not receiving an error either, can any one help?
Code:
SELECT s.san_volume, s.snapshot_num, s.bu_date, v.index_num, v.volume, v.last_bu FROM san_backup_log as s, san_volumes as v WHERE s.san_volume = v.volume AND v.volume = 'ACCT-FS01-VOL1' AND v.last_bu = s.bu_date
My actual SQL code looks like this:
Code:
$q = mysql_query("SELECT s.san_volume, s.snapshot_num, s.bu_date, v.index_num, v.volume, v.last_bu FROM san_backup_log as s, san_volumes as v WHERE s.san_volume = v.volume AND v.volume = '$complete' AND v.last_bu = s.bu_date";
I am not getting any results and I tried to use die(mysql_error()) but I am not receiving an error either, can any one help?