Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Reply
 
Thread Tools
  #1  
Old 06-18-2009, 09:12 PM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 483
Question Create break in html table

Hi folks,

i dont know if I am saying this right but on my page www.gnjgf.co.za/testconcat.php I have managed to sort my tournaments as I would like them preseneted -well to a point that is.

What I would like to do further is create a break of say three lines once the tournament description changes.

In this instance it could happen about 5 times.

Once this is done I would like the headings to be common at the top of each split - naming the tournament.

Any ideas would be welcome?
__________________
Kind Regards
Rob
www.gnjgf.co.za
www.oryan-projects.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 06-19-2009, 12:41 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Create break in html table

Easy if you use loops to display the info, but i can't suggest anything because i don't realy know your code.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 06-19-2009, 07:54 AM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 483
Question Re: Create break in html table

Hi George,

Thanks you for the reply.

I am not sure to the code either - I am going through a trail and process method of cut and paste with help from people like yourselves.

I can copy what I think is the code for you and it is this

$quey1="select * from _Form_Nr_3 ORDER BY `i_wish_to_play` ASC, `surname` ASC ";
$result=mysql_query($quey1) or die(mysql_error());
?>

Please let me know if this not be the case
__________________
Kind Regards
Rob
www.gnjgf.co.za
www.oryan-projects.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 06-19-2009, 08:02 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Create break in html table

No, i mean the code that creates the table and displays the content.

Further more your page doesn't connect anymore to the database (it did, yesterday that i looked)
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 06-19-2009, 08:12 AM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 483
Default Re: Create break in html table

Hi George,

I have used an html block to create this page and made the changes last night to get it to do what you can currently see at www.gnjgf.co.za/testconcat.php

Hence me sorting it in order of tournaments - it is really a follow on form my CONCAT exercise if that helps but I copy the other side that I think you are requesting

$quey1="select * from _Form_Nr_3 ORDER BY `i_wish_to_play` ASC, `surname` ASC ";
$result=mysql_query($quey1) or die(mysql_error());
?>
<!------------------------------------------------------------------->
<! THIS SECTION CHANGES WHAT THE TABLE LOOKS LIKE >
<!------------------------------------------------------------------->

<table border=3 width="85%" style="font-size:11px" cellspacing=0 style="background-color:#FFFFFF;" >
<!------------------------------------------------------------------->
<! THIS SECTION CHANGES THE MAIN HEADING >
<!------------------------------------------------------------------->

<caption><b><font style="font-size:16px" color="#00008B" face="Arial">
TOURNAMENT ENTRIES</font><b><caption>

<!------------------------------------------------------------------->
<! THIS SECTION CHANGES THE ACTUAL COLUMN HEADINGS >
<!------------------------------------------------------------------->

<tr>
<th><b><font style="font-size:11px" color="#00008B" face="Arial">FULL NAME</font></b></th>
<th><b><font style="font-size:11px" color="#00008B" face="Arial">HANDICAP</font></b></th>
<th><b><font style="font-size:11px" color="#00008B" face="Arial">TOURNAMENT</font></b></th>
</tr>
<!------------------------------------------------------------------->
<! THIS SECTION FETCHES THE INFORMATION FROM THE TABLE >
<!------------------------------------------------------------------->

<?php
while($row=mysql_fetch_array($result)){
echo "</tr><td>";
echo '<option value="'.$row['surname'].', '.$row['name'].'">'.$row['surname'].', '.$row['name'].'</option>';
echo "</td><td>";
echo $row['my_handicap_is'];
echo "</td><td>";
echo $row['i_wish_to_play'];
echo "</td></tr>";
}
echo "</table>";
?>
__________________
Kind Regards
Rob
www.gnjgf.co.za
www.oryan-projects.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 06-19-2009, 08:17 AM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 483
Default Re: Create break in html table

Hi George,

I see what you mean by server connection.

Strange as I know it worked late last night and havent changed anyting in that regard

All the passwords are as we set them previously.

I hope this is not to much of a problem - I see it affects all the pages relating to the server and databases
__________________
Kind Regards
Rob
www.gnjgf.co.za
www.oryan-projects.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 06-19-2009, 08:36 AM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 483
Default Re: Create break in html table

