You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 43 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Validation of Form data ** SOLVED ** [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
HSM
Lieutenant
Lieutenant


Joined: Mar 10, 2005
Posts: 166


PostPosted: Fri Dec 14, 2007 11:09 pm Reply with quoteBack to top

The code snippet here is the admin function that 'should' take the data from the form and insert the fields inputed into the database.

Problem is, it does not do that. It gives no error, it simply returns a blank screen, when it should read back the server details that have just been written to the database.

Anyone know what I did wrong here??

v7.9 PHP-Nuke (patched) v5 PHP & MySQL

Code:
global $sid, $uid, $host, $port, $spasswd, $vpasswd, $sname, $vname, $auth, $modneedpw, $clientcount, $maxclients, $platform, $version, $lastquery, $homepage, $colbg1, $colbg2, $colbg3, $coltxt1, $coltxt2, $dbname;

if ($modneedpw=='Yes') {
      $modneedpw='1';
      } else {
      $modneedpw='0';
      }

      $result = @mysql_db_query($dbname,"INSERT INTO ghq_jcsvt_server (sid, uid, host, port, spasswd, vpasswd, sname, vname, auth, modneedpw, clientcount, maxclients, platform, version, lastquery, homepage) VALUES ('$sid', '$uid', '$host', '$port', '$spasswd', '$vtpasswd', '$sname', '$vname', '$auth', '$modneedpw', '$clientcount', '$maxclients', '$platform', '$version', '$lastquery', '$homepage')");
      
      $newindex=mysql_insert_id();
      $address="admin.php?op=jcsvtserverdetail&evid=".$newindex;
      Header("Location: $address");


Note: I did not post the entire function, just the core code has been posted.

_________________
...everything that has a beginning, has a horrible hell like ending...

Last edited by HSM on Wed Dec 19, 2007 10:33 am; edited 1 time in total
Find all posts by HSMView user's profileSend private messageSend e-mailVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Sat Dec 15, 2007 1:52 am Reply with quoteBack to top

Remove the @ symbol, that should give you the error message if you've enabled error reporting

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
HSM
Lieutenant
Lieutenant


Joined: Mar 10, 2005
Posts: 166


PostPosted: Sat Dec 15, 2007 10:58 am Reply with quoteBack to top

$display_errors = true; is set, although it does not display any errors. Matter of fact, that feature has never worked for me.

_________________
...everything that has a beginning, has a horrible hell like ending...
Find all posts by HSMView user's profileSend private messageSend e-mailVisit poster's website
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12397


PostPosted: Sat Dec 15, 2007 2:21 pm Reply with quoteBack to top

Put the SQL query into a variable and echo that to your browser. Then run the query in phpMyAdmin to determine if there's an error in the query

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
HSM
Lieutenant
Lieutenant


Joined: Mar 10, 2005
Posts: 166


PostPosted: Wed Dec 19, 2007 10:32 am Reply with quoteBack to top

Thx for all, my coding partner solved this issue by implmenting a different set of queries to get things done.

Appreciate your time and effort.

_________________
...everything that has a beginning, has a horrible hell like ending...
Find all posts by HSMView user's profileSend private messageSend e-mailVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.303 Seconds - 262 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::