Re: PHP - INSERT

From: miso kruty (krutohlav@host.sk)
Date: 10. 04. 2002, 19:45 CEST


On Wed, 10 Apr 2002, krtek wrote:

> <?
>     $connection = @mysql_connect("db.host.sk","meno","heslo") or
> die("Couldn't connect.");
>     MySQL_Select_DB("rozhodne");
>     MySQL_Query("INSERT INTO cesta VALUES (3,"radka3","toto je text")");  //
> zde je problem pri vlozeni??????
>     MySQL_Close($connection);
> ?>

Moj navrh je dat v tom MySQL_Query textove retazce do apostrofov (ci ako
sa to vola), napr.:
nie "radka3" ale 'radka3'
To iste s tym druhym textom.

--
krutohlav



This archive was generated by hypermail 2.1.2 : 10. 04. 2002, 19:45 CEST