Coding Help needed
Posted: Wed Jul 19, 2006 3:31 pm
Pimptastic | Please use
I get only the commas on 6 lines (as i got 6 rows in my db).....can anyone give me a hand?
P.S. It's Part of a code. Im just messing around with it. Yet i cant figure it out. LoL
Pimptastic | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]Code: Select all
<?php
$con = mysql_connect("*","*","*");
if (!$con)
{
die('Could not connect: '. mysql_error());
}
mysql_select_db("****", $con);
$select = mysql_query("select * from main;", $con);
while (mysql_fetch_array($select))
{
echo "$select[Name]" . ", " . "$select[Description]" . ", " . "$select[Path]" . ", " . "$select[Executed]" . ", " . "$select[Sold]" . ", " . "$select[Price]" . ".";
echo "<br />";
}P.S. It's Part of a code. Im just messing around with it. Yet i cant figure it out. LoL
Pimptastic | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]