PHP script help

MarxSoccer

BSOD
Messages
2,999
I am working on a PHP Script and my insert query seems to be on the fritz, when the link is at newthread.php?fid=1 (fid means forum id which distinguishes what forum it is being posted in)

$fid = $_GET['fid']; is set for the insert query, using the above link would insert the fid as 1, but for some odd reason inserts it as 0 everytime. I have tried everything, can anyone help?

Here is my code: http://paste.ubuntu-nl.org/17878
 
add a print("<script>alert(\"$fid\");</script>"); right after you assign the fid. It would be that your script isnt recieving the $fid varible at all.
 
Where is your fid field in that code? I see the title and post fields, but no id field. Also, why use GET instead of POST for the fid? Throw in an "echo $fid;" somewhere before your query to see what is happening.
 
Did you get this sorted? No point in really asking for help if you arent going to actively participate...
 
Back
Top Bottom