Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
Donovan
Client



Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Fri Dec 15, 2006 4:03 pm Reply with quote

I have a table with a field name of name. Isn't this a reserved word. The problem is I can't get the team_id to insert into eto_rpoints_lkup. Everything else inserts correctly except for team_id.

My php editor I use has the word highlighted.

mmm.

Here is my code.

Darn, Sentinal is blocking me. I'll try and attach a txt later.

http://www.eto-league.com/MatchList.txt
 
View user's profile Send private message Visit poster's website ICQ Number
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Fri Dec 15, 2006 7:46 pm Reply with quote

In the code you referred us to you have team_id commented out as a hidden field.

I've also had bad luck sticking comments in the middle of an echo that's concatenated. You would really want to move any commented fields outside of the echo area -- I'm not saying it can't work the way you have it but it really puts your brain parser to the test if you know what I mean.

You also might want to echo out the post variables after you read them in and see if you have loaded them as you expected. Finally, I don't know if MYSQL treats name as reserved but I know that Nuke uses $name as a variable name throughout. I had a custom module where I was using $name at one point and I had to go back and change it to keep from conflicting with Nuke's "reserved" variable. I would recommend prefixing it or using some variant. No sense tempting fate.

And I DO see the mysql error echoes. Congrats on that!
 
View user's profile Send private message Visit poster's website
Donovan







PostPosted: Fri Dec 15, 2006 10:28 pm Reply with quote

Neither way worked about the comments with team_id.


I even added the team_id to the rows being displayed to make sure I am getting the correct one.

Image

123 is the correct team_id for the 3rd Infantry.

I don't see how else to $_POST them, I've always done it this way.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©