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 7520075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:00:17+00:00 2026-05-30T02:00:17+00:00

I have this script to output everything from table called Articles. If I load

  • 0

I have this script to output everything from table called Articles.

If I load this script there are random semicolons coming at front of my table like this ; ;

This is my code:

    if($_SESSION['rights'] == 2){
    include_once "scripts/mysql123.php";

    //menu
    echo "<a href=\"newarticle.php\">Pridať nový článok</a><br/><br/><br/>";

    //Connect to MySQL Server
    mysql_connect($dbhost, $dbuser, $dbpass);

    //Select Database
    mysql_select_db($dbname);

    //display all users
    echo "<table class=\"tableClients\" style=\"text-align: center;\">";
    echo "<tr>";
        echo "
            <th>Id</th>
            <th>Názov článku</th>
            <th>Vytvorené</th>
            <th>Upraviť</th>
            <th>Vymazať</th>
        \n";
        echo "</tr>\n";
    $qry_result = mysql_query("SELECT * FROM `Articles`") or die(mysql_error());
    while($qry = mysql_fetch_array( $qry_result )){
        echo "<tr>\n";
        echo "
            <td>".$qry[id]."</td>
            <td>".$qry[articlename]."</td>
            <td>".date("d.m.Y H:m:i",$qry[created])."</td>
            <td><a href=\"editarticle.php\"><img src=\"img/tools.png\" width=\"30\" /></a></td>;
            <td><a href=\"deletearticle.php\"><img src=\"img/delete.png\" width=\"30\" /></a></td>;
        \n";
        echo "</tr>\n"; 
    }

    echo "</table>\n";


    //Close connection
    mysql_close(mysql_connect($dbhost, $dbuser, $dbpass));
}
else{
    echo "Musíte mať administrátorské práva.";  
}
  • 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-05-30T02:00:18+00:00Added an answer on May 30, 2026 at 2:00 am

    You are outputting them yourself as part of the long string literal, at the ends of these lines:

    <td><a href=\"editarticle.php\"><img src=\"img/tools.png\" width=\"30\" /></a></td>;
    <td><a href=\"deletearticle.php\"><img src=\"img/delete.png\" width=\"30\" /></a></td>;
    

    Just remove the semicolons there.

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

Sidebar

Related Questions

I have this warning every time I run my CGI-script (output is rendered by
I have this script: select name,create_date,modify_date from sys.procedures order by modify_date desc I can
I have a part of my script that does this: Removes everything in directory
I have this simple php script <?php echo '<pre>'; // Outputs all the result
I have this script which basically toggles a bgColor class on and off so
i have this script $content = string if(!isset($_GET['page'])){ $page = 1; } else{ $page
I have this script to generate an XML file for an RSS feed. Works
I have this script and when i try to run it, it just says
I have this script at the moment, which changes an image when a thumbnail
I have this script loaded on a page: (function() { window.alert('bookmarklet started'); function AjaxSuccess(data,

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.