Hi there,
Im not exactly great at php but im learning steadily.
My latest venture is an online catalogue with an ordering system.
Basically I need to know how to store the products they 'order' and the best way to do this. After ALOT of research I am still at a dead end with it.
I have gathered you use session arrays like:
session_register('incart'[]);
where incart is a variable passed by the buy link.
Is this correct??
And how do i keep adding to this array??
Also (Sorry about this)
When I add a product to a database with the name e.g 'Makeup is here'
When I try to dynamically link from that only the first word is used
For example, lets say i have the variable $make , which relates to the test in the database in the columb 'make'. I then make a link like so:
<a href="<?php echo("$PHPSELF?make=$make"); ?>">Name</a>
the link that actually is displayed will only be the irst word in the databsaea cell.
index.php?make=makeup
INSTEAD OF
index.php?make=Makeup is here
What can I do to remedy this??