Hi George,

I dont know whats going on but when I go to cpanel the following errror is found:

#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)

It seems as if all my databases are not there.

Do you have advice on how I can get them back and how they could have been removed.

I havent change any configuration and maybe they are working on the servers?

Ideas in tis regard are welcome
__________________
Kind Regards
Rob
www.gnjgf.co.za
www.oryan-projects.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 06-19-2009, 08:47 AM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 483
Thumbs up Re: Create break in html table

Hi George,

I can only sumise they are working on the server as it is now back to normal.

A bit of a shock - what happens if the server is down -my system then doesnt work.

I guess there must be a way to ensure I dont loose info - backup - to where and how do i go about this process?

Anyway the main thing is we are back and I can see the data.
__________________
Kind Regards
Rob
www.gnjgf.co.za
www.oryan-projects.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 06-19-2009, 09:35 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Create break in html table

The following code should work though i haven't tested it. As you can see you must remove the entire part that creates the headings, as i have moved it in the loop.




$quey1="select * from _Form_Nr_3 ORDER BY `i_wish_to_play` ASC, `surname` ASC ";
$result=mysql_query($quey1) or die(mysql_error());
?>
<!------------------------------------------------------------------->
<! THIS SECTION CHANGES WHAT THE TABLE LOOKS LIKE >
<!------------------------------------------------------------------->
<table border=3 width="85%" style="font-size:11px" cellspacing=0 style="background-color:#FFFFFF;" >
<!------------------------------------------------------------------->
<! THIS SECTION CHANGES THE MAIN HEADING >
<!------------------------------------------------------------------->
<caption><b><font style="font-size:16px" color="#00008B" face="Arial">
TOURNAMENT ENTRIES</font><b><caption>
<!------------------------------------------------------------------->
<!------------------------------------------------------------------->
<! THIS SECTION FETCHES THE INFORMATION FROM THE TABLE >
<!------------------------------------------------------------------->
<?php
while($row=mysql_fetch_array($result)){
//----------------------------------------------------------------------------------------------------
// THIS SECTION ADDS 3 EMPTY LINES IF THERE IS A SPLIT BUT ONLY AFTER SOME RECORDS HAVE BEEN DISPLAYED
//----------------------------------------------------------------------------------------------------
if($i > 0 AND $row['i_wish_to_play'] != $last_wish_to_play){
echo '<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>';
}
//----------------------------------------------------------------------------------------------------
// THIS SECTION ADDS HEADINGS
//----------------------------------------------------------------------------------------------------
if ($row['i_wish_to_play'] != $last_wish_to_play) {
echo '<tr>
<td><font style="font-size:11px" color="#00008B" face="Arial"><b>FULL NAME</b></font></td>
<td><font style="font-size:11px" color="#00008B" face="Arial"><b>HANDICAP</b></font></td>
<td><font style="font-size:11px" color="#00008B" face="Arial"><b>TOURNAMENT</b></font></td>
</tr>';
}
echo "<tr><td>";
echo '<option value="'.$row['surname'].', '.$row['name'].'">'.$row['surname'].', '.$row['name'].'</option>';
echo "</td><td>";
echo $row['my_handicap_is'];
echo "</td><td>";
echo $row['i_wish_to_play'];
$last_wish_to_play = $row['i_wish_to_play'];
$i++;
echo "</td></tr>";
}
echo "</table>";
?>
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 06-19-2009, 09:46 AM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 483
Thumbs up Re: Create break in html table

Hi George,

Thanks again.

It works great - I will now look at a way in which the break line does not show a an open line with no values.

And get the headings to veiw as per the tournament description.

I am beginging to understand more and more as I work with things but as I also see lots and lots of time.

Thanks very much very your time
__________________
Kind Regards
Rob
www.gnjgf.co.za
www.oryan-projects.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old 06-19-2009, 09:58 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Create break in html table

Simple:

