SORRY GUYS ... I just found the error in line 3.


I just don't get the point what's wrong with THIS:

Parse error: parse error, unexpected T_VARIABLE in d:\wampp13cs\htdocs\aaa\phpfile.php on line 5

The PHP file looks like this:

<?php

include("verbind.php")

$sql = 'DELETE FROM auftr_warten WHERE ID = 1';

if ($res = send_sql($db,$sql))

{
echo "Eintrag erfolgreich geloescht! <p>";

}

?>

Can ANYONE help??

Best regards

2flame

    You left off a semi colon on this line:

    include("verbind.php")
    

    I don't know if that's just a typo on your part or not.

    Otherwise... the error may be in the verbind.php file... the rest looks ok though.

    cya
    -Adam 🙂

      Thanks Adam,

      the fault is just at the end of include("verbind.php")

      there's an ; too less 😃

      THX

      Dennis

        Well, maybe there's something wrong with this statement:

        if ($res = send_sql($db,$sql)) 
        

        it looks correct to me, but that's all I can think of

        Try this instead:

        $res = send_sql($db,$sql);
        
        if($res){
           //do stuff
        

        Otherwise the error must be in the verbind.php file, as the rest of it looks correct.

        good luck
        -Adam 🙂

          Hello Adam,

          thanks a lot for your help.

          But the error is just a missing ";" at the end of
          line 3 -> include('verbind.php')

          Hope you won't break your head anymore 😃

          Best regards,

          Dennis

            Write a Reply...