- Impact
- 1
I'm working on a comments script for my site. The script uses one table to store all the data for every comment. In that table I have a column that is named cid which tells the script what it belongs too. So here is my problem.
I start by getting the id of what the comment is left for
$id = $_GET['id']
then I want it to add another letter to it that will be used for pulling the data out when a page is loaded
$cid = b + $id
the b is a letter i'm using for a specific area of the site for example right now the b means its a blog comment. I am also going to have a p$id which will be a photo comment id. So how do I write the variable to add the corresponding letter to it based on what the form is telling it.
I start by getting the id of what the comment is left for
$id = $_GET['id']
then I want it to add another letter to it that will be used for pulling the data out when a page is loaded
$cid = b + $id
the b is a letter i'm using for a specific area of the site for example right now the b means its a blog comment. I am also going to have a p$id which will be a photo comment id. So how do I write the variable to add the corresponding letter to it based on what the form is telling it.











