Retrieving Data And Displaying In Boxes - How do I make a grid of boxes?

free web hosting
Free Web Hosting > Computers & Tech > Programming > Scripting > PHP

Retrieving Data And Displaying In Boxes - How do I make a grid of boxes?

FirefoxRocks
I have successfully setup a MySQL Database with a few tables in it to store user input! smile.gifbiggrin.gif Woohoo!

Now the problem is displaying the data. I want 4 boxes echoing across with 3 rows down so that makes 12 boxes (12 of the most recent records). I have no clue how to do this because I cannot use the W3Schools example of echoing into a table. Here is the code I used but it echoes the same information across the entire row of 4 boxes.

CODE
<?php
$con = mysql_connect("localhost","myDatabase name","myDatabase password");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("myTable", $con);

$result = mysql_query("SELECT * FROM myField1 ORDER BY myField2 DESC");

echo "<table summary='myTable summary'>";
while($row = mysql_fetch_array($result))
  {
    echo "<tr>";
  echo "<td style='width:25%'>XKingdom Member:" . $row['user'] . "<br />Name of victim:" . $row['victim'] . "<br />Attack turns:" . $row['turns'] . "<br />Side of attack:" . $row['side'] . "<br />Gold stolen:" . $row['gold'] . "<br />Units lost:" . $row['lost'] . "<br />Units killed:" . $row['killed'] . "<br />MXP Gained:" . $row['mxp'] . "<br />Victim's points:" . $row['points_b'] . "<br />Your points:" . $row['points_a'] . "<br />Type of battle:" . $row['type'] . "<br />Battle power:" . $row['power'] . "</td>";
  echo "<td style='width:25%'>XKingdom Member:" . $row['user'] . "<br />Name of victim:" . $row['victim'] . "<br />Attack turns:" . $row['turns'] . "<br />Side of attack:" . $row['side'] . "<br />Gold stolen:" . $row['gold'] . "<br />Units lost:" . $row['lost'] . "<br />Units killed:" . $row['killed'] . "<br />MXP Gained:" . $row['mxp'] . "<br />Victim's points:" . $row['points_b'] . "<br />Your points:" . $row['points_a'] . "<br />Type of battle:" . $row['type'] . "<br />Battle power:" . $row['power'] . "</td>";
    echo "<td style='width:25%'>XKingdom Member:" . $row['user'] . "<br />Name of victim:" . $row['victim'] . "<br />Attack turns:" . $row['turns'] . "<br />Side of attack:" . $row['side'] . "<br />Gold stolen:" . $row['gold'] . "<br />Units lost:" . $row['lost'] . "<br />Units killed:" . $row['killed'] . "<br />MXP Gained:" . $row['mxp'] . "<br />Victim's points:" . $row['points_b'] . "<br />Your points:" . $row['points_a'] . "<br />Type of battle:" . $row['type'] . "<br />Battle power:" . $row['power'] . "</td>";
  echo "<td style='width:25%'>XKingdom Member:" . $row['user'] . "<br />Name of victim:" . $row['victim'] . "<br />Attack turns:" . $row['turns'] . "<br />Side of attack:" . $row['side'] . "<br />Gold stolen:" . $row['gold'] . "<br />Units lost:" . $row['lost'] . "<br />Units killed:" . $row['killed'] . "<br />MXP Gained:" . $row['mxp'] . "<br />Victim's points:" . $row['points_b'] . "<br />Your points:" . $row['points_a'] . "<br />Type of battle:" . $row['type'] . "<br />Battle power:" . $row['power'] . "</td>";
    echo "</tr>";
  }
echo "</table>";
mysql_close($con);
?>

*Field/database information was edited out to protect privacy.

As you can see, it tells the database to echo one full row of the same info, then loop through the whole thing as many times as there are records. First of all, I only want a total of 12 records being echoed. Second of all, I want the 4x3 boxes layout.

Could someone please give me some modifications to the code I am using right now? I tried using <div>s also, didn't work.
I'm designing this site for a major section for a game site.

 

 

 


Reply

TavoxPeru
QUOTE(FirefoxRocks @ Feb 15 2007, 05:56 PM) *
I have successfully setup a MySQL Database with a few tables in it to store user input! smile.gifbiggrin.gif Woohoo!

