[PHP] Re: query to display the results without...

2003-12-08 Thread Justin Patrin
Eric Holmstrom wrote: Hi there I have a database called Eric and table name called Rocket'. Table consists of three values. PARTNO | DESCRIPTION | COMMENT So far if i want to show copper headgaskets from the 5r field i put this string into the php script (along with the rest of the html/php

[PHP] Re: query to display the results without...

2003-12-08 Thread Eric Holmstrom
Okay i have this so far --- ?php $conn = mysql_connect(localhost, , ); mysql_select_db(ERIC,$conn); $sql = SELECT * FROM rocket; $result = mysql_query($sql, $conn) or die(mysql_error()); while ($newArray = mysql_fetch_array($result)) { $partno =

RE: [PHP] Re: query to display the results without...

2003-12-08 Thread Chris W. Parker
Eric Holmstrom mailto:[EMAIL PROTECTED] on Monday, December 08, 2003 3:06 PM said: How do i make it so if i type http://localhost/test.php?partno=5rdescription=copper $partno = $_GET['partno']; $description = $_GET['description']; $sql = SELECT partno ,

[PHP] Re: query to display the results without...

2003-12-08 Thread Justin Patrin
Eric Holmstrom wrote: Okay i have this so far --- ?php $conn = mysql_connect(localhost, , ); mysql_select_db(ERIC,$conn); $sql = SELECT * FROM rocket; $result = mysql_query($sql, $conn) or die(mysql_error()); while ($newArray =