parsing html in pgsql using php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Subject ... how to?

here is an example:

<?php


$tmp = "

<table width='175' cellSpacing='0' cellPadding='0' border='0' align='right'><tr>
 <td align='center' vAlign='middle' style=\"border: 1px solid black; background-color: #f0f0f0;\">
  Sample text in table.
 </td>
</tr></table>

";

pg_connect("host=localhost dbname=daatabase user=web_user password=password");

pg_query("insert into site_common values ('01','00','".$tmp."')");


?>


Here is an error:


Warning: pg_query() query failed: ERROR: parser: parse error at or near "175" in /w/devel/test/dbinsert.php on line 80


Any ideas?


/ Clio



[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux