Reply to ODBC Connection

Your name:

Reply:


Posted by adimsubedi on 12/28/06 08:10

Hi,

I tried to make an ODBC connection through PHP Page but every time the
error is genereted. The data from the page is stored in My sql database
but i couldn't get that using DSN connection in my .mdb file. I am
using this string to get the database in my .mdb file. If there is any
error i want that to be corrected.

<?

$email=$_POST['newsletter'];
$cn=odbc_connect("adim","","")or die("Counld not connect to server");
$sql="insert into test(email) values('$email')";
$rs=odbc_exec($cn,$sql) or die("Could not execute the s query");
if($rs==true)
{
print("Record Added Sucessfully");
}
else
{
print("Error on Page");
}

?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация