hello im trying to output a navigation w/ my array and use jQuery & CSS to style it... im not sur how we do that but i try something sketchyy i can output a simple navigation but cant style it someone help.
THX
btw sorry for my english. 😉
1.php
<?php
//MYSQL connect...
$sql = ("SELECT id , name , mark FROM phone");
$result = mysql_query($sql);
echo "<div id='sbi_container' class='sbi_container'>";
while($row = mysql_fetch_array($result)){
$id = $row['id'];
$name = $row['name'];
$mark = $row['mark'];
echo "<div class='sbi_panel' data-bg='image/{$name}.jpg'/>";
echo "<a href='./index.php?id={$id}' class='sbi_label'/>$mark $name</a></li></div>";
echo "</div>";
}
echo "<div>";
?>
2.php
//MYSQL connect..,
<?php $sql = ("SELECT * FROM phone where id LIKE '%$_GET[id]%' ");
$bla = $_GET['id'];
$result = mysql_query($sql);
while ($row = mysql_fetch_assoc($result)) {
echo $row["id"],"<br/>";
echo $row["mark"];
echo $row["name"],"<br/>";
}
?>