Now the problem is displaying the data. I want 4 boxes echoing across with 3 rows down so that makes 12 boxes (12 of the most recent records). I have no clue how to do this because I cannot use the W3Schools example of echoing into a table. Here is the code I used but it echoes the same information across the entire row of 4 boxes.

CODE
<?php
$con = mysql_connect("localhost","myDatabase name","myDatabase password");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("myTable", $con);

$result = mysql_query("SELECT * FROM myField1 ORDER BY myField2 DESC");

echo "<table summary='myTable summary'>";
while($row = mysql_fetch_array($result))
  {
    echo "<tr>";
  echo "<td style='width:25%'>XKingdom Member:" . $row['user'] . "<br />Name of victim:" . $row['victim'] . "<br />Attack turns:" . $row['turns'] . "<br />Side of attack:" . $row['side'] . "<br />Gold stolen:" . $row['gold'] . "<br />Units lost:" . $row['lost'] . "<br />Units killed:" . $row['killed'] . "<br />MXP Gained:" . $row['mxp'] . "<br />Victim's points:" . $row['points_b'] . "<br />Your points:" . $row['points_a'] . "<br />Type of battle:" . $row['type'] . "<br />Battle power:" . $row['power'] . "</td>";
  echo "<td style='width:25%'>XKingdom Member:" . $row['user'] . "<br />Name of victim:" . $row['victim'] . "<br />Attack turns:" . $row['turns'] . "<br />Side of attack:" . $row['side'] . "<br />Gold stolen:" . $row['gold'] . "<br />Units lost:" . $row['lost'] . "<br />Units killed:" . $row['killed'] . "<br />MXP Gained:" . $row['mxp'] . "<br />Victim's points:" . $row['points_b'] . "<br />Your points:" . $row['points_a'] . "<br />Type of battle:" . $row['type'] . "<br />Battle power:" . $row['power'] . "</td>";
    echo "<td style='width:25%'>XKingdom Member:" . $row['user'] . "<br />Name of victim:" . $row['victim'] . "<br />Attack turns:" . $row['turns'] . "<br />Side of attack:" . $row['side'] . "<br />Gold stolen:" . $row['gold'] . "<br />Units lost:" . $row['lost'] . "<br />Units killed:" . $row['killed'] . "<br />MXP Gained:" . $row['mxp'] . "<br />Victim's points:" . $row['points_b'] . "<br />Your points:" . $row['points_a'] . "<br />Type of battle:" . $row['type'] . "<br />Battle power:" . $row['power'] . "</td>";
  echo "<td style='width:25%'>XKingdom Member:" . $row['user'] . "<br />Name of victim:" . $row['victim'] . "<br />Attack turns:" . $row['turns'] . "<br />Side of attack:" . $row['side'] . "<br />Gold stolen:" . $row['gold'] . "<br />Units lost:" . $row['lost'] . "<br />Units killed:" . $row['killed'] . "<br />MXP Gained:" . $row['mxp'] . "<br />Victim's points:" . $row['points_b'] . "<br />Your points:" . $row['points_a'] . "<br />Type of battle:" . $row['type'] . "<br />Battle power:" . $row['power'] . "</td>";
    echo "</tr>";
  }
echo "</table>";
mysql_close($con);
?>

*Field/database information was edited out to protect privacy.

As you can see, it tells the database to echo one full row of the same info, then loop through the whole thing as many times as there are records. First of all, I only want a total of 12 records being echoed. Second of all, I want the 4x3 boxes layout.

Could someone please give me some modifications to the code I am using right now? I tried using <div>s also, didn't work.
I'm designing this site for a major section for a game site.

First of all change your select statement to the following:
CODE
$result = mysql_query("SELECT * FROM myField1 ORDER BY myField2 DESC limit 12");
What this will do is to select only the last 12 or whatever number of records from your table.

Now for echoing correctly your data something like this will work:
CODE
<?php
$nRows=mysql_num_rows($result)/4;
$i=0;
echo "<table summary='myTable summary'>\n";
while($i<$nRows){
    echo "<tr>\n";
    for ($h = 0; $h < 4; $h++) {
        echo "<td style='width:25%'>";
        if($row = mysql_fetch_array($result)) {
            echo "XKingdom Member:" . $row['user'] . "<br />Name of victim:" . $row['victim'] . "<br />Attack turns:" . $row['turns'] . "<br />Side of attack:" . $row['side'] . "<br />Gold stolen:" . $row['gold'] . "<br />Units lost:" . $row['lost'] . "<br />Units killed:" . $row['killed'] . "<br />MXP Gained:" . $row['mxp'] . "<br />Victim's points:" . $row['points_b'] . "<br />Your points:" . $row['points_a'] . "<br />Type of battle:" . $row['type'] . "<br />Battle power:" . $row['power'];
        }
        else echo " ";
        echo "</td>";
    }
    echo "</tr>\n";
    $i++;
}
echo "</table>\n";
?>