$quey1="select * from _Form_Nr_3 ORDER BY `i_wish_to_play` ASC, `surname` ASC ";
$result=mysql_query($quey1) or die(mysql_error());
?>
<!------------------------------------------------------------------->
<! THIS SECTION CHANGES WHAT THE TABLE LOOKS LIKE >
<!------------------------------------------------------------------->
<table border=3 width="85%" style="font-size:11px" cellspacing=0 style="background-color:#FFFFFF;" >
<!------------------------------------------------------------------->
<! THIS SECTION CHANGES THE MAIN HEADING >
<!------------------------------------------------------------------->
<caption><b><font style="font-size:16px" color="#00008B" face="Arial">
TOURNAMENT ENTRIES</font><b><caption>
<!------------------------------------------------------------------->
<!------------------------------------------------------------------->
<! THIS SECTION FETCHES THE INFORMATION FROM THE TABLE >
<!------------------------------------------------------------------->
<?php
while($row=mysql_fetch_array($result)){
//----------------------------------------------------------------------------------------------------
// THIS SECTION ADDS 3 EMPTY LINES IF THERE IS A SPLIT BUT ONLY AFTER SOME RECORDS HAVE BEEN DISPLAYED
//----------------------------------------------------------------------------------------------------
if($i > 0 AND $row['i_wish_to_play'] != $last_wish_to_play){
echo '<tr>
<td colspan="3">&nbsp;</td>
</tr>';
}
//----------------------------------------------------------------------------------------------------
// THIS SECTION ADDS HEADINGS
//----------------------------------------------------------------------------------------------------
if ($row['i_wish_to_play'] != $last_wish_to_play) {
echo '<tr>
<td align="center"><font style="font-size:11px" color="#00008B" face="Arial"><b>FULL NAME</b></font></td>
<td align="center"><font style="font-size:11px" color="#00008B" face="Arial"><b>HANDICAP</b></font></td>
<td align="center"><font style="font-size:11px" color="#00008B" face="Arial"><b>'.$row['i_wish_to_play'].'</b></font></td>
</tr>';
}
echo "<tr><td>";
echo '<option value="'.$row['surname'].', '.$row['name'].'">'.$row['surname'].', '.$row['name'].'</option>';
echo "</td><td>";
echo $row['my_handicap_is'];
echo "</td><td>";
echo $row['i_wish_to_play'];
$last_wish_to_play = $row['i_wish_to_play'];
$i++;
echo "</td></tr>";
}
echo "</table>";
?>
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old 06-19-2009, 10:07 AM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 483
Thumbs up Re: Create break in html table

Thanks George,

Can I make the break line to veiw eaxctly like the background in the page or is that more difficult?
__________________
Kind Regards
Rob
www.gnjgf.co.za
www.oryan-projects.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old 06-19-2009, 10:14 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Create break in html table

$quey1="select * from _Form_Nr_3 ORDER BY `i_wish_to_play` ASC, `surname` ASC ";
$result=mysql_query($quey1) or die(mysql_error());
?>
<!------------------------------------------------------------------->
<! THIS SECTION CHANGES WHAT THE TABLE LOOKS LIKE >
<!------------------------------------------------------------------->
<table border=3 width="85%" style="font-size:11px" cellspacing=0>
<!------------------------------------------------------------------->
<! THIS SECTION CHANGES THE MAIN HEADING >
<!------------------------------------------------------------------->
<caption><b><font style="font-size:16px" color="#00008B" face="Arial">
TOURNAMENT ENTRIES</font><b><caption>
<!------------------------------------------------------------------->
<!------------------------------------------------------------------->
<! THIS SECTION FETCHES THE INFORMATION FROM THE TABLE >
<!------------------------------------------------------------------->
<?php
while($row=mysql_fetch_array($result)){
//----------------------------------------------------------------------------------------------------
// THIS SECTION ADDS 1 EMPTY LINE IF THERE IS A SPLIT BUT ONLY AFTER SOME RECORDS HAVE BEEN DISPLAYED
//----------------------------------------------------------------------------------------------------
if($i > 0 AND $row['i_wish_to_play'] != $last_wish_to_play){
echo '<tr>
<td colspan="3">&nbsp;</td>
</tr>';
}
//----------------------------------------------------------------------------------------------------
// THIS SECTION ADDS HEADINGS
//----------------------------------------------------------------------------------------------------
if ($row['i_wish_to_play'] != $last_wish_to_play) {
echo '<tr>
<td align="center"><font style="font-size:11px" color="#00008B" face="Arial"><b>FULL NAME</b></font></td>
<td align="center"><font style="font-size:11px" color="#00008B" face="Arial"><b>HANDICAP</b></font></td>
<td align="center"><font style="font-size:11px" color="#00008B" face="Arial"><b>'.$row['i_wish_to_play'].'</b></font></td>
</tr>';
}
echo '<tr><td bgcolor="#FFFFFF">';
echo '<option value="'.$row['surname'].', '.$row['name'].'">'.$row['surname'].', '.$row['name'].'</option>';
echo '</td><td bgcolor="#FFFFFF">';
echo $row['my_handicap_is'];
echo '</td><td bgcolor="#FFFFFF">';
echo $row['i_wish_to_play'];
$last_wish_to_play = $row['i_wish_to_play'];
$i++;
echo '</td></tr>';
}
echo '</table>';
?>
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old 06-19-2009, 10:29 AM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 483
Thumbs up Re: Create break in html table

