hello i m new to php
i m working on project that has interface with simple html and php i m
thinking to use
i got some problem with the connecting to DB here is the code for
connecting db
$db = "Snmp_Dba";
// $connection_id = odbc_connect_cu stom($db);
$db_connection = odbc_connect("D RIVER={Microsof t Access Driver
(*.mdb)}; DBQ=$db", "ADODB.Connecti on", "", "SQL_CUR_USE_OD BC");
// $query = "SELECT * FROM System_Master";
//$result_id = odbc_exec($conn ection_id,$quer y);
$result = odbc_tables($db _connection);
while (odbc_fetch_row ($result)) {
if(odbc_result( $result,"TABLE_ TYPE")=="TABLE" ) {
echo "<br />" . odbc_result($re sult,"TABLE_NAM E");
?>
by doing this i got error in ie as follows
Parse error: parse error in c:\program files\easyphp1-8\www\search.ph p
on line 25
any body help me to slove this problem
Thanks
Vijay 3 1499
BigZero wrote:
hello i m new to php
i m working on project that has interface with simple html and php i m
thinking to use
i got some problem with the connecting to DB here is the code for
connecting db
$db = "Snmp_Dba";
// $connection_id = odbc_connect_cu stom($db);
$db_connection = odbc_connect("D RIVER={Microsof t Access Driver
(*.mdb)}; DBQ=$db", "ADODB.Connecti on", "", "SQL_CUR_USE_OD BC");
// $query = "SELECT * FROM System_Master";
//$result_id = odbc_exec($conn ection_id,$quer y);
$result = odbc_tables($db _connection);
while (odbc_fetch_row ($result)) {
if(odbc_result( $result,"TABLE_ TYPE")=="TABLE" ) {
echo "<br />" . odbc_result($re sult,"TABLE_NAM E");
?>
by doing this i got error in ie as follows
Parse error: parse error in c:\program files\easyphp1-8\www\search.ph p
on line 25
any body help me to slove this problem
Thanks
Vijay
Which is line 25?
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== ===
On Apr 26, 7:05*am, BigZero <vijaymajagaon. ..@gmail.comwro te:
hello i m new to php
i m working on project that has interface with simple html and php i m
thinking to use
i got some problem with the connecting to DB here is the code for
connecting db
$db = "Snmp_Dba";
* // *$connection_id = odbc_connect_cu stom($db);
$db_connection = odbc_connect("D RIVER={Microsof t Access Driver
(*.mdb)}; DBQ=$db", "ADODB.Connecti on", "", "SQL_CUR_USE_OD BC");
* *// $query * * * * = "SELECT * FROM System_Master";
* * //$result_id * * = odbc_exec($conn ection_id,$quer y);
$result = odbc_tables($db _connection);
while (odbc_fetch_row ($result)) {
* * if(odbc_result( $result,"TABLE_ TYPE")=="TABLE" ) {
* * * * echo "<br />" . odbc_result($re sult,"TABLE_NAM E");
?>
by doing this i got error in ie as follows
Parse error: parse error in c:\program files\easyphp1-8\www\search.ph p
on line 25
any body help me to slove this problem
Thanks
Vijay
I think this
$db_connection = odbc_connect("D RIVER={Microsof t Access Driver
(*.mdb)}; DBQ=$db", "ADODB.Connecti on", "", "SQL_CUR_USE_OD BC");
needs to be this
$db_connection = odbc_connect("D RIVER={Microsof t Access Driver
(*.mdb)}; DBQ=" . $db, "ADODB.Connecti on", "", "SQL_CUR_USE_OD BC");
Thanks
i got solution for that,
i chabged UserDsn to SystemDSN setting in control panel
and all did change in code is
$con = odbc_connect('M SAccessDriver', '','');
any way thanks
Regards
Vijay This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Google Mike |
last post by:
After a lot of thought and research, and playing with FreeTDS and
InlineTDS, as well as various ODBC connections, I have determined that
the fastest and cheapest way to get up and going with PHP on Linux,
connecting to MS SQL Server, unless it was already pre-installed by
your Linux installation, is to build your own multithreaded TCP socket
server on Windows and connect to it through the socket API in PHP on
Linux (if you have installed...
|
by: bigoxygen |
last post by:
Hi.
I am experiencing problems connecting to MSSQL.
I'm not sure where to begin looking for the problem.
I don't know if the problem is originating with PHP or MSSQL
What should the host name be? When I mouse over MSSQL manager it says
"\\S-CIS-0042"
$db_host='local'; //IP/host of the database server
|
by: TP |
last post by:
Hi,
This is probably my 7th post of the day. not spamming, just want to
get the questions out, so that I can find the answers and post them
back or some good soul can help me out.
Right now I am using DB2 connect version 7.2 to connect to db2 version
7.1.1 on os390/zos. Could I use a third party driver to do this? What
would you recommend and is connecting to db2 on the mainframe a lot
different than connecting to db2 on the pc?
|
by: Ann Marinas |
last post by:
Hi all,
I would like to ask for some help regarding separating the asp.net
webserver and the sql server.
I have created an asp.net application for a certain company. Initially,
we installed both the iis and sql server in a single machine. Not too
long ago, the machine had some hardware problems, and management has
decided to purchase new servers, for both asp.net and sql server.
|
by: peshekeedweller |
last post by:
Using asp.net 1.1. vb.net 2003.
I am trying to connect to a remote sql server 2000 on a virtual machine
running windows 2000 server. I can connect through the server explorer in
visual studio, but cannot connect through code. I have done it before and
can not do it now; I don't know what changed. (I also cannot connect to
local Access database through code though I can from server explorer.)
The code is:
conn = New SqlConnection("data...
| |
by: cj.snead |
last post by:
Hello,
I am having trouble connecting to a remote named instance of SQL Server
via Pocket PC. I have had absolutely no luck connecting with VS 2005
(even to a default instance), so I wen't back to VS .NET 2003 (I had
success doing this a while back).
I am trying to connect to a named instance of SQL. This is where I
think my problem is. My app errors out at the Connection.Open();
command.
Here is my connection string:
|
by: =?Utf-8?B?R2lkaQ==?= |
last post by:
Hi,
I've my win32 application which connecting to my sql database.
till now i used MSDE as my database and now i want to upgrade to sql express
2005. after the upgrade i tried to connect to the database and couldn't. i
keep getting an error which saying that database doesn't exists or access is
denied.
is there something diffrent between connecting to MSDE and connecting to sql
express 2005 ? here with my connection string.
|
by: mairhtin o'feannag |
last post by:
Hello,
I'm having problems connecting to my new v9 db box. The pertinent
information is below:
DB2_db2inst1 60000/tcp
DB2_db2inst1_1 60001/tcp
DB2_db2inst1_2 60002/tcp
DB2_db2inst1_END 60003/tcp
|
by: asafok |
last post by:
hi ,
for some reason every time i try connecting to my northwind sql server from VS2005 i get an Error massage.
first it was the remote connection that didn't allow me to connect and after that i got a different error massage concerning some Error log file ,i think it was northwind_log.
to calculation , i need instruction on how to connect to northwind from VS2005 in the best and easy way.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |