I have a table in the database and one of the fields needs to have two or more words. Let's say it's a field called "name" and i have in it names like "John William Johnson", "Alley Cat" and others.
I take out all the fields in the table in a php file, and these names become links to another page "test2.php".
What i need is to take the whole variable, both two words.
Instead of having "test2.php?num=Alley" i need to have something like "test2.php?num=Alley Cat" (or eventually test2.php?num=Alley%20Cat).
In the page i open i want to have the variable as two separate words, as it was originally. For example if i need to print it, it should be "Alley Cat" , and not "Alley%20Cat"
Ok, i guess you understand my problem. So far i can only take the first word as a variable.
I take out all the fields in the table in a php file, and these names become links to another page "test2.php".
What i need is to take the whole variable, both two words.
Instead of having "test2.php?num=Alley" i need to have something like "test2.php?num=Alley Cat" (or eventually test2.php?num=Alley%20Cat).
In the page i open i want to have the variable as two separate words, as it was originally. For example if i need to print it, it should be "Alley Cat" , and not "Alley%20Cat"
Ok, i guess you understand my problem. So far i can only take the first word as a variable.