Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 07-12-2006, 11:11 PM   #1
BSOD
 
MarxSoccer's Avatar
 
Join Date: Jun 2005
Posts: 2,999
Send a message via ICQ to MarxSoccer Send a message via AIM to MarxSoccer Send a message via MSN to MarxSoccer Send a message via Yahoo to MarxSoccer
Default PHP script help

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
__________________

MarxSoccer is offline   Reply With Quote
Old 07-13-2006, 01:03 AM   #2
BSOD
 
Vista Master's Avatar
 
Join Date: Jul 2006
Posts: 18
Default Re: PHP script help

I think it may be something to do with it starts at 0, its a weird problem.
__________________

Vista Master is offline   Reply With Quote
Old 07-14-2006, 07:38 PM   #3
Solid State Member
 
Join Date: Jul 2006
Posts: 18
Default Re: PHP script help

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.
d00by is offline   Reply With Quote
Old 07-31-2006, 02:46 AM   #4
Baseband Member
 
Join Date: Jul 2006
Posts: 53
Default Re: PHP script help

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.
falcon1 is offline   Reply With Quote
Old 07-31-2006, 02:07 PM   #5
Baseband Member
 
Lamez's Avatar
 
Join Date: Jul 2006
Posts: 76
Send a message via AIM to Lamez Send a message via MSN to Lamez Send a message via Yahoo to Lamez
Default Re: PHP script help

http://www.powerwd.com/pages/product...237107b056d240

try that software
__________________
My Computer Stats
My Site
Lamez is offline   Reply With Quote
Old 08-04-2006, 08:22 PM   #6
Baseband Member
 
Join Date: Jul 2006
Posts: 53
Default Re: PHP script help

Did you get this sorted? No point in really asking for help if you arent going to actively participate...
__________________

falcon1 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 05:54 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0