Jump to content

sandbudd

Members
  • Posts

    514
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sandbudd's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. just had to swap them around this works and thanks again for the help <?php if(empty($row_Recordset1['fb'])){ //empty() returned true : so there is nothing echo 'FB'; }else{ //empty() returned false so it is NOT true that there is nothing //so we can print it out: echo '<a href="javascript://" " title="' . $row_Recordset1['high_school'] . ' Football Schedule" onClick="popupfunction(\'/highschool/schedules/' . $row_Recordset1['fb'] . '\');" class="style3" >FB</a>'; }
  2. will thought I had it but now the popup function does not work argh... <?php if(empty($row_Recordset1['fb'])){ //empty() returned true : so there is nothing echo 'FB'; }else{ //empty() returned false so it is NOT true that there is nothing //so we can print it out: echo '<a href="javascript://" onClick="popupfunction(\'/highschool/schedules/' . $row_Recordset1['fb'] . '\'" title="' . $row_Recordset1['high_school'] . ' Football Schedule");" class="style3" >FB</a>'; } ?>
  3. Never mind I got it...long day <?php if(empty($row_Recordset1['fb'])){ //empty() returned true : so there is nothing echo 'FB'; }else{ //empty() returned false so it is NOT true that there is nothing //so we can print it out: echo '<a href="javascript://" onClick="popupfunction(\'/highschool/schedules/' . $row_Recordset1['fb'] . '\'" title="' . $row_Recordset1['high_school'] . 'whats up");" class="style3" >FB</a>'; } ?>
  4. Okay this works and displays correctly the next question is I want to add onto the title statement with some copy example $row_Recordset1['high_school'] then add something else.... Here is the code that works so far <?php if(empty($row_Recordset1['fb'])){ //empty() returned true : so there is nothing echo 'FB'; }else{ //empty() returned false so it is NOT true that there is nothing //so we can print it out: echo '<a href="javascript://" onClick="popupfunction(\'/highschool/schedules/' . $row_Recordset1['fb'] . '\'" title="' . $row_Recordset1['high_school'] . '");" class="style3" >FB</a>'; } ?>
  5. the $something is pulling from the database it would actually be $high_school what you suggested display $something
  6. Hey guys I am trying to add title tags to a link... something like title="$something then more information"; but can't get it to work. Here is the working code without the title attribute. Any help would be great <?php if(empty($row_Recordset1['fb'])){ //empty() returned true : so there is nothing echo 'FB'; }else{ //empty() returned false so it is NOT true that there is nothing //so we can print it out: echo '<a href="javascript://" onClick="popupfunction(\'/highschool/schedules/' . $row_Recordset1['fb'] . '\');" class="style3">FB</a>'; } ?>
  7. I tried that but it didn't work, tried again and it did...thanks for the help must of missed typed something
  8. any help guys I have tried several combinations and can't it to work.
  9. Tried this with no luck <?php $d = file_get_contents("http://restaurantsanddiners.com/includes/leftcopy.php"); echo $d = str_replace("%STATEINSERT%", $stateinsert, $d); echo $d .= str_replace("%CITYINSERT%", $cityinsert, $d); ?>
  10. Hey everyone thanks for the help but I need to know how to continue the echo statement... this is what I tried but does not work. <?php $cityinsert = "Auburn"; $stateinsert = "Alabama"; $countyinsert = "Jefferson"; $table = "auburnAL"; ?> <? $d = file_get_contents("http://mysite/includes/leftcopy.php"); echo $d = str_replace("%STATEINSERT%", $stateinsert, $d); echo $d = str_replace("%CITYINSERT%", $cityinsert, $d); ?>
  11. btherl that worked perfect if you have time could you explain to me why that worked and what exactly I did so I know in the future? And thank you so much for you help!
  12. should mention that the it is pulling from another website
  13. What I am trying to do is pull the content of another page which works fine and then do echo statements. It does display the content of the page but not the echo statements. outside page lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum <?php echo $stateinsert ?> lorem ipsum lorem ipsum lorem ipsum lorem ipsum lorem ipsum <?php echo $cityinsert ?> <?php echo $stateinsert ?> lorem ipsum lorem ipsum lorem ipsum lorem ipsum <?php echo $countyinsert ?> Lorum Ipsom Lorum Ipsom Lorum Ipsom </p> <?php $cityinsert = "Auburn"; $stateinsert = "Alabama"; $countyinsert = "Jefferson"; $table = "auburnAL"; ?> <?php $d = file_get_contents("http://mysite.com/includes/leftcopy.php"); echo ($d); ?> It displays the lorem ipsum but won't display the echo statements.
  14. Andy-H it pulls the information of the db row and displays it in a form...then it can be changed including the image and updated...
×
×
  • 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.