Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9269437
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:07:16+00:00 2026-06-18T15:07:16+00:00

Here is my code, works fine and prints out everything I want it to.

  • 0

Here is my code, works fine and prints out everything I want it to. But on the end of each cell I would like a form that makes a button which will allow the user to configure the item that the row in the table describes. I want to know how I can escape out of php to use html again, I’ve tried double quotes but this does not work, I was wondering if anyone could explain to me how to do this.

<?php
    $data = mysql_query("SELECT * FROM basestation WHERE email_address ='$email'") 
     or die(mysql_error()); 
     Print "<table border = 1>"; 
     while( $info = mysql_fetch_array( $data ) ) { 
       Print "<tr>"; 
       Print "<th>Name:</th> <td>".$info['base_station_id'] . "</td>";
       Print "</tr>"; 
       Print "<tr>";  
       Print "<th>Serial Number:</th> <td>".$info['serial_no'] . "</td> "; 
       Print "</tr>"; 
     } 
     Print "</table>";
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:07:18+00:00Added an answer on June 18, 2026 at 3:07 pm

    PHP code will only being executed between the opening <?php and the closing ?> php tags. However you are free to use multiple php sections per file.

    So, you can just close the PHP section using ?> . Then after writing HTML content you can open <?php again.

    Here comes a little example. It creates a couple of <a> achors from an imaginal array $links:

    <?php
    
    foreach($links as $link) { ?>
        <a href="<?php echo $link['href']; ?>"><?php echo $link['title'];?></a>
    <?php }
    

    Note that this mostly leads to unreadable code. But it is possible and can be used.

    Also not that there is short syntax available for shorter echo syntax. But you’ll have to make sure that it is enabled in your php configuration. Using the shorter syntax, may example from above could look like this:

    foreach($links as $link) { ?>
        <a href="<?=$link['href']?>"><?=$link['title'];?></a>
    <? }
    

    You’ll find a good documentation on the PHP website

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My code here works fine to get the content length, and tells me how
I have my code here, it works fine from my home, where my user
I have some code here which works perfectly in firefox but not in chrome
I've got some code here that works great on IPv4 machines, but on our
Site here . Why is it that the code works for $('#club').change(function(event) but not
I want to create a dynamic Expression<Func<T,Y>> . Here is the code which works
ok, this code works just fine in Chrome. But, for some reason it does
here is my old code which works: $('.logo').hover(function(){ $(this).addClass('animated swing')}, function(){$(this).removeClass('animated swing') }); here
Here is a code excerpt from AspComet project that works with Autofac. public MessageBus(IClientRepository
Here is the code in a function I'm trying to revise. This example works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.