Announcement

Collapse
No announcement yet.

[bug] very bad crash on php database access

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [bug] very bad crash on php database access

    using this code:

    PHP Code:
    $db="C:\ActinicCatalog.mdb";
    $conn = new COM('ADODB.Connection');
    $conn->Open("DRIVER={Driver do Microsoft Access (*.mdb)}; DBQ=$db");
    $sql "SELECT TOP 5 * FROM product";
    $res $conn->Execute($sql);
    while (!
    $res->EOF)
    {
    $lastupdate $res->Fields['Last update']->Value;
    $Status $res->Fields['Status']->Value;
    $ProductReference $res->Fields['Product Reference']->Value;
    $shortdescription $res->Fields['Short description']->Value;
    echo 
    $shortdescription."<br>";

    actinic crashes and burns.

    and you need to open the database to extract the code manually, becasue it wont open after this.

    i understand that its a database access, but this crash should never happen. there should be a polite error in the template preview.

    #2
    Originally posted by gabrielcrowe
    there should be a polite error in the template preview.
    Something like, get your hand out of my knickers please?

    Comment


      #3
      lol.

      like:
      Fatal knickers error: Call to a member fun on a non-flirty object in /world/town/cinema/backrow/girl/knickers.php on line 140

      Comment

      Working...
      X