Best regards,

 

 

 


Reply

FirefoxRocks
Before I use the code into my page, could you please explain the \n part of the code that you put in after the table tags? The code looks really good tongue.gif And I hope it works. I will try it soon. The only thing I don't understand is the \n parts.
***about 1 hour later***
Great! It works! Now I need even more advanced coding. Read the stuff below:
If the $row['type'] is offensive, I want the table cell background to be #f00.
If the $row['type'] is defensive, I want the table cell background to be #48d1cc.

I tried this:
CODE
if($row = mysql_fetch_array($result))
{
if($row['type'] = off)
    {
    $cbkgd="background-color:#f00";
    }
elseif($row['type'] = def)
    {
    $cbkgd="background-color:#48d1cc";
    }
else
    {
    $cbkgd="background-color:#fff";
    }
}


It didn't work, the whole row went to 1 colour and only 1 record/row was displayed. Could someone please help me do this?

Reply

mastercomputers
The "\n" part is just formatting for the source code really. Since you're outputting the content as is, it doesn't take into account newline characters which is what "\n" is.

e.g.

If you did:

CODE
<?php
echo '<table>';
echo '<tr>';
echo '<td>some content</td>';
echo '</tr>';
echo '</table>';
?>


And viewed the source you'll get:

CODE
<table><tr><td>some content</td></tr></table>


Similar to doing:

CODE
<?php
echo '<table><tr><td>some content</td></tr></table>';
?>


Now if you did:

CODE
<?php
echo "<table>\n\t<tr>\n\t\t<td>some content</td>\n\t</tr>\n</table>";
?>


When you view the source it'd look like:

CODE
<table>
    <tr>
        <td>some content</td>
    </tr>
</table>


"\n" is newline characters and "\t" is tab characters.

"\n" is not the HTML <br /> element.

Also remember that using PHP, special characters like \n and \t must be in double quotes, not single quotes unless you want to output exactly those characters.

Just test it out if you like:

CODE
<?php
echo '\n'; // displays \n
echo "\n"; // wont display anything but viewing source would have a newline there (just like you pressed enter when typing it)
?>


Read up strings and interpolation in the PHP manual for more understanding and finding more special characters that can be used.

I haven't gone over your code yet, but by the looks of things you'd be better off using HEREDOC strings, again you'll find more information by looking into the strings in the PHP manual.

Cheers,

MC

Reply

mastercomputers
QUOTE(FirefoxRocks @ Feb 17 2007, 07:36 AM) *
CODE
if($row = mysql_fetch_array($result))
{
if($row['type'] = off)
    {
    $cbkgd="background-color:#f00";
    }
elseif($row['type'] = def)
    {
    $cbkgd="background-color:#48d1cc";
    }
else
    {
    $cbkgd="background-color:#fff";
    }
}


In this code you're using the assignment operator '=', not the comparison operator '=='. You're also using constants instead of the required string, however if the constants don't exist the string is automatically guessed but this is poor programing. I'm not sure, but I think conditions always evaluate to true if it's assigned any value unless you assign an empty/null/0 value.

You could use a switch statement like:

CODE
switch($row['type']) {
  case 'off':
    $cdkgd = 'background-color: #f00';
    break;
  case 'def':
    $cdkgd = 'background-color: #48d1cc';
    break;
  default:
    $cdkgd = 'background-color: #fff';
    break;
}


Or you could use an if-else statement:

CODE
if($row['type'] == 'off') {
  $cdkgd = 'background-color: #f00';
}
elseif($row['type'] == 'def') {
  $cdkgd = 'background-color: #48d1cc';
}
else {
  $cdkgd = 'background-color: #fff';
}


I still haven't gotten round to looking at your code yet.

Cheers,

MC

Reply

mastercomputers
OK, I have looked at your code and here's my suggestion:

