PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
krissto
New Member
New Member


Joined: Feb 09, 2004
Posts: 4

PostPosted: Mon Feb 09, 2004 1:28 pm Reply with quote Back to top

Hello Everyone,

I just downloaded KISSQ and installation was a breeze...great script.
Becasue I am not yet an advanced user of PHP, I may be missing something simple, but the info for pPrice, nShares and pDate are not writng to my portfolio db...and so I am getting zero's all the way across.


Any suggestions, tips etc.?

Thanks,
krissto
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15058
Location: Kansas

PostPosted: Mon Feb 09, 2004 3:00 pm Reply with quote Back to top

Post a link to your site and let me take a look.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
krissto
New Member
New Member


Joined: Feb 09, 2004
Posts: 4

PostPosted: Mon Feb 09, 2004 3:20 pm Reply with quote Back to top

Hi Raven,

Only registered users can see links on this board!
Get registered or login to the forums!


Thanks for your help...
krissto
View user's profile Send private message
krissto
New Member
New Member


Joined: Feb 09, 2004
Posts: 4

PostPosted: Mon Feb 09, 2004 3:22 pm Reply with quote Back to top

The index for you script is here...http://www.defgllc.com/Stock_Quote/
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15058
Location: Kansas

PostPosted: Mon Feb 09, 2004 3:25 pm Reply with quote Back to top

How have you integrated it into the database? From the comments in the index.php file
Quote:
Also, this system does not allow the assigning of usernames and/or passwords.
It is assumed that you handle that some other way. YOU MUST MAKE AVAILABLE A
SETTING CALLED $username TO THIS APPLICATION, IF YOU WANT THE STOCK SYMBOLS
STORED IN MYSQL. Otherwise, the user will only have retrieval access.
The reason for this is that I have no way of knowing your login system if it
is not something standard like Nuke or Postnuke.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
krissto
New Member
New Member


Joined: Feb 09, 2004
Posts: 4

PostPosted: Mon Feb 09, 2004 3:37 pm Reply with quote Back to top

By integrate, do you mean turning off the comments in the index file? like this one...

// for ($i=0;$i<count($symbols);$i++) {
// if ($symbols[$i]==$Symbol) unset($symbols[$i]);
// }
// if (!in_array($Symbol,$symbols)) {
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15058
Location: Kansas

PostPosted: Mon Feb 09, 2004 3:45 pm Reply with quote Back to top

You don't turn comments off and on. If I have commented something out - leave it out.

If you don't have a user database that you integrate with kissq, then it can't save the data anywhere. How would it know who to save it under? That's what that instruction is talking about.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
upennballer
New Member
New Member


Joined: Jun 10, 2004
Posts: 16

PostPosted: Wed Jul 14, 2004 12:29 am Reply with quote Back to top

It is writing to the database but i dont think it is getting read correctly

Try this:

Fix for standalone maybe.

I am not much of a coder. but i was trying to implement this standalone version and it wouldnt read the shares or price. I found that it isnt even searching for that when it goes to read the sql so i added

$uArray[] = $row->Symbol.':'.$row->pDate.':'.$row->nShares.':'.$row->pPrice.':'.$row->fees.':'.$row->uniqueid.":~";

after

$symbols[] = $row->Symbol;

Should now look like


elseif ($isStd) {
$dbi = mysql_connect($stdHost, $stdUser, $stdPasswd) or die($err_msg);
mysql_select_db($stdDB, $dbi);
$result = mysql_query($query, $dbi) or die($err_msg);;
if ($result && (mysql_num_rows($result) > 0)) {
while ($row=mysql_fetch_object($result,1)) {
if (empty($row->Symbol)) continue;
$symbols[] = $row->Symbol;
$uArray[] = $row->Symbol.':'.$row->pDate.':'.$row->nShares.':'.$row->pPrice.':'.$row->fees.':'.$row->uniqueid.":~";

}
}
}


or something like that...
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 15058
Location: Kansas

PostPosted: Wed Jul 14, 2004 7:02 am Reply with quote Back to top

Embarassed You are exactly correct! It appears that not too many are using KISSQ as a standalone, membership, application, so this part had never been tested [thoroughly at least]. Thanks so much for the head's up and I will get an update out ASAP.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum