Autor Beitrag
mexx
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Di 13.06.06 13:13 
Hallo,

ich habe ein PHP Problem und hoffe ihr könnt mir helfen.

Details: WAMPP2, Apache und PHP läuft, laut phpinfo()-Befehl ist auch die Interbase Erweiterung geladen. Jedoch erhalte ich Fehlermeldungen, wo ich nicht weiter komme.

Hier mal meine Source:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
<html>
<head>
  <title>PHP-INFO2</title>
</head>
<body>
<?php 

$host = 'localhost:d:/Datenbanken/TESTD3.FDB';
$username='SYSDBA';
$password='masterkey';

$dbh = ibase_connect ( $host, $username, $password ) or die ("error in db connect");
 $stmt="Select * from personal where karten_nummer = 1445";
 $query = ibase_prepare($stmt);
 $rs=ibase_execute($query);
$row = ibase_fetch_row($rs);

echo $row[0];

ibase_free_query($query);
ibase_free_result($rs);

ibase_close($dbh);

 ?>
</body>
</html>





Hier die Fehlermeldung:
Warning: ibase_prepare(): invalid request BLR at offset 91 function CATSTR is not defined module name or entrypoint could not be found in C:\wampp2\htdocs\index.php on line 14

Warning: ibase_execute(): supplied argument is not a valid InterBase query resource in C:\wampp2\htdocs\index.php on line 15

Warning: ibase_fetch_row(): supplied argument is not a valid InterBase result resource in C:\wampp2\htdocs\index.php on line 16

Warning: ibase_free_query(): supplied argument is not a valid InterBase query resource in C:\wampp2\htdocs\index.php on line 21

Warning: ibase_free_result(): supplied argument is not a valid InterBase result resource in C:\wampp2\htdocs\index.php on line 22

Gibt es ein Versionsproblem mit der dll und der Interbase? Gibt es noch andere wege eine Abfrage zu starten, außer die ibase_execute($query)?


Moderiert von user profile iconChristian S.: Delphi- durch Code-Tags ersetzt
r2c2
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 324
Erhaltene Danke: 2

Linux

BeitragVerfasst: Di 13.06.06 17:55 
So n ähnliches Problem hatten wir hier letztens mit der MySQL-Verbindung. PHP is nicht typsicher. Deshalb kann eine Funktion auch mal false zurückliefern, auch, wenns ne ID sein soll..

mfg

Christian

_________________
Kaum macht man's richtig, schon klappts!
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 13.06.06 18:05 
Zitat:
Warning: ibase_prepare(): invalid request BLR at offset 91 function CATSTR is not defined module name or entrypoint could not be found in C:\wampp2\htdocs\index.php on line 14
Diese Fehlermeldung scheint aber vom Interbaseserver zu kommen. Erfindet die Funktion CATSTR nicht. Ist PERSONAL eine Tabelle, ein View oder ne SP?

_________________
Markus Kinzler.
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Mi 14.06.06 06:35 
Ich habe den Fehler gefunden.

Warning: ibase_prepare(): invalid request BLR at offset 91 function CATSTR is not defined module name or entrypoint could not be found in C:\wampp2\htdocs\index.php on line 14

CATSTR ist eine externe UDF, die in meiner lokalen Version nicht vorhanden war. Sobald der Verweis auf eine DB erfolgte, wo die UDF definiert ist, funktionierte alles.

Danke für eure Mühe! :D

_________________
Das Unsympathische an den Computern ist, dass sie nur ja oder nein sagen können, aber nicht vielleicht.
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mi 14.06.06 08:08 
Das habe ich vermutet, deshalb auch meine Frage aob es sich hier um eind SP oder View handelt, bei dem diese Funktion angewendet wird.

_________________
Markus Kinzler.
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Mi 14.06.06 08:23 
Es handelt sich um eine SP, die aber ein Return zurückliefert. Daher auch der select. Viel wichtiger ist jetzt aber noch was anderes. Wie füge ich dem $kommt, wenn es diesen Wert trägt(14.12.2006 12:00) ein ' am Anfang und Ende hinzu?
Also so: '14.12.2006 12:00'

_________________
Das Unsympathische an den Computern ist, dass sie nur ja oder nein sagen können, aber nicht vielleicht.