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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:54:29+00:00 2026-06-12T12:54:29+00:00

Hey guys built an basic php script but when i run it i have

  • 0

Hey guys built an basic php script but when i run it i have a white page can’t find the error can someone else see it? The Table from where i collect Datas in mysql has the name zurodnung and i just want to read the datas out and output them as text.

<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 <?php
echo(<p>test1</p>);
include ("db_login.php");

    $link = mysql_connect($host, $user, $pass) or die ("Keine Verbindung zu der Datenbank moeglich.");
    mysql_select_db($db, $link);

    $sql = "SELECT ID_Zuordnung, HW_Typ, Hostname_alt, zuordnung.Username, Emailadresse, Datum_Ausgabe, Abteilung 
        FROM zuordnung
        WHERE Status_Tausch = 'OK' AND Status_Altgeraet = 'NOK'
        ORDER BY Hostname_alt;";

    $result = mysql_query($sql);

    if (mysql_num_rows ($result) > 0)  
    {
    $Farbe = "#fffffff";

            echo('<td bgcolor="'.$Farbe.'">'.$resultarray['HW_Typ']."</td>");
            echo('<td bgcolor="'.$Farbe.'">'.$resultarray['Hostname_alt']."</td>");
            echo('<td bgcolor="'.$Farbe.'">'.$resultarray['Username']."</td>");
            echo('<td bgcolor="'.$Farbe.'">'.$resultarray['Emailadresse']."</td>");
            echo('<td bgcolor="'.$Farbe.'">'.$resultarray['Abteilung']."</td>");
            echo('<td bgcolor="'.$Farbe.'">'.$resultarray['Datum_Ausgabe']."</td>");
    }
    else {
    echo(<h1>fail</h1>);
    }
    ?> 
 </body>
</html>
  • 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-12T12:54:31+00:00Added an answer on June 12, 2026 at 12:54 pm

    Your echos are failing;

    echo(<p>test1</p>); should be echo('<p>test1</p>');

    and echo(<h1>fail</h1>); should be echo('<h1>fail</h1>');

    FYI: echo doesn’t require brackets, you could do echo '<h1>fail</h1>';

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

Sidebar

Related Questions

hey guys having this really simple problem but cant seem to figure out have
Hey Guys, I'm getting the error above when trying to run an automated build
Hey guys, and thanks for looking. I have built the simple D2D app from
Hey guys working on some form validation on our jsp page. I have alert
Hey guys I have my script here that is supposed to do some stuff
Hey guys I wanted to create a JScrollPane but it won't work... and I
Hey guys I have a object sitting in my tile map for spawn point
Hey guys am having a bit of problems with my jQuery, I have all
Hey guys, take a look at this, maybe you can help me. This code
Hey guys i try to get this query with PDO but not achieved so

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.