kostenloser Webspace werbefrei: lima-city


why do I run this paragraph of unable code Write Data enter a data base?

lima-cityForumProgrammiersprachenPHP, MySQL & .htaccess

  1. Autor dieses Themas

    hpessmsncom

    hpessmsncom hat kostenlosen Webspace.

    <html>
    <body>

    <?
    if ($UserName)
    {
    mysql_connect("localhost","root","xxxx") or die (" Problem connecting to DataBase");
    $query = "insert into tbl values ('$idx','$UserName','$LastName','$FreeText')";
    $result = mysql_db_query("example", $query);

    echo "Data inserted. new table:<br><p></p>";
    $query = "SELECT * FROM tbl";
    $result = mysql_db_query("example", $query);

    if ($result)
    {
    echo "<table width=90% align=center border=1><tr>
    <td align=center bgcolor=#00FFFF>idx</td>
    <td align=center bgcolor=#00FFFF>User Name</td>
    <td align=center bgcolor=#00FFFF>Last Name</td>
    <td align=center bgcolor=#00FFFF>Free Text</td>
    </tr>";

    while ($r = mysql_fetch_array($result))
    {
    $idx = $r["idx"];
    $user = $r["UserName"];
    $last = $r["LastName"];
    $free = $r["FreeText"];

    echo "<tr>
    <td>$idx</td>
    <td>$user</td>
    <td>$last</td>
    <td>$free</td>
    </tr>";

    } // while circulation be over
    echo "</table>";
    }
    else
    {
    echo "No data.";
    } // if Be over($result)
    }
    else
    {
    echo "No UserName Entered. Please go back and reenter UserName";
    } // if Be over($UserName)

    echo "<p></p>";

    include ('links.x');

    ?>

    </body>
    </html>
  2. Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!

    lima-city: Gratis werbefreier Webspace für deine eigene Homepage

  3. Pleas make your question more detailed. Otherwhise no one qould be able to answer it...
    E.g.
    - The error message
    - in what part of the script does it occure
    etc.
  4. I think, he quested, why he can't get datas out of his Database:biggrin:
    but I hate MySQL and so, I can't answere your question

    (sorry for my bad english, i would get a perfect alibi, but i can't think so much, that it sounds good^^):blah:

    Beitrag geaendert: 27.2.2007 15:51:21 von schnuff
  5. b*****m

    what do you want? we cann't help you without any question

    :blah::blah::blah::blah:
  6. Diskutiere mit und stelle Fragen: Jetzt kostenlos anmelden!

    lima-city: Gratis werbefreier Webspace für deine eigene Homepage

Dir gefällt dieses Thema?

Über lima-city

Login zum Webhosting ohne Werbung!