Okay, so basicly I have the following code: [b]Searchform on page1.php[/b] [code] <form name="form" method="post" action="page2.php"> <input name="carbrand" type="text" size="16" maxlength="16"></td> <input type="submit" name="Submit" value="Search"> </form> [/code] People should enter carbrand in the textfield, like 'BMW' or 'Ford'. Then they press 'Search' and they should go to page2.php. [b]Page2.php looks like this:[/b] [code] include 'connect_to_db.php'; $carbrand = ($_POST['carbrand']); $mysql_query = "SELECT * FROM carbrands WHERE carbrand='$carbrand'"; $result = mysql_query($mysql_query); while ($row = mysql_fetch_object($result)) { [/code] Now that was the PHP-code. When I want to echo something, I use this code: [code] <?php print "$row->carnumber"; ?> <?php print "$row->carbrand"; ?> <?php print "$row->cardescription"; ?> <?php print "$row->carprice"; ?> [/code] Goal: I want to show ALL cars of the brand what was inserted before on the form of page1.php. Problem: The code is working, BUT it's only showing the first character of the value in the database. So I get this: [code] 1 | B | T | 2 1 | B | T | 2 3 | B | T | 3 8 | B | P | 1 [/code] Instead of this: [code] 13344 | BMW | This is a BMW 318i | 21000,- 13367 | BMW | This is a BMW 325Ci | 28000,- 34344 | BMW | This is a BMW 325M3 | 31000,- 89333 | BMW | Perfect BMW 525 | 19999,- [/code] See, it's only echoing the first character.. ;( edit: problem solved, I shouldn't use the foreach command.. :P