Re: [PHP-DB] simple issue

2006-11-21 Thread Jeffrey
You should be aware the the PHP-DB archives are openly available on the web and searchable. Assuming you have listed your actual username, password, etc, you should immediately go to your web site and change your password. If possible change also your username and database name. Do it now. It

Re: [PHP-DB] simple issue

2006-11-21 Thread Chris
John Comerford wrote: I'm pretty new to this stuff myself but try this: while ($row = $result->fetch_array()) { $compname=$row["CompanyName"]; $conname=$row["ContactName"]; echo "$compname"; echo "$conname"; } $result from mysql_query doesn't return an object, so that won't work - if he wa

Re: [PHP-DB] simple issue

2006-11-21 Thread Chris
Chris Carter wrote: my code: "; echo "Companyname"; echo "Contactname"; while (odbc_fetch_row($result)) { $compname=odbc_result($result,"CompanyName"); $conname=odbc_result($result,"ContactName"); echo "$compname"; echo "$conname"; } Connecting using mysql_connect and then using od

Re: [PHP-DB] simple issue

2006-11-21 Thread John Comerford
I'm pretty new to this stuff myself but try this: while ($row = $result->fetch_array()) { $compname=$row["CompanyName"]; $conname=$row["ContactName"]; echo "$compname"; echo "$conname"; } Chris Carter wrote: my code: "; echo "Companyname"; echo "Contactname"; while (odbc_fetch_row($r

RE: [PHP-DB] simple issue

2006-11-21 Thread Ankur Dave
Just chk your phpinfo() is odbc supprt is ebable in that. ?? If not need to enable odbc settings in that. -=-=-=-=-=-=-=-=-=- @nkur [EMAIL PROTECTED] || http://ullu.wordpress.com -Original Message- From: Chris Carter [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 22, 2006 10:57 AM

Re: [PHP-DB] simple issue

2006-11-21 Thread Chris Carter
my code: "; echo "Companyname"; echo "Contactname"; while (odbc_fetch_row($result)) { $compname=odbc_result($result,"CompanyName"); $conname=odbc_result($result,"ContactName"); echo "$compname"; echo "$conname"; } odbc_close($conn); echo ""; ?> My error: Fatal error: Call to undef

Re: [PHP-DB] simple issue

2006-11-21 Thread John Comerford
You'll have to supply more information a) code sample b) error message Chris Carter wrote: Hi, I am new to PHP, just trying a peace of code to access mySQL database to fetch and show result on web page. But getting errors. Can you help me with this code please. Or if you have a very basic co

Re: [PHP-DB] simple issue

2006-11-21 Thread Chris
Chris Carter wrote: Hi, I am new to PHP, just trying a peace of code to access mySQL database to fetch and show result on web page. But getting errors. Can you help me with this code please. Or if you have a very basic code where in I can do some insertion in the database. There are hundreds o

[PHP-DB] simple issue

2006-11-21 Thread Chris Carter
Hi, I am new to PHP, just trying a peace of code to access mySQL database to fetch and show result on web page. But getting errors. Can you help me with this code please. Or if you have a very basic code where in I can do some insertion in the database. -- View this message in context: http:/