Jump to content

Need help with some code


craiger9er

Recommended Posts

Hey guys,

 

    I'm really new to PHP and am learning a little each day.  However, I'm stuck on some code I need to modify.  Basically, I need to make it an IF type of scenario.

 

' ' . $item->durations_drop_down('duration[' . $item_details['auction_id'] . ']', $item_details['duration']) . '</td>'.

 

That's the code....and I need to basically do this

 

<?php

if ($item_details['listing_type'] == 'buy_out')

  echo $buynow_duration_drop_down;

else

  echo $duration_drop_down;

?>

 

If you need to see more of the code associated with the top line I can post that too.

 

Thanks for any and all help,

 

Craig

Link to comment
https://forums.phpfreaks.com/topic/204922-need-help-with-some-code/
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.