This is probably one of my weaker points and any directions or
starting off point would be greatly appreciated.
Below is the statement i have now to call up a search and basically
call up images:
<?php
$query = mysql_query("SE LECT DISTINCT * FROM itltest WHERE
city='$city2' AND state='$state2' AND directorytile<> 'NULL' ORDER BY
company LIMIT 10") or die (mysql_error()) ;
while ($row = mysql_fetch_ass oc($query)) {
echo('<a href="wpa.php?j obnum=' . $row['jobnum'] . '&custID=' .
$row['custID'] . '&wpastate=' . $row['wpastate'] . '&wpacity=' .
$row['wpacity'] . '"><img src="' . $row['directorytile'] .
'"></a><br><br>');
}
?>
What i'd like to do is expand it to if one field in mysql is filled
out then the href is that field instead of going to the wpa.php page.
Hope that makes sense. In a nutshell there will be the ability to fill
out a unique url. IF that specific url is filled out then the image's
href needs to go to that url. Thanks again for any direction. - Mikey
p
starting off point would be greatly appreciated.
Below is the statement i have now to call up a search and basically
call up images:
<?php
$query = mysql_query("SE LECT DISTINCT * FROM itltest WHERE
city='$city2' AND state='$state2' AND directorytile<> 'NULL' ORDER BY
company LIMIT 10") or die (mysql_error()) ;
while ($row = mysql_fetch_ass oc($query)) {
echo('<a href="wpa.php?j obnum=' . $row['jobnum'] . '&custID=' .
$row['custID'] . '&wpastate=' . $row['wpastate'] . '&wpacity=' .
$row['wpacity'] . '"><img src="' . $row['directorytile'] .
'"></a><br><br>');
}
?>
What i'd like to do is expand it to if one field in mysql is filled
out then the href is that field instead of going to the wpa.php page.
Hope that makes sense. In a nutshell there will be the ability to fill
out a unique url. IF that specific url is filled out then the image's
href needs to go to that url. Thanks again for any direction. - Mikey
p
Comment