CODE
<?php
$row = array(
    'user' => 'AbUser',
    'victim' => 'Jack the Ripper',
    'turns' => 2,
    'side' => 'right',
    'gold' => 120,
    'lost' => 0,
    'killed' => 0,
    'mxp' => 48,
    'points_b' => 1800,
    'points_a' => 50,
    'type' => 'melee',
    'power' => 'average'
); //remove this array
//$con = mysql_connect('localhost', 'myDatabaseName', 'myDatabasePassword') or exit('Could not connect: '.mysql_error());
//mysql_select_db('myTable', $con);
//$result = mysql_query('SELECT * FROM `myField1` ORDER BY `myField2` DESC LIMIT 12;');
$i = 0;
$tmp_table = '';
//while($row = mysql_fetch_array($result)) {
    if(empty($tmp_table)) {
        $tmp_table .= '<table summary="myTable summary">'."\n\t".'<tr>'."\n";
    }
for($k = 0; $k < 15; $k++) { //remove this for loop
    if($i != 0 && $i % 4 == 0) {
        $tmp_table .= "\t".'</tr>'."\n\t".'<tr>'."\n";
    }
    $tmp_table .= "\t\t".'<td style="width: 25%; border: thin solid black;">XKingdom Member: '.$row['user'].
        '<br />Name of victim: '.$row['victim'].
        '<br />Attack turns: '.$row['turns'].
        '<br />Side of attack: '.$row['side'].
        '<br />Gold stolen: '.$row['gold'].
        '<br />Units lost: '.$row['lost'].
        '<br />Units killed: '.$row['killed'].
        '<br />MXP Gained: '.$row['mxp'].
        '<br />Victim\'s points: '.$row['points_b'].
        '<br />Your points: '.$row['points_a'].
        '<br />Type of battle: '.$row['type'].
        '<br />Battle power: '.$row['power'].
        '</td>'."\n";
    $i++;
    if($i == 12) {
        break;
    }
}
//mysql_close($con);
if(!empty($tmp_table)) {
    $tmp_table .= "\t".'</tr>'."\n".'</table>';
    echo $tmp_table;
}
?>


Now since I don't have your database or table, I commented those parts out and just wanted to show a working example. I'm using the same content from my array. To use it, just remove the array, all the comments at the beginning of a line and remove the for loop line and hopefully it's get the results you want. I also added a border around the cells, just to show seperation.

Here's the source code view of HTML, just thought I would add that:

CODE
<table summary="myTable summary">
    <tr>
        <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td>

        <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td>
        <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td>

        <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td>
    </tr>
    <tr>

        <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td>
        <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td>

        <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td>
        <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td>

    </tr>
    <tr>
        <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td>

        <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td>
        <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td>

        <td style="width: 25%; border: thin solid black;">XKingdom Member: AbUser<br />Name of victim: Jack the Ripper<br />Attack turns: 2<br />Side of attack: right<br />Gold stolen: 120<br />Units lost: 0<br />Units killed: 0<br />MXP Gained: 48<br />Victim's points: 1800<br />Your points: 50<br />Type of battle: melee<br />Battle power: average</td>
    </tr>
</table>


Cheers,

MC

Reply

TavoxPeru
QUOTE(FirefoxRocks @ Feb 16 2007, 01:36 PM) *
Before I use the code into my page, could you please explain the \n part of the code that you put in after the table tags? The code looks really good tongue.gif And I hope it works. I will try it soon. The only thing I don't understand is the \n parts.
***about 1 hour later***
Great! It works! Now I need even more advanced coding. Read the stuff below:
If the $row['type'] is offensive, I want the table cell background to be #f00.
If the $row['type'] is defensive, I want the table cell background to be #48d1cc.

I tried this:
CODE
if($row = mysql_fetch_array($result))
{
if($row['type'] = off)
    {
    $cbkgd="background-color:#f00";
    }
elseif($row['type'] = def)
    {
    $cbkgd="background-color:#48d1cc";
    }
else
    {
    $cbkgd="background-color:#fff";
    }
}


It didn't work, the whole row went to 1 colour and only 1 record/row was displayed. Could someone please help me do this?

The \n means a newline and is simply use to code formatting.

