How exactly do I do this? If I click the post> "insert" I get a lot of 'field' 'type' 'null 'value' etc. There is no 'pre-postid' just postid. At the bottom it indicates this would add a new row. As a row isn't a column, where is the bit to add columns??
You do it with a MySQL query -
ALTER TABLE post ADD COLUMN ref TEXT;
ALTER TABLE post ADD COLUMN pre_postid INT;
Then I just set the column width for pre_postid in phpMyAdmin because I didn't know how to do it with a query - but it worked.
Again confused here: are we to edit the code currently at lines 26,27, and 30 so it reads as above or add this to replace it? If '}' is to go at line 30 then the code currently there will now be on 31?
You put it directly *under* line 26. It should look like this -
if (isset($postid)) {
if (isset($pre_postid)) {
$pre_postid=(int)$pre_postid;
}
We change to 'require_once' , then comment it out?
Yup.
good luck!
|