Thanks Jeff,
As I mentioned, this is just a sample code with username password db name
all changed. Thanks for your advice coz I never knew the php db archive is
searchable.
Jeffrey-2 wrote:
>
> You should be aware the the PHP-DB archives are openly available on the
> web and searchable. Ass
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
To: php-db@lists.php.net
Subject: Re: [PHP-DB] simple issue
my code:
";
echo "Companyname";
echo "Contactname";
while (odbc_fetch_row($result))
{
$compname=odbc_result($result,"CompanyName");
$conname=odbc_result($result,"ContactName");
echo
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:/
10 matches
Mail list logo