Now to add the background color to the table cell you need to modify my code, because as you see it first echoes the TD tag and then echoes the data, also, check your type data, i assume that it is a string data, so, try this instead:
CODE
<?php
$nRows=mysql_num_rows($result)/4;
$i=0;
echo "<table summary='myTable summary'>\n";
while($i<$nRows){
    echo "<tr>\n";
    for ($h = 0; $h < 4; $h++) {
        $cbkgd="#fff;";
        echo "<td style='width:25%;background-color:";
        if($row = mysql_fetch_array($result)) {
            if($row['type'] == 'off') {
                $cbkgd="#f00;";
            }
            elseif($row['type'] == 'def')    {
                $cbkgd="#48d1cc;";
            }
            echo $cbkgd . "'>";
            echo "XKingdom Member:" . $row['user'] . "<br />Name of victim:" . $row['victim'] . "<br />Attack turns:" . $row['turns'] . "<br />Side of attack:" . $row['side'] . "<br />Gold stolen:" . $row['gold'] . "<br />Units lost:" . $row['lost'] . "<br />Units killed:" . $row['killed'] . "<br />MXP Gained:" . $row['mxp'] . "<br />Victim's points:" . $row['points_b'] . "<br />Your points:" . $row['points_a'] . "<br />Type of battle:" . $row['type'] . "<br />Battle power:" . $row['power'];
        }
        else echo $cbkgd . "'> ";
        echo "</td>";
    }
    echo "</tr>\n";
    $i++;
}
echo "</table>\n";
?>

Best regards,

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Similar Topics

