Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. <?php
  2. $inc_file = "pdf/$MLS_ACCT.pdf";
  3. if (file_exists($inc_file)) {
  4. echo '<a href="pdf/$MLS_ACCT.pdf">Click here for Brochure - Open PDF at 100%</a>';}
  5. else {
  6. echo '<a href="property-search-results.php?MLS_ACCT=<?php echo $MLS_ACCT ;?>" target="_top">Further Details >></a>'; }
  7. ?>
  8.  
  9. $name = "Jeff";
  10.  
  11. // parsing in double quotes
  12. $string = "My name is $name";
  13.  
  14. // you can also use curly braces for better readability
  15. $string = "My name is {$name}";
  16.  
  17. // or you can concatenate
  18. $string = "My name is " . $name;
  19.  
  20. echo '<a href="pdf/' . $MLS_ACCT . '.pdf">Click here for Brochure - Open PDF at 100%</a>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement