Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Ajax loop error
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


ARIJEET
loop error
0 Answer(s)      4 years and 7 months ago
Posted in : Ajax


Expert:ARIJEET
sory....dude....it's not my perfect solution...

i give the code...just like...


<?php
include("../db_connect/connect.php");
$sql7="select * from `user_details` where `session_id`!=''";
$r7=mysql_query($sql7);
while($row7=mysql_fetch_array($r7))
{
?>
<tr>
<td width="22%" rowspan="3"><img src="<?php print $row7['photo'];?>" width="80" height="66" /></td>
<td width="21%"><?php print $row7['full_name'];?></td>
<td width="36%" rowspan="3" align="center">&nbsp;</td>
<td width="21%">&nbsp;</td>
</tr>
<tr>
<td><?php print $row7['sex'];?>,<?php print $row7['city'];?></td>
<td>&nbsp;</td>
</tr>
<tr>
<td><?php print $row7['country'];?></td>
<td>&nbsp;</td>
</tr>
<?php
}
?>
<?php
$sql8="select * from `user_details` where `session_id`!=''";
$r8=mysql_query($sql8);
$c8=mysql_num_rows($r8);
if($c8==0)
echo "NO ON LINE FRIENDS";
?>



here the result is fetching form the table....ordered....

1
2
3
4
5
6
.
.
.
.
infinity...



but i needs the order....


1 2 3 4
5 6 7 8
9 . . .
. infinity...

it's fetch from database which will show,
just like orkut or facebook's friend-list...
please give me solution...






Answers
Hi Friend,

Please visit the following link:

http://www.roseindia.net/sql/mysql-example/pagination.shtml

Hope that it will be helpful for you.
Thanks



but it's not my prfect solution.....
i want the perfect <TR><TD> sequecce...
means
from database...
the 1st member will show in 1st <TD> OF 1st <TR>...2nd member will show in 2nd <TD> in 1st <TR>.....3rd member will show in 1st<TD> OF 2nd <TR>...4th member will show in 2nd<TD> OF 2nd <TR>....

means...<TR> will be in loop..or number of <TR> will be infinity...and the number of <TD> will be two or three, as i mention..


after giving my code the out put shows....


<TR>
<TD>1</TD>
</TR>
<TR>
<TD>2</TD>
</TR>
<TR>
<TD>3</TD>
</TR>
<TR>
<TD>4</TD>
</TR>
<TR>
<TD>5</TD>
</TR>
.
.
.
.
.
.
.
infinity...



but i want the sequence....

<TR>
<TD>1</TD><TD>2</TD><TD>3</TD>
<TD>4</TD><TD>5</TD><TD>6</TD>
<TD>7</TD><TD>8</TD><TD>9</TD>
<TD>10</TD><TD>11</TD><TD>12</TD>
.
.
.
.
.
.
.
.
.
infinity....


please give me a solution......i know the pagination...but i confused the <TR><TD> loop....

Advertisement
View Answers

Related Tutorials/Questions & Answers:
Javascript Loop Error - WebSevices
(); Error: Only if loop will executed, Does not comes to else if part. So tell...Javascript Loop Error   var
Javascript Loop Error - WebSevices
Javascript Loop Error   --------------------------------------------------- function..._cperson.value.focus(); }   Hi friend, Some error in your code and check
Advertisements
loop error - Ajax
loop error  Expert:ARIJEET sory....dude....it's not my perfect...... will be in loop..or number of will be infinity...and the number of will be two or three... the loop
loop
loop  i want to write my name(inder) through loop in java using star
loop
loop  what is the difference b/w do while,while and for loop..with example
for loop
for loop  what is for loop   Loops are used for iteration... for a number of times it is finite loop and if repetition is done infinitely it is infinite loop. Java provides several loop structures for iteration. Those
For loop
For loop  Hi! Please explain the following loop: for(i=0;i<a[j];i++) THANX!!   Please reply as soon as possible
for loop
for loop  how to performs the for loop when 2 inputs given like displays the triangle shape and how to take initial values or declaration values plz explain in detailed ex. 1 12 123 1234
Loop
to understand a loop my quesiton are: what du i do wrong in my code since.... (made in blueJ) Class Loop public void loopUpGeneral(int start, int stop... dk  Hi, Please check the for loop once again: for (int i
For Loop
For Loop  Write a program using a for loop that computes the following sum: 1/2 + 2/2 + 3/2 + 4/2 + 5/2 + ... N/2 N will be an integer limit the user enters. This is an example of my upcoming quiz. I need help on knowing
for loop
for loop  using only two for loop how can print below numbers 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 7 7 7 7 7 7 7 6 6 6 6 6 6 5 5 5 5
for loop
for loop  using only two for loop how can print below numbers 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 6 6 6 6 6 6 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 7 7 7 7 7 7 7 6 6 6 6 6 6 5 5 5 5
loop
loop  strong textHello can someone help me with this problem,I need to output the following code using a loop the code is as follows with the user inputs in inverted commas,thanks. ENTER CODE(XX to Stop) CODE:"D24" QUANTITY:"2
For..in loop
For..in loop         In this tutorial we will study for..in loop which is similar to for each loop of C#, Java and other popular languages, in this example
Java for loop
Java for loop  Can a for statement loop indefinitely
javascript loop examples
javascript loop examples  While running a javascript loop function i am getting an error ..can any one post an example of writing loops in javascript?   Looping In Java Script
For Loop - Struts
For Loop  Hi, How to use for loop in Struts2. I don't want use.... How to use the For loop in JSP. Thanks, Rajesh.  Hi Rajesh, i am sending simple use of for loop. In this example, you will see the use
Limits of "For loop"
Limits of "For loop"  Hi, How can I check the upper limit and lower limit of 'FOR' loop during unit testing using Junit. Thanks & Regards Ankit
for( ) loop in php
for( ) loop in php  Generally, when we use for loop in PHP or any other programming language why we use i++ and not ++i. What is the reason behind
for( ) loop in php
for( ) loop in php  Generally, when we use for loop in PHP or any other programming language why we use i++ and not ++i. What is the reason behind
How to write a loop and a while loop
How to write a loop and a while loop  How do I write a 1 loop and a 1 while loop for the example code: public boolean isTheFirstOneBigger (int num1, int num2) { if (num1 > num2) { return true
loop statements
loop statements  write a program that reads from input an interger n and prints the factorial of all numbers between 1 and n
For Loop/PHP
For Loop/PHP  Write a class called math. It is to have one property... 12345. How would you write this as a loop? Would I need to use the for loop or do/while loop?   PHP Factorial Example: <?php $n = 5; $i = 1; $f
loop example
loop example   1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 can you give me the code to get the number pyramid
for loop in java
for loop in java  54321 4321 321 21 1 using for loop or nested 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 using for loop or nested... 8 9 6 7 8 9 10 all for loop code plz friends guide me
for loop in java
for loop in java  54321 4321 321 21 1 using for loop or nested 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 using for loop or nested... 8 9 6 7 8 9 10 all for loop code plz friends guide me
for loop in java
for loop in java  54321 4321 321 21 1 using for loop or nested 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 using for loop or nested... 8 9 6 7 8 9 10 all for loop code plz friends guide me
for loop in java
for loop in java  54321 4321 321 21 1 using for loop or nested 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 using for loop or nested... 8 9 6 7 8 9 10 all for loop code plz friends guide me
for loop in java
for loop in java  54321 4321 321 21 1 using for loop or nested 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 using for loop or nested... 8 9 6 7 8 9 10 all for loop code plz friends guide me
error
error  while iam compiling iam getting expected error
For loop java
For loop java  1 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 3 4 5 4 5 6 7 5 6 7 8 9 6 7 8 9 10
 

 

 

DMCA.com