I'm new to PHP linking what i read in the books.
Understanding is going a bit slow , but there is a pain in my brain that will not go.
So i turn to you, for helping me find a cure.
I read PHP 4 bilbe..
The book has a part about GET and POST method wel there is something i don't understand about this.
Here is the code i use
Code: Select all
<FORM METHOD=POST ACTION="test2.php">
<SELECT NAME="Artiesten" align="center">
<?PHP
$hallo = "*"; \\ to see if i could use variable in a SQLstring
mysql_connect("$host") or die ("No COnnection");
mysql_select_db("$db") or die ("No Databasr Selected");
$query = "SELECT $hallo FROM Artiesten";
$result = mysql_query($query);
While($Artiesten = mysql_fetch_array($result))
{
print ("<OPTION VALUE=$Artiesten>$Artiesten[0]\n");
}
?>
</SELECT>
<input type=submit>
</FORM>
On the next page "test2.php the thing for me to do is something like
Code: Select all
print ("$Artiesten");
But that's not the question
i tryed to use the GET and POST method to get the info on the test2.php.
even diffenrent scripts from the book.
But i never get any results back.
here is my question.
Could there be something in my PHP.INI that is blocking the result to get to the "test2.php" page.
this because i have the feeling it's not handeld by PHP as i should.
Thanks for you time, hope you have the cure.
HAve a nice day.
Psycho