Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISSQ General Support
Author Message
krissto
New Member
New Member



Joined: Feb 09, 2004
Posts: 4

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

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: 17088

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

Post a link to your site and let me take a look.
 
View user's profile Send private message
krissto







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

Hi Raven,

http://www.defgllc.com...

Thanks for your help...
krissto
 
krissto







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

The index for you script is here...http://www.defgllc.com/Stock_Quote/
 
Raven







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

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.
 
krissto







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

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)) {
 
Raven







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

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.
 
upennballer
New Member
New Member



Joined: Jun 10, 2004
Posts: 16

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

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







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

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.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISSQ General Support

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 ©