Hi everyone!<br><br>I have created a table and now I want to put a GPS Logfile into this table with a php file. But the php file doesn&#39;t do the inserts.<br><br>Please can someone help me!<br><br><br><span style="font-weight: bold;">
The error message from the php file in firefox:</span><br><br><b>Warning</b>:  pg_query() [<a href="http://localhost/GpsDaten/function.pg-query">function.pg-query</a>]: Query failed: ERROR:  relation &quot;fahrtenbuchtabelle&quot; does not exist in 
<b>C:\ms4w\Apache\htdocs\GpsDaten\GPS_Daten_einlesen.php</b> on line <b>103<br><span style="font-weight: bold;"><br><br></span>Here are the commands in the php file</b>:<br><br>&nbsp;&nbsp;&nbsp; if($z_eintraege==2)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $sql_befehl=&quot;INSERT INTO FahrtenbuchTabelle(FID,Date_Start_Fahrt,Date_Insert,Strecke) VALUES ($z_eintraege,$datum,$datum,GeometryFromText(&#39;LINESTRING($breitengrad1 $laengengrad1,&nbsp;&nbsp;&nbsp; $breitengrad $laengengrad)&#39;,4326))&quot;;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $res=pg_query($connection,$sql_befehl);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $sql_befehl_select=&quot;SELECT max(FID) as fid from FahrtenbuchTabelle&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $fahrtnummer=pg_query($connection,$sql_befehl_select);<br>&nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp; }
<br>&nbsp;&nbsp;&nbsp; if($z_eintraege&gt;2)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $sql_befehl_append=&quot;UPDATE FahrtenbuchTabelle SET Strecke=AddPoint(Strecke,GeomFromText(&#39;POINT($breitengrad $laengengrad)&#39;,4326)) where FID=&#39;$fahrtnummer&#39;&quot;;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $result=pg_query($connection,$sql_befehl_append);<br>&nbsp;&nbsp;&nbsp; }<br><br><span style="font-weight: bold;">And there is my table in postgresql/postgis:</span><br><br>CREATE TABLE &quot;FahrtenbuchTabelle&quot;<br>(<br>&nbsp; &quot;FID&quot; numeric NOT NULL,
<br>&nbsp; &quot;Date_Start_Fahrt&quot; date NOT NULL,<br>&nbsp; &quot;Date_Insert&quot; date NOT NULL,<br>&nbsp; &quot;Strecke&quot; geometry,<br>&nbsp; CONSTRAINT &quot;FahrtID&quot; PRIMARY KEY (&quot;FID&quot;),<br>&nbsp; CONSTRAINT &quot;enforce_dims_Strecke&quot; CHECK (ndims(&quot;Strecke&quot;) = 2),
<br>&nbsp; CONSTRAINT &quot;enforce_geotype_Strecke&quot; CHECK (geometrytype(&quot;Strecke&quot;) = &#39;LINESTRING&#39;::text OR &quot;Strecke&quot; IS NULL),<br>&nbsp; CONSTRAINT &quot;enforce_srid_Strecke&quot; CHECK (srid(&quot;Strecke&quot;) = 4326)
<br>) <br>WITHOUT OIDS;<br>ALTER TABLE &quot;FahrtenbuchTabelle&quot; OWNER TO postgres;<br><br>Already thankful for any ideas.<br>