As the board grows please remember the Search Option and we hope you find our community useful.
We also monitor Private Messages to stop members from abusing our sites system. If you are asking for assistance please provide your site link and nuke version, Thanks.
Joined: May 09, 2008
Last Visit: 10 May 2008
Posts: 2 Points: 44
PHP QuestionPosted:
Fri May 09, 2008 7:19 pm
Hello Clan-Themes.co.uk
I've got a bit of PHP problem.
I'm trying to make a page that updates a row in a database. and another page reads from that row and gets its text from it.. some kind of easy posting/updating system.
But i've run into some really big problem.
I do NOT recommend the $_GET variable as your data is submitted directly into the URL which can give away information that ultimatly opens the door for injection exploits. Use the ( $_REQUEST ) variable instead.
As for your ( else and If ) statements, i would suggest separating them by 'CASE - Breaks'
Inside of those Case/Breaks insert your function directly into the appropriate function needed.
With SQL. your on the right Track ( INSERT ) is whats needed to add data to your SQL database...
But with the limited information provided in your question..its going to be difficult to point you in the right direction
If you would like further help, your going to need to provide detailed information in your question.
You will not recieve help from me if i have to go digging for your CMS information and version, If i have to take the time to play 21 questions, then you can take the time to google!
No Copyright, no support either!
Joined: May 09, 2008
Last Visit: 10 May 2008
Posts: 2 Points: 44
PHP QuestionPosted:
Sat May 10, 2008 5:34 am
Thanks for the reply. I'll try to explain it a bit better
I'm trying to do a page, wich got an text are, the stuff you enter there should get posted into a row in database,
another page reads from that row and post it on the page. so it would become some kind of simple posting system/admin system for my pages.
or is there any easier way to update/change the content of my pages online and not having to change the code itself
Bayler
Reputation: 758.7 votes: 5
Local time: 6:23 AM
Status: Offline
0.87 posts per day Medals: 1 (View more...)
Clan Themes Scripts/Coder Joined: Nov 01, 2007
Last Visit: 17 May 2008
Posts: 173 Points: 3338
PHP QuestionPosted:
Sat May 10, 2008 11:36 am
ok...
That is no more information then the original question...so i guess your going to make me ask a billion & one questions....
1) What type of CMS are you using...
2) How many Pages are we talking ? 1, 2, as many as you want to create?
3) How much Text is the database storing ? 255 characters, 500, 1000 ???
Joined: Jan 07, 2007
Last Visit: 16 May 2008
Posts: 46 Points: 4694
PHP QuestionPosted:
Sat May 10, 2008 6:44 pm
Ok there looks to be a bunch of points to make here. Since you don't wish to include the nuke DB connection class and choose to do the connection manually I would say I would change your routine to this:
6 Replies / 182 Views Page 1 of 1 All times are GMT
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 cannot attach files in this forum You cannot download files in this forum