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
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
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
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
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
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
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
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
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:/