Keywords : retrieving, data, displaying, boxes, make, grid, boxes,

  1. How To Make The Theme In Php?
    Apply Theme on to the profile. (4)
  2. How To Make A Window Form Smooth Snap To Desktop Edge ?
    (3)
    Hi, All, Now I got another issues that I wanted to implment a window that will snap to desktop
    edge. What I'am do now was creating it with timer and some windows api to check positions say if
    within a range then move the form window to any edge. But this has an issue with it the window will
    flicker. Any ideas with this issue ? Thanks, --- Magiccode9 ....
  3. Login System
    I want to make a login system using Mysql. I am amateur in these thing (6)
    I want to make a login system using Mysql. I am amateur in these things so please explain in detail
    like spoon feeding. I have already made a database in http://www.sitebooth.com now what type of
    table I should make and and the website or PHP for it . If you think i hav chosen wrong site please
    give any better database hosting site. Please help me Best Regards Pritesh Gupta....
  4. How To Make Sure Your Server Can Generate Images
    How to use createthumb() (0)
    How to make sure your server can generate images This small article will explain how you create a
    thumbnail from an image in PHP. Furthermore you learn how to batch process a whole folder of images
    and create their thumbnails. To create images with PHP you need to have the gd image library
    installed and activated in your PHP. To make sure if gd is installed on your machine, simply check
    your php info. Create a file that contains: and save it as "test.php" on your server. When you
    open it in a browser you see a colourful table showing all the schematics of your PHP inst....
  5. How To Make Credits
    (10)
    please if any person can help me with the free credits, my english is regular....
  6. Normal Maps In Blender
    Technique to make low resolutuion models have high resolution detail (6)
    Disclaimer: This is not a beginner "introduction to blender" level tutorial. It addresses the
    area of Normal Mapping, which is an advanced displacement texturing technique. If you know what
    Normal Maps are, and are wanting to know how to make them in Blender, then this tutorial is for you.
    UV unwrapping, basic Blender navigation, Sculpt mode etc are more basic skills which are assumed
    knowlege for this level. Normal maps are cool. They are blueish textures which work like (but are
    more accurate than) bumpmaps... apply them to a model and they add bumpy textures & d....
  7. How To Make Both Windows Look Like Active At Same Time
    (9)
    Hi, I'am creating some UI that will have some floating windows like the code below. But by
    default, when one window was active, the other will lost focus and became gray in color. How can I
    made both look like active. Much like some graphics apps such as photoshop tool window. Thanks,
    CODE /** *   * **/ using System; using System.Windows.Forms; using System.Drawing; public
    class Program {     public static void Main(string args)     {         form1 AppMain = new form1();
            Application.Run(AppMain);     } } public class form1 : System.Windows.F....
  8. Make Firefox Look Like Google Chrome
    (2)
    I had posted a topic on trap awhile back for the chrome lovers on how to make firefox look like
    chrome but with the added security and privacy and what not. So I thought I would share to everyone
    on astahost on how that is done and that way for those who enjoy chrome and firefox will have the
    best of both worlds with the following extensions Stealther Download Statusbar
    Locationbar˛ 1.0.3 Speed Dial Prism Resizeable Textarea Peer's ChromiGlass
    New Tab Button on Tab Right Personal Menu Show Go Dom Inspector Chromifox....
  9. What Are The Ways To Make Your Poems Spread To The Audience?
    (3)
    Hi and my regards to everyone, poem is a way to express yourself and the surroundings that influence
    you in many ways. There have been poets that have touched either of us and on which I believe that
    we get inspired to write poetry. One of my favorites is Sir William Wordsworth of whose Daffodils
    was a great work. I have too some of written poems which I believe will be a pleasure to hear. What
    are the different ways that one can use to spread their works to the audience?....
  10. How To Make Simple Animations In The Gimp
    in the form of an Animated GIF. (2)
    This is a very simple technique which even young school children can manage... use the method in
    class if you like (but show them for real rather than making them read something; they will pick it
    up a lot faster). I am using Gimp 2.4 for this tutorial. When saving layered images in GIF format,
    the Gimp knows how to prepare them in a special way which will work automatically on websites. I
    recommend you are moderately familiar with the Gimp and at have at least a basic understanding of
    layers to follow this tutorial. Part 1: Get Ready 1. Start a new image in Gim....
  11. Grid-iron - Management Game
    (1)
    So, I'm playing this game for a week now and it's great and new as well. Grid-Iron is an
    American Football management game. In it you take control of a club and try to become the best in
    the world. As a manager you have control of finance, buying/selling players (through a bidding
    system), hiring staff, construction of facilities, upgrading your stadium, training regime for each
    of your players, setting up friendly games and making that perfect formation to win your games
    (which are viewed live via play-by-play viewer). Anyway, if anyone is interested click on....
  12. Hard Drive Data Recovery Review
    (7)
    Here is a short review from a recent tragedy that I encountered from the loss of a hard drive.
    After an extensive search for free programs I landed upon two different commercial products and here
    is the review for them both. The reason for this review is to get some frustration out about the
    looser because I feel that I am out a good chunk of money and I figure this will help me feel
    better. Good EASEUS Data Recovery Wizard Professional 4.3.6 http://www.easeus.com/ $89.95 USD
    Worked first time and I was actually impressed. Bad ARAX Disk Doctor 2.2 http://www.d....
  13. Make Money Online With Cashcrate - A Scam?
    (8)
    Nope, it's not a scam. I was surprised too, as most of these sites turn out to be scams.
    CashCrate , however, actually pays, and at an extremely fast rate as well. Basically, at the site,
    you complete listed offers and then the site will credit you with dollars. If you're wondering
    about the speed of the crediting, the site does it as soon as the company listing the offer tells
    them you've completed an offer. You'll also get an email letting you know you've
    finished and that they've confirmed the offer. You can cash out once you've reached $....
  14. Anyone Willing To Make A Text-based Game With Me?
    for all interested view the idea first (5)
    Here we are. A few days ago while playing slavehack (my fav text-based game, which is currently
    laggy and ddosed), i got an idea for a game based on similar principles. In this game, you are an
    instrument player eg. a Bass player, a guitar player, a drummer, a singer etc. you can earn and
    improve your skills by practicing. You have to choose your playing style(metal, rock, death metal,
    trash metal, jazz etc. you can buy guitars, amps, pedals, processors etc. when you get good enough
    you can form a band with other players. you can than make your gigs, where you earn cash,....
  15. Skydrive
    5 gigs for saving your data (9)
    I just received a mail from the Messenger team, talking about skydrive. Seems very interesting,
    it's supposed to be a krypted area where you store important things (a copy of your passport
    before traveling, who knows). It's a great idea having copy of your important things. And, of
    course, 5 gigs storage is always someting interesting. Have a look, it's here :
    http://skydrive.live.com ....
  16. How To Make A Private Message System.
    (13)
    Hey! Today, I am going to teach you how to make a Private Message (PM) script in PHP. Before we
    start, I want to tell you what you should know, and what files we will create. Then we will continue
    with the codes, and descriptions. I would like if you learned something from this tutorial. If you
    find any errors (Even if I spell something wrong), I would like you to post it in this thread.
    What you should know: You should know HTML. Just a bit (forms, and maybe a little design if you
    would like that). You should know much about PHP and Mysql. You should know how to c....
  17. How To Make A PM (Personal Message) System?
    (Should I Store The Data In A Database?) (5)
    Hey! I just wanted to know, if I want to make a PM system, should I store the PMs in a database or
    how should I do it? And if I should store them in a database, how do I do that. Because I have
    acctually no idea, if I should create 50 tables to store 50 messages /tongue.gif"
    style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" /> (And a little OT question
    ). How can i change the timestamp into real date?....
  18. Make A Wish And It'll Come True...if....
    Common email chain letters (7)
    Do you ever come across email chain letters that say something like: QUOTE Now make a wish and
    scroll down ((scrolls down about 15 seconds)) STOP!!! Send this to ## people and your wish will come
    true in ## minutes/hours/days. Or things like this: QUOTE 13 ways to tell if someone loves you
    ... (a list) ... Send this to 20 of your friends and you will get a date within the next day!
    Well I am on the hunt for an EXTREMELY important chain letter that is of the 2nd variety. It was
    quite lengthy, and consisted of maybe 50-120 lines on tips to get a boy/girlfrien....
  19. Data Recovery
    what should i use? (15)
    I sent a computer in for a motherboard replacement. I could have done it myself, but i figured why
    not save some time. The computer came back from the shop with not only the motherboard replaced, but
    the hard drive reformatted and windows reinstalled as well. After yelling at the guy for his
    stupidity, I've now settled down to try to recover the lost data. The problem with what i'm
    using (R-studio) is that it will recover a formatted partition, but because windows has been
    installed again on top it only sees that one. What are my chances of recovering the data, a....
  20. How To Make Realistic Fire!
    real fire in photoshop (19)
    Hello and welcome to my tutorial, I’m going to teach you how to make realistic fire!!!! this is how
    I figured it out, I was makeing smoke in photoshop one day, but i wanted color to be added to it,
    so I added some color balance to it and ""click"" it hit me.... it looked alot like fire. --I would
    rate this tutorial easy and on a scale from 1 to 10 of difficulty, I would say a 3 --this is how
    I did it. 1. first I started with a blank page.. duh it doesn't mater what the size is but I
    used 400 X 400 pixels 2. Ok, we got our blank document now were going to sel....
  21. Real Driving
    Does driving for real make you better at racing games? (25)
    Does driving for real make you better at racing games? And if so does it help to drive faster in
    real life? What do you think? I think it helps, especially with simulation racers! It helps you
    understand certain concepts better! Like two wheel drive vs four wheel drive. And camber on the
    road, things like that! Im not saying drivers are better than non drivers but i think it gives them
    an edge!....
  22. MS Excel -- Automatic Update Of Data
    (3)
    I've got a cell that contains a number, and it is likely for hat number to increment or
    decrement itself on a ragular basis. Could someone briefly explain how it would be made for the
    number to adjust automatically? For example, lets say that that cell is driven by a database, if I
    import data from a database, and then the information in the db changes, will Excel adjust
    accordingly? Please help -- I'm really stuck on this. It's part of some coursework I'm
    doing and I'm desperate for an answer.....
  23. Photoshop Tutorial: How To Make A Userbar For Signatures
    (35)
    How to make a userbar by pyost Lately the userbars have become very popular with people. They
    are mostly putting them in their forum signatures, which is very practical. They are small, but can
    be used for linking. A lot of userbars can be found at www.userbars.com and www.userbars.org ,
    but sometimes people can't find exactly what they want. This is why I have decided to make a
    tutorial on how to make you own userbar. The pictures in this tutorial are made in Photoshop 6.0,
    so don't be surprised if you're Photoshop is different. I will be making a....
  24. Can Someone Make Me A Cs Clan Sig Please?
    (6)
    Hello, Im looking for a counter-strike source theme going on. And if it could say Team|ExT Em
    <760 on it that would be great. I hope someone could be kind too make me one. Thank you....
  25. Convert Fat32 To Ntfs Without Data Loss (dos-mode)
    (8)
    Some computer's are sold with windows XP pre installed and with FAT32 FORMAT, so there is a way
    to change it without data loss. Go do MS-DOS and type convert c: /fs:ntfs, dont forget to change
    the drive c:\, d:\ , e:\ for the one that you wanna convert . PS : This process is impossible
    to return to FAT32, once you convert you can't turn back , unless you format your pc
    /biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> cheers m8's
    /biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif' /> ....
  26. How To Make A Good Sig Image!
    (6)
    Hello all. I am going to tell you how to make a good sig in Photoshop. Okay lets get started:
    Well first you need to start up photoshop /tongue.gif' border='0' style='vertical-align:middle'
    alt='tongue.gif' /> . Then go to FILE->NEW And enter: 360 by 140 or what ever size you wish to
    use. Click D to set ever thing to defualt. Then click on FILTER-> RENDER-> CLOUDS Take out your
    fav brush, i suggest a grunge brush. Start by laying a layer in black. Create a new layer and lay
    down some white brushes. Repeat till your happy. Merge all Layers. Click CTRL L an....
  27. How To Make Your Windows Look Like A Mac
    Windows Xp only (24)
    Ok Fans of macs I have done my reserch and checked it twice and I now present my tutorial on how to
    make your windows XP desktop look like a Mac operating system. For those who think its really hard
    your wrong and without any more jiber jaber lets get started. Step 1: The Downloads Ok for this
    to work your going to need some items to make it work. The first one is the skin to make your
    windows look like a mac. Its called Panther you can download it here . Second your gonna need a doc
    for your programs. The best free one out there is Yz's dock and you can download....
  28. Java Applets
    how to make an applet in Java (5)
    The purpose of this tutorial is to explain how to create a Java applet. A Java applet is simply a
    Java program that runs on a webpage. This tutorial assumes that you have a basic understanding of
    Java. If you don't, I would suggest reading a tutorial on Java first. In this tutorial I
    will be using Java 1.5 (or 5.0). If you don't have it you can download it from Sun . The
    classes and methods used in this tutorial may work for other versions of Java, but I don't know
    for sure. During this tutorial I would suggest opening up Java's online documen....
  29. How Do I Make A RPG Battle System?
    final fantasy style (14)
    I use flash mx, but I was wondering how to/what language I would need to make a final fantasy-like
    turn based battle system for a rpg I'm making. "So, any help you could give us would be...
    Helpful?" MP&THG....
  30. How To Make A Text Based Online Game Script ?
    (24)
    Does anyone know if there is a easy was to make a text base online game, Like a free templet, or if
    anyone know how to make one and can help me.....

    1. Looking for retrieving, data, displaying, boxes, make, grid, boxes,






