Jump to content

PHP variables


Imoddedu
 Share

Recommended Posts

I see URL's like this all the time:index.php?k=4(the k doesn't mean anything, just representing anything that can go there.what exactly does this mean in terms of PHP? Also, how is it used for things like looking up information in a search box and displaying the result? like ?result=blahblahblah

Link to comment
Share on other sites

thanks! short and simple explanation that I understood :)which leads to another question...:how come in this code

while($row = mysql_fetch_array($result)) {								echo $row['title'];				echo "<br />";				echo "<br />";				echo $row['response'];								}

I tried putting [ echo "<h4>$row['title']</h4>"; but it actually put out $row['title'] the variable name, not it's value.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...