Thanks again,

Good progress.

The page shows good - it is just the heading lines that are now also showing the background - whereas its is the blank line / break that I wanted like the background.

The break line is good - just the heading line should be as normal table.
__________________
Kind Regards
Rob
www.gnjgf.co.za
www.oryan-projects.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old 06-19-2009, 10:39 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Create break in html table

$quey1="select * from _Form_Nr_3 ORDER BY `i_wish_to_play` ASC, `surname` ASC ";
$result=mysql_query($quey1) or die(mysql_error());
?>
<!------------------------------------------------------------------->
<! THIS SECTION CHANGES WHAT THE TABLE LOOKS LIKE >
<!------------------------------------------------------------------->
<table border=3 width="85%" style="font-size:11px" cellspacing=0>
<!------------------------------------------------------------------->
<! THIS SECTION CHANGES THE MAIN HEADING >
<!------------------------------------------------------------------->
<caption><b><font style="font-size:16px" color="#00008B" face="Arial">
TOURNAMENT ENTRIES</font><b><caption>
<!------------------------------------------------------------------->
<!------------------------------------------------------------------->
<! THIS SECTION FETCHES THE INFORMATION FROM THE TABLE >
<!------------------------------------------------------------------->
<?php
while($row=mysql_fetch_array($result)){
//----------------------------------------------------------------------------------------------------
// THIS SECTION ADDS 1 EMPTY LINE IF THERE IS A SPLIT BUT ONLY AFTER SOME RECORDS HAVE BEEN DISPLAYED
//----------------------------------------------------------------------------------------------------
if($i > 0 AND $row['i_wish_to_play'] != $last_wish_to_play){
echo '<tr>
<td colspan="3">&nbsp;</td>
</tr>';
}
//----------------------------------------------------------------------------------------------------
// THIS SECTION ADDS HEADINGS
//----------------------------------------------------------------------------------------------------
if ($row['i_wish_to_play'] != $last_wish_to_play) {
echo '<tr>
<td align="center" bgcolor="#FFFFFF"><font style="font-size:11px" color="#00008B" face="Arial"><b>FULL NAME</b></font></td>
<td align="center" bgcolor="#FFFFFF"><font style="font-size:11px" color="#00008B" face="Arial"><b>HANDICAP</b></font></td>
<td align="center" bgcolor="#FFFFFF"><font style="font-size:11px" color="#00008B" face="Arial"><b>'.$row['i_wish_to_play'].'</b></font></td>
</tr>';
}
echo '<tr><td bgcolor="#FFFFFF">';
echo '<option value="'.$row['surname'].', '.$row['name'].'">'.$row['surname'].', '.$row['name'].'</option>';
echo '</td><td bgcolor="#FFFFFF">';
echo $row['my_handicap_is'];
echo '</td><td bgcolor="#FFFFFF">';
echo $row['i_wish_to_play'];
$last_wish_to_play = $row['i_wish_to_play'];
$i++;
echo '</td></tr>';
}
echo '</table>';
?>