*SIMILAR VIDEOS*
Searching Video's for retrieving, data, displaying, boxes, make, grid, boxes,
Similar
How To Make The Theme In Php? - Apply Theme on to the profile.
How To Make A Window Form Smooth Snap To Desktop Edge ?
Login System - I want to make a login system using Mysql. I am amateur in these thing
How To Make Sure Your Server Can Generate Images - How to use createthumb()
How To Make Credits
Normal Maps In Blender - Technique to make low resolutuion models have high resolution detail
How To Make Both Windows Look Like Active At Same Time
Make Firefox Look Like Google Chrome
What Are The Ways To Make Your Poems Spread To The Audience?
How To Make Simple Animations In The Gimp - in the form of an Animated GIF.
Grid-iron - Management Game
Hard Drive Data Recovery Review
Make Money Online With Cashcrate - A Scam?
Anyone Willing To Make A Text-based Game With Me? - for all interested view the idea first
Skydrive - 5 gigs for saving your data
How To Make A Private Message System.
How To Make A PM (Personal Message) System? - (Should I Store The Data In A Database?)
Make A Wish And It'll Come True...if.... - Common email chain letters
Data Recovery - what should i use?
How To Make Realistic Fire! - real fire in photoshop
Real Driving - Does driving for real make you better at racing games?
MS Excel -- Automatic Update Of Data
Photoshop Tutorial: How To Make A Userbar For Signatures
Can Someone Make Me A Cs Clan Sig Please?
Convert Fat32 To Ntfs Without Data Loss (dos-mode)
How To Make A Good Sig Image!
How To Make Your Windows Look Like A Mac - Windows Xp only
Java Applets - how to make an applet in Java
How Do I Make A RPG Battle System? - final fantasy style
How To Make A Text Based Online Game Script ?
advertisement




Retrieving Data And Displaying In Boxes - How do I make a grid of boxes?