Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IF statement to compare values

Status
Not open for further replies.

BdaMick

Programmer
Sep 11, 2007
5
US
Currently my page uses php and I'm able to output a checkmark image in a table cell if a certain value is found in the dataset as seen below

Code:
<?php echo ($row_rs_test['status'] == "Quote")?"<img src=\"/mdwapp/images/0090_check.gif\" alt=\"Check\" width=\"12\" height=\"12\">":"&nbsp;";  ?>

I'm trying to change the page over to use AJAX with an XML dataset and I'm not sure how to make the same thing happen as above. Can someone assist with this code?
 
what exactly are you trying to convert to AJAX?

If it is just outputting a image in a cell and basing that off of data received, you may want to read up on AJAX. just google it and there are a lot of tutorials

David Kuhn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top