Where is the edited page ? can't seem to find it
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old 06-19-2009, 11:43 AM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 483
Thumbs up Re: Create break in html table

Hi George,

Looking much better thank you.

Page is www.gnjgf.co.za/testconcat.php

It looks good except the > shows in places - dont know why but will try and try
__________________
Kind Regards
Rob
www.gnjgf.co.za
www.oryan-projects.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old 06-19-2009, 12:08 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Create break in html table

Quote:
Originally Posted by Rob (SA) View Post
Page is www.gnjgf.co.za/testconcat.php

It looks good except the > shows in places
Not sure what you mean, where does it show ??
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old 06-19-2009, 12:15 PM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 483
Thumbs up Re: Create break in html table

hi George,

I have sorted it out

The headings were having a > at the begining of each title and I think it was because of this

$quey1="select * from _Form_Nr_3 ORDER BY `i_wish_to_play` ASC, `surname` ASC ";
$result=mysql_query($quey1) or die(mysql_error());
?>
<!------------------------------------------------------------------->
<! THIS SECTION CHANGES WHAT THE TABLE LOOKS LIKE >
<!------------------------------------------------------------------->
<table border=3 width="85%" style="font-size:11px" cellspacing=0>
<!------------------------------------------------------------------->
<! THIS SECTION CHANGES THE MAIN HEADING >
<!------------------------------------------------------------------->
<caption><b><font style="font-size:16px" color="#00008B" face="Arial">
TOURNAMENT ENTRIES</font><b><caption>
<!------------------------------------------------------------------->
<!------------------------------------------------------------------->
<! THIS SECTION FETCHES THE INFORMATION FROM THE TABLE >
<!------------------------------------------------------------------->
<?php
while($row=mysql_fetch_array($result)){
//----------------------------------------------------------------------------------------------------
// THIS SECTION ADDS 3 EMPTY LINES IF THERE IS A SPLIT BUT ONLY AFTER SOME RECORDS HAVE BEEN DISPLAYED
//----------------------------------------------------------------------------------------------------
if($i > 0 AND $row['i_wish_to_play'] != $last_wish_to_play){
echo '<tr>
<td colspan="3">&nbsp;</td>
</tr>';
}
//----------------------------------------------------------------------------------------------------
// THIS SECTION ADDS HEADINGS
//----------------------------------------------------------------------------------------------------
if ($row['i_wish_to_play'] != $last_wish_to_play) {
echo '<tr>
<td align="center" bgcolor="#FFFFFF">><font style="font-size:11px" color="#00008B" face="Arial"><b>FULL NAME</b></font></td>
<td align="center" bgcolor="#FFFFFF">><font style="font-size:11px" color="#00008B" face="Arial"><b>HANDICAP</b></font></td>
<td align="center" bgcolor="#FFFFFF">><font style="font-size:11px" color="#00008B" face="Arial"><b>'.$row['i_wish_to_play'].'</b></font></td>
</tr>';


Shown in red above - so I deleted it and it seems to have had the desired effect.
__________________
Kind Regards
Rob
www.gnjgf.co.za
www.oryan-projects.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19  
Old 06-19-2009, 12:25 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Create break in html table

Yes, my mistake
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #20  
Old 06-19-2009, 12:36 PM
Rob (SA)'s Avatar
Major
 
Join Date: Nov 2006
Location: Centurion, South Africa
Posts: 483
Thumbs up Re: Create break in html table

hi George,

No problem at all.

I am only glad that I am learning and getting to see how to fix things a little by little with your guidance.

You will see I am playing a bit now to get the tournament to be as it is at the top and then the headings - name, handicap etc just below that.

It seems I have to play a bit with the order of things to get this to happen by manipulation of the <tr> command.

I am glad we have got it to where we are because it helps me to relaise how powerful the datbase manipulation can be in achieving the lower administration requirements we need on this website.

your support is truly appreciated
__________________
Kind Regards
Rob
www.gnjgf.co.za
www.oryan-projects.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT +1. The time now is 12:29 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203