Question: The following code works for me:

```
var div2 = document.createElement('DIV');
$(div2).css('position','relative').insertBefore( $(div).children()[0] );
var div3 = document.createElement("DIV");
$(div2).prepend($(div3).css({'display':'inline','position':'absolute'}));

```

...but I got to imagine there is a neater jQuery way to do the createElement's. I tried the following, but it didn't work:

```
$('<div></div>').css('position','relative').insertBefore( $(div).children()[0] );
$(div2).prepend($('<div></div>').css({'display':'inline','position':'absolute'}));

```

Any sugestions?

Answer: 
Try to remove

```
 while ( $info = mysql_fetch_array($query) );

```

; from this line.

If you steal no output - your DB table is empty.

Read about PDO, mysql\_query will be deprecated in the next PHP release.
```
while ($info = mysql_fetch_array($query)) //remove semicolon
    {
          echo '<b>Name:</b>' .$info['name'] . "<br>";
          echo '<b>Age:</b>' .$info['age'] . "<br>";
          echo '<b>Breed:</b>' .$info['breed'] . "<br>";
          echo '<b>Sex:</b>' .$info['he'] . "<br>";
          echo '<b>Color:</b>' .$info['color'] . "<br>";
          echo '<b>Size:</b>' .$info['size'] . "<br>";
          echo '<b>When:</b>' .$info['when'] . "<br>";
          echo '<b>Special:</b>' .$info['special'] . "<br>";
    }

```