freelanceprogrammers.org Forum Index » PHP
Re: help me ......
Joined: 20 Apr 2005
Posts: 2
Re: help me ......
Is this :
while ($row = mysql_fetch_array($list))
The line generating the warning? If so, and I`m shooting blindly here,
could you var_dump( $list ) just to see if it`s the mysql_result you`re
expecting?
David Ramalho
Original Message:
-----------------
From: Sunit Sinha sunitsinha@...
Date: Wed, 20 Apr 2005 03:59:51 -0700 (PDT)
To: php-objects@yahoogroups.com
Subject: [php-objects] help me ......
<html><body>
<tt>
hi <BR>
<BR>
i am generation the list of employee of a compalny and<BR>
i am using the mysql db. when i call the list page on<BR>
browser a waring messages is generated at the top of<BR>
the page and this waring is reapeated upto the total<BR>
number of employee and below that the list is<BR>
completely fine..<BR>
the message is :<BR>
**************************************************<BR>
Warning: Unable to jump to row 0 on MySQL result index<BR>
412 in /var/www/html/hradmin/app_list.php on line ... <BR>
<BR>
*************************************************<BR>
<BR>
my code and query is:<BR>
<BR>
$list= mysql_query("SELECT emp_code, dept, desig,<BR>
date_format(doj,`%d-%m-%Y`) as doj, name, supervisor,<BR>
hod, level, status, email FROM employee order by<BR>
status desc", $db) or die ("Unable to connect<BR>
database.");<BR>
<BR>
<BR>
while ($row = mysql_fetch_array($list))<BR>
{<BR>
$name = $row[`name`];<BR>
$emp_code_list = $row[`emp_code`];<BR>
$desig = $row[`desig`];<BR>
$doj= $row[`doj`];<BR>
$email= $row[`email`];<BR>
$emp_status=$row[`status`];<BR>
$emp_supervisor=$row[`supervisor`];<BR>
$emp_hod=$row[`hod`];<BR>
$emp_level=$row[`level`];<BR>
$i++;<BR>
<BR>
echo "<tr>";<BR>
echo "<td bgcolor=".$color_code ."><FONT FACE=arial<BR>
SIZE=1> ". $sr . " </font></td>";<BR>
echo "<td bgcolor=".$color_code ."><FONT FACE=arial<BR>
SIZE=1>";<BR>
echo "<a<BR>
href=javascript:userdetails(`$emp_code_list`)>"<BR>
.$name. "</font></td>";<BR>
echo "<td bgcolor=".$color_code ."><FONT FACE=arial<BR>
SIZE=1> ".$emp_code_list. "</font></td>";<BR>
echo "<td bgcolor=".$color_code ."><FONT FACE=arial<BR>
SIZE=1> ". $desig . " </font></td>";<BR>
echo "<td bgcolor=".$color_code ."><FONT FACE=arial<BR>
SIZE=1> ". $doj . " </font></td>";<BR>
echo "<td bgcolor=".$color_code ."><FONT FACE=arial<BR>
SIZE=1>". $sup_emp. "</font></td>";<BR>
echo "<td bgcolor=".$color_code ."><FONT FACE=arial<BR>
SIZE=1>". $hod_name. "</font></td></tr>";<BR>
$sr++;<BR>
<BR>
}<BR>
<BR>
***************************************<BR>
Please help me .....<BR>
<BR>
with thanks<BR>
Sunit<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
__________________________________________________<BR>
Do You Yahoo!?<BR>
Tired of spam? Yahoo! Mail has the best spam protection around <BR>
<a href="http://mail.yahoo.com">http://mail.yahoo.com</a> <BR>
</tt>
<br><br>
<tt>
PHP Data object relational mapping generator - <a
href="http://www.meta-language.net/">http://www.meta-language.net/</a></tt>
<br><br>
<!-- |**|begin egp html banner|**| -->
<br>
<tt><hr width="500">
<b>Yahoo! Groups Links</b><br>
<ul>
<li>To visit your group on the web, go to:<br><a
href="http://groups.yahoo.com/group/php-objects/">http://groups.yahoo.com/gr
oup/php-objects/</a><br>
<li>To unsubscribe from this group, send an email to:<br><a
href="mailto:php-objects-unsubscribe@yahoogroups.com?subject=Unsubscribe">ph
p-objects-unsubscribe@yahoogroups.com</a><br>
<li>Your use of Yahoo! Groups is subject to the <a
href="http://docs.yahoo.com/info/terms/">Yahoo! Terms of Service</a>.
</ul>
</tt>
</br>
<!-- |**|end egp html banner|**| -->
</body></html>
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
Joined: 20 Apr 2005
Posts: 3
Re: help me ......
hi,
Insted of this :-
while ($row = mysql_fetch_array($list))
try this
while ($row = mysql_fetch_array($list,MYSQL_NUM))
hope it while solve your problem....
Bye
Amit.
--- Sunit Sinha <sunitsinha@...> wrote:
> hi
>
> i am generation the list of employee of a compalny
> and
> i am using the mysql db. when i call the list page
> on
> browser a waring messages is generated at the top of
> the page and this waring is reapeated upto the total
> number of employee and below that the list is
> completely fine..
> the message is :
> **************************************************
> Warning: Unable to jump to row 0 on MySQL result
> index
> 412 in /var/www/html/hradmin/app_list.php on line
> ...
>
> *************************************************
>
> my code and query is:
>
> $list= mysql_query("SELECT emp_code, dept, desig,
> date_format(doj,`%d-%m-%Y`) as doj, name,
> supervisor,
> hod, level, status, email FROM employee order by
> status desc", $db) or die ("Unable to connect
> database.");
>
>
> while ($row = mysql_fetch_array($list))
> {
> $name = $row[`name`];
> $emp_code_list = $row[`emp_code`];
> $desig = $row[`desig`];
> $doj= $row[`doj`];
> $email= $row[`email`];
> $emp_status=$row[`status`];
> $emp_supervisor=$row[`supervisor`];
> $emp_hod=$row[`hod`];
> $emp_level=$row[`level`];
> $i++;
>
> echo "<tr>";
> echo "<td bgcolor=".$color_code ."><FONT FACE=arial
> SIZE=1> ". $sr . " </font></td>";
> echo "<td bgcolor=".$color_code ."><FONT FACE=arial
> SIZE=1>";
> echo "<a
> href=javascript:userdetails(`$emp_code_list`)>"
> .$name. "</font></td>";
> echo "<td bgcolor=".$color_code ."><FONT FACE=arial
> SIZE=1> ".$emp_code_list. "</font></td>";
> echo "<td bgcolor=".$color_code ."><FONT FACE=arial
> SIZE=1> ". $desig . " </font></td>";
> echo "<td bgcolor=".$color_code ."><FONT FACE=arial
> SIZE=1> ". $doj . " </font></td>";
> echo "<td bgcolor=".$color_code ."><FONT FACE=arial
> SIZE=1>". $sup_emp. "</font></td>";
> echo "<td bgcolor=".$color_code ."><FONT FACE=arial
> SIZE=1>". $hod_name. "</font></td></tr>";
> $sr++;
>
> }
>
> ***************************************
> Please help me .....
>
> with thanks
> Sunit
>
>
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Joined: 20 Apr 2005
Posts: 12
Re: help me ......
hi,
i have done it..
but the problem is same..
please guide me..
bye
Sunit
--- amit bansal <amit_800@...> wrote:
> hi,
>
>
> Insted of this :-
> while ($row = mysql_fetch_array($list))
>
> try this
> while ($row = mysql_fetch_array($list,MYSQL_NUM))
>
> hope it while solve your problem....
>
> Bye
> Amit.
>
> --- Sunit Sinha <sunitsinha@...> wrote:
> > hi
> >
> > i am generation the list of employee of a compalny
> > and
> > i am using the mysql db. when i call the list page
> > on
> > browser a waring messages is generated at the top
> of
> > the page and this waring is reapeated upto the
> total
> > number of employee and below that the list is
> > completely fine..
> > the message is :
> > **************************************************
> > Warning: Unable to jump to row 0 on MySQL result
> > index
> > 412 in /var/www/html/hradmin/app_list.php on line
> > ...
> >
> > *************************************************
> >
> > my code and query is:
> >
> > $list= mysql_query("SELECT emp_code, dept, desig,
> > date_format(doj,`%d-%m-%Y`) as doj, name,
> > supervisor,
> > hod, level, status, email FROM employee order by
> > status desc", $db) or die ("Unable to connect
> > database.");
> >
> >
> > while ($row = mysql_fetch_array($list))
> > {
> > $name = $row[`name`];
> > $emp_code_list = $row[`emp_code`];
> > $desig = $row[`desig`];
> > $doj= $row[`doj`];
> > $email= $row[`email`];
> > $emp_status=$row[`status`];
> > $emp_supervisor=$row[`supervisor`];
> > $emp_hod=$row[`hod`];
> > $emp_level=$row[`level`];
> > $i++;
> >
> > echo "<tr>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1> ". $sr . " </font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1>";
> > echo "<a
> > href=javascript:userdetails(`$emp_code_list`)>"
> > .$name. "</font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1> ".$emp_code_list. "</font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1> ". $desig . " </font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1> ". $doj . " </font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1>". $sup_emp. "</font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1>". $hod_name. "</font></td></tr>";
> > $sr++;
> >
> > }
> >
> > ***************************************
> > Please help me .....
> >
> > with thanks
> > Sunit
> >
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Joined: 21 Apr 2005
Posts: 4
Re: help me ......
just try to append @ infront of the mysql_fetch_Array() and check.... hope it
will not display u the warning.
The exact reason could not be traced
take care
Sunit Sinha <sunitsinha@...> wrote:
hi,
i have done it..
but the problem is same..
please guide me..
bye
Sunit
--- amit bansal <amit_800@...> wrote:
> hi,
>
>
> Insted of this :-
> while ($row = mysql_fetch_array($list))
>
> try this
> while ($row = mysql_fetch_array($list,MYSQL_NUM))
>
> hope it while solve your problem....
>
> Bye
> Amit.
>
> --- Sunit Sinha <sunitsinha@...> wrote:
> > hi
> >
> > i am generation the list of employee of a compalny
> > and
> > i am using the mysql db. when i call the list page
> > on
> > browser a waring messages is generated at the top
> of
> > the page and this waring is reapeated upto the
> total
> > number of employee and below that the list is
> > completely fine..
> > the message is :
> > **************************************************
> > Warning: Unable to jump to row 0 on MySQL result
> > index
> > 412 in /var/www/html/hradmin/app_list.php on line
> > ...
> >
> > *************************************************
> >
> > my code and query is:
> >
> > $list= mysql_query("SELECT emp_code, dept, desig,
> > date_format(doj,`%d-%m-%Y`) as doj, name,
> > supervisor,
> > hod, level, status, email FROM employee order by
> > status desc", $db) or die ("Unable to connect
> > database.");
> >
> >
> > while ($row = mysql_fetch_array($list))
> > {
> > $name = $row[`name`];
> > $emp_code_list = $row[`emp_code`];
> > $desig = $row[`desig`];
> > $doj= $row[`doj`];
> > $email= $row[`email`];
> > $emp_status=$row[`status`];
> > $emp_supervisor=$row[`supervisor`];
> > $emp_hod=$row[`hod`];
> > $emp_level=$row[`level`];
> > $i++;
> >
> > echo "<tr>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1> ". $sr . " </font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1>";
> > echo "<a
> > href=javascript:userdetails(`$emp_code_list`)>"
> > .$name. "</font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1> ".$emp_code_list. "</font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1> ". $desig . " </font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1> ". $doj . " </font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1>". $sup_emp. "</font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1>". $hod_name. "</font></td></tr>";
> > $sr++;
> >
> > }
> >
> > ***************************************
> > Please help me .....
> >
> > with thanks
> > Sunit
> >
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
PHP Data object relational mapping generator - http://www.meta-language.net/
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/php-objects/
To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
[Non-text portions of this message have been removed]
Joined: 21 Apr 2005
Posts: 9
Re: help me ......
I agreed with that , this will definitly work,
Congtates
On 4/21/05, imran rahi <imranforphp@...> wrote:
>
> just try to append @ infront of the mysql_fetch_Array() and check.... hope
> it will not display u the warning.
> The exact reason could not be traced
> take care
>
> Sunit Sinha <sunitsinha@...> wrote:
> hi,
> i have done it..
> but the problem is same..
>
> please guide me..
>
> bye
> Sunit
>
> --- amit bansal <amit_800@...> wrote:
> > hi,
> >
> >
> > Insted of this :-
> > while ($row = mysql_fetch_array($list))
> >
> > try this
> > while ($row = mysql_fetch_array($list,MYSQL_NUM))
> >
> > hope it while solve your problem....
> >
> > Bye
> > Amit.
> >
> > --- Sunit Sinha <sunitsinha@...> wrote:
> > > hi
> > >
> > > i am generation the list of employee of a compalny
> > > and
> > > i am using the mysql db. when i call the list page
> > > on
> > > browser a waring messages is generated at the top
> > of
> > > the page and this waring is reapeated upto the
> > total
> > > number of employee and below that the list is
> > > completely fine..
> > > the message is :
> > > **************************************************
> > > Warning: Unable to jump to row 0 on MySQL result
> > > index
> > > 412 in /var/www/html/hradmin/app_list.php on line
> > > ...
> > >
> > > *************************************************
> > >
> > > my code and query is:
> > >
> > > $list= mysql_query("SELECT emp_code, dept, desig,
> > > date_format(doj,`%d-%m-%Y`) as doj, name,
> > > supervisor,
> > > hod, level, status, email FROM employee order by
> > > status desc", $db) or die ("Unable to connect
> > > database.");
> > >
> > >
> > > while ($row = mysql_fetch_array($list))
> > > {
> > > $name = $row[`name`];
> > > $emp_code_list = $row[`emp_code`];
> > > $desig = $row[`desig`];
> > > $doj= $row[`doj`];
> > > $email= $row[`email`];
> > > $emp_status=$row[`status`];
> > > $emp_supervisor=$row[`supervisor`];
> > > $emp_hod=$row[`hod`];
> > > $emp_level=$row[`level`];
> > > $i++;
> > >
> > > echo "<tr>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1> ". $sr . " </font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1>";
> > > echo "<a
> > > href=javascript:userdetails(`$emp_code_list`)>"
> > > .$name. "</font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1> ".$emp_code_list. "</font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1> ". $desig . " </font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1> ". $doj . " </font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1>". $sup_emp. "</font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1>". $hod_name. "</font></td></tr>";
> > > $sr++;
> > >
> > > }
> > >
> > > ***************************************
> > > Please help me .....
> > >
> > > with thanks
> > > Sunit
> > >
> > >
> > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam
> > > protection around
> > > http://mail.yahoo.com
> > >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
>
> ---------------------------------
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/php-objects/
>
> To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> [Non-text portions of this message have been removed]
>
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
> ------------------------------
> *Yahoo! Groups Links*
>
> - To visit your group on the web, go to:
> http://groups.yahoo.com/group/php-objects/
> - To unsubscribe from this group, send an email to:
>
php-objects-unsubscribe@yahoogroups.com<php-objects-unsubscribe@yahoogroups.com?
subject=Unsubscribe>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
--
Akhil Bansal
[Non-text portions of this message have been removed]
Joined: 21 Apr 2005
Posts: 3
Re: help me ......
hi ,
use
$row=mysql_fetch_object($result);
$name=$row->name;
santhosam
ssk
blr
--- Sunit Sinha <sunitsinha@...> wrote:
---------------------------------
hi,
i have done it..
but the problem is same..
please guide me..
bye
Sunit
--- amit bansal <amit_800@...> wrote:
> hi,
>
>
> Insted of this :-
> while ($row = mysql_fetch_array($list))
>
> try this
> while ($row = mysql_fetch_array($list,MYSQL_NUM))
>
> hope it while solve your problem....
>
> Bye
> Amit.
>
> --- Sunit Sinha <sunitsinha@...> wrote:
> > hi
> >
> > i am generation the list of employee of a compalny
> > and
> > i am using the mysql db. when i call the list page
> > on
> > browser a waring messages is generated at the top
> of
> > the page and this waring is reapeated upto the
> total
> > number of employee and below that the list is
> > completely fine..
> > the message is :
> > **************************************************
> > Warning: Unable to jump to row 0 on MySQL result
> > index
> > 412 in /var/www/html/hradmin/app_list.php on line
> > ...
> >
> > *************************************************
> >
> > my code and query is:
> >
> > $list= mysql_query("SELECT emp_code, dept, desig,
> > date_format(doj,`%d-%m-%Y`) as doj, name,
> > supervisor,
> > hod, level, status, email FROM employee order by
> > status desc", $db) or die ("Unable to connect
> > database.");
> >
> >
> > while ($row = mysql_fetch_array($list))
> > {
> > $name = $row[`name`];
> > $emp_code_list = $row[`emp_code`];
> > $desig = $row[`desig`];
> > $doj= $row[`doj`];
> > $email= $row[`email`];
> > $emp_status=$row[`status`];
> > $emp_supervisor=$row[`supervisor`];
> > $emp_hod=$row[`hod`];
> > $emp_level=$row[`level`];
> > $i++;
> >
> > echo "<tr>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1> ". $sr . " </font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1>";
> > echo "<a
> > href=javascript:userdetails(`$emp_code_list`)>"
> > .$name. "</font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1> ".$emp_code_list. "</font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1> ". $desig . " </font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1> ". $doj . " </font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1>". $sup_emp. "</font></td>";
> > echo "<td bgcolor=".$color_code ."><FONT
> FACE=arial
> > SIZE=1>". $hod_name. "</font></td></tr>";
> > $sr++;
> >
> > }
> >
> > ***************************************
> > Please help me .....
> >
> > with thanks
> > Sunit
> >
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
PHP Data object relational mapping generator -
http://www.meta-language.net/
---------------------------------
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/php-objects/
To unsubscribe from this group, send an email to:
php-objects-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.
Sasikumar S
MSPL
Bangalore
0 98453 15353
________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony
Joined: 21 Apr 2005
Posts: 9
Re: help me ......
what is the difference b/w $row["name"] and $row->name
On 4/21/05, sasikumar shanmugam <ssk_quanta@...> wrote:
>
> hi ,
>
> use
>
> $row=mysql_fetch_object($result);
> $name=$row->name;
>
> santhosam
> ssk
> blr
>
>
> --- Sunit Sinha <sunitsinha@...> wrote:
> ---------------------------------
> hi,
> i have done it..
> but the problem is same..
>
> please guide me..
>
> bye
> Sunit
>
> --- amit bansal <amit_800@...> wrote:
> > hi,
> >
> >
> > Insted of this :-
> > while ($row = mysql_fetch_array($list))
> >
> > try this
> > while ($row = mysql_fetch_array($list,MYSQL_NUM))
> >
> > hope it while solve your problem....
> >
> > Bye
> > Amit.
> >
> > --- Sunit Sinha <sunitsinha@...> wrote:
> > > hi
> > >
> > > i am generation the list of employee of a compalny
> > > and
> > > i am using the mysql db. when i call the list page
> > > on
> > > browser a waring messages is generated at the top
> > of
> > > the page and this waring is reapeated upto the
> > total
> > > number of employee and below that the list is
> > > completely fine..
> > > the message is :
> > > **************************************************
> > > Warning: Unable to jump to row 0 on MySQL result
> > > index
> > > 412 in /var/www/html/hradmin/app_list.php on line
> > > ...
> > >
> > > *************************************************
> > >
> > > my code and query is:
> > >
> > > $list= mysql_query("SELECT emp_code, dept, desig,
> > > date_format(doj,`%d-%m-%Y`) as doj, name,
> > > supervisor,
> > > hod, level, status, email FROM employee order by
> > > status desc", $db) or die ("Unable to connect
> > > database.");
> > >
> > >
> > > while ($row = mysql_fetch_array($list))
> > > {
> > > $name = $row[`name`];
> > > $emp_code_list = $row[`emp_code`];
> > > $desig = $row[`desig`];
> > > $doj= $row[`doj`];
> > > $email= $row[`email`];
> > > $emp_status=$row[`status`];
> > > $emp_supervisor=$row[`supervisor`];
> > > $emp_hod=$row[`hod`];
> > > $emp_level=$row[`level`];
> > > $i++;
> > >
> > > echo "<tr>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1> ". $sr . " </font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1>";
> > > echo "<a
> > > href=javascript:userdetails(`$emp_code_list`)>"
> > > .$name. "</font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1> ".$emp_code_list. "</font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1> ". $desig . " </font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1> ". $doj . " </font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1>". $sup_emp. "</font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1>". $hod_name. "</font></td></tr>";
> > > $sr++;
> > >
> > > }
> > >
> > > ***************************************
> > > Please help me .....
> > >
> > > with thanks
> > > Sunit
> > >
> > >
> > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam
> > > protection around
> > > http://mail.yahoo.com
> > >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
>
> ---------------------------------
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/php-objects/
>
> To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to the Yahoo!
> Terms of Service.
>
> Sasikumar S
> MSPL
> Bangalore
> 0 98453 15353
>
>
> ________________________________________________________________________
> Yahoo! India Matrimony: Find your life partner online
> Go to: http://yahoo.shaadi.com/india-matrimony
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
> ------------------------------
> *Yahoo! Groups Links*
>
> - To visit your group on the web, go to:
> http://groups.yahoo.com/group/php-objects/
> - To unsubscribe from this group, send an email to:
>
php-objects-unsubscribe@yahoogroups.com<php-objects-unsubscribe@yahoogroups.com?
subject=Unsubscribe>
> - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>.
>
>
--
Akhil Bansal
[Non-text portions of this message have been removed]
Joined: 05 Apr 2005
Posts: 8
Re: help me ......
try this
$result = mysql_query("SELECT * FROM student",$db);
$num_rows = mysql_num_rows($result);
for($count=0;$count<$num_rows; $count++)
{
$row = mysql_fetch_array($result);
extract($row);
echo "<td bgcolor=".$color_code.">"
.$emp_code_list. "</td>";
}
i`m sure this will do the trick just need sql
statement added in..
btw extract function converts
$row[`username`]="ali baba"
to
$username = "ali baba"; in fact all the array in $row
good luck
--- sasikumar shanmugam <ssk_quanta@...>
wrote:
> hi ,
>
> use
>
> $row=mysql_fetch_object($result);
> $name=$row->name;
>
> santhosam
> ssk
> blr
>
>
> --- Sunit Sinha <sunitsinha@...> wrote:
> ---------------------------------
> hi,
> i have done it..
> but the problem is same..
>
> please guide me..
>
> bye
> Sunit
>
> --- amit bansal <amit_800@...> wrote:
> > hi,
> >
> >
> > Insted of this :-
> > while ($row = mysql_fetch_array($list))
> >
> > try this
> > while ($row = mysql_fetch_array($list,MYSQL_NUM))
> >
> > hope it while solve your problem....
> >
> > Bye
> > Amit.
> >
> > --- Sunit Sinha <sunitsinha@...> wrote:
> > > hi
> > >
> > > i am generation the list of employee of a
> compalny
> > > and
> > > i am using the mysql db. when i call the list
> page
> > > on
> > > browser a waring messages is generated at the
> top
> > of
> > > the page and this waring is reapeated upto the
> > total
> > > number of employee and below that the list is
> > > completely fine..
> > > the message is :
> > >
> **************************************************
> > > Warning: Unable to jump to row 0 on MySQL result
> > > index
> > > 412 in /var/www/html/hradmin/app_list.php on
> line
> > > ...
> > >
> > >
> *************************************************
> > >
> > > my code and query is:
> > >
> > > $list= mysql_query("SELECT emp_code, dept,
> desig,
> > > date_format(doj,`%d-%m-%Y`) as doj, name,
> > > supervisor,
> > > hod, level, status, email FROM employee order by
> > > status desc", $db) or die ("Unable to connect
> > > database.");
> > >
> > >
> > > while ($row = mysql_fetch_array($list))
> > > {
> > > $name = $row[`name`];
> > > $emp_code_list = $row[`emp_code`];
> > > $desig = $row[`desig`];
> > > $doj= $row[`doj`];
> > > $email= $row[`email`];
> > > $emp_status=$row[`status`];
> > > $emp_supervisor=$row[`supervisor`];
> > > $emp_hod=$row[`hod`];
> > > $emp_level=$row[`level`];
> > > $i++;
> > >
> > > echo "<tr>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1> ". $sr . " </font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1>";
> > > echo "<a
> > > href=javascript:userdetails(`$emp_code_list`)>"
> > > .$name. "</font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1> ".$emp_code_list. "</font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1> ". $desig . " </font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1> ". $doj . " </font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1>". $sup_emp. "</font></td>";
> > > echo "<td bgcolor=".$color_code ."><FONT
> > FACE=arial
> > > SIZE=1>". $hod_name. "</font></td></tr>";
> > > $sr++;
> > >
> > > }
> > >
> > > ***************************************
> > > Please help me .....
> > >
> > > with thanks
> > > Sunit
> > >
> > >
> > >
> > >
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam
> > > protection around
> > > http://mail.yahoo.com
> > >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> > protection around
> > http://mail.yahoo.com
> >
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
>
> PHP Data object relational mapping generator -
> http://www.meta-language.net/
>
>
>
> ---------------------------------
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/php-objects/
>
> To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@yahoogroups.com
>
> Your use of Yahoo! Groups is subject to the
> Yahoo!
> Terms of Service.
>
> Sasikumar S
> MSPL
> Bangalore
> 0 98453 15353
>
>
>
________________________________________________________________________
> Yahoo! India Matrimony: Find your life partner
> online
> Go to: http://yahoo.shaadi.com/india-matrimony
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







