Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~26.0K People Reached
Favorite Tags

26 Posted Topics

Member Avatar for LibraryCode

Hi all would like to ask technical question what are the prons and cons of using and not using codeigniter shopping cart class? Heard is better to use functions and sessions and do not use cart class as it is depricated or limited with doing certain functionality .Thanks

Member Avatar for cereal
0
151
Member Avatar for LibraryCode

Hi,i have a text file,how do i parse it in to second file to display only locations names and their average price? CARREG MAKE MODEL COLOUR LOCATIOn PRICE OWNERS MILEAGE 09-L-1258 OPEL ASTRA SILVER LIMERICK 12999 0 35000 01-D-7845 FORD FOCUS BLACK LIMERICK 1500 3 85000 11-D-7425 NISSAN ALMERA WHITE …

Member Avatar for JamesCherrill
0
261
Member Avatar for LibraryCode

Hi all i need a help to develop[e sequance diagram in Rational Rose or Visual Paradigm ,have use case ready.If this this is the wright place to discuss it,please let me know and i post my use case.I am new to sequance diagrams.Thanks

Member Avatar for JamesCherrill
0
302
Member Avatar for LibraryCode

Hi i have a question how do i update database ,once i press on the field it gets active for adding :here is my form : ![DisplayRecord.png](/attachments/large/4/7e05003e5ddcb9618f811af6be38b532.png "align-center") And here my code so far ,i try to code the update button,but it does updates the field,but not the database. package …

Member Avatar for stultuske
0
302
Member Avatar for LibraryCode

Once i press scan button,i enter info into the fields and after pressing the add info goes to the set.Once i press display all i can see info in JPaneShowMessageDialog ,so all scanned info after added pressed. But how to display info in the same textfields , by pressing the …

Member Avatar for stultuske
0
87
Member Avatar for LibraryCode

I have a jbutton ,which once clicked ,counts the clicks: int clicked ; private void jButtonScanActionPerformed(java.awt.event.ActionEvent evt) { clicked++; } My question is how to attach this click output(once the button is clicked ) to jtext field to see the click count? private void jTextFieldParcelIDActionPerformed(java.awt.event.ActionEvent evt) { }

Member Avatar for LibraryCode
0
268
Member Avatar for LibraryCode

Hi all , could you help me to create update function from these code: Controller: <?php class BooksController extends CI_Controller{ public function __construct() { parent::__construct(); // $this->load->helper('url'); // $this->load->helper('form'); // $this->load->library('form_validation'); // $this->load->helper('html'); // $this->load->model("BooksModel"); } function getAuthors(){ $config['base_url']=site_url("/BooksController/getAuthors/"); $config['total_rows']=$this->BooksModel->record_count(); $config['per_page']=3; $this->pagination->initialize($config); $data['Authors'] = $this->BooksModel->getAuthors(3,$this->uri->segment(3)); foreach ($data['Authors'] as &$row) { …

Member Avatar for diafol
0
399
Member Avatar for LibraryCode

How would i fix the search function? AVL.h: #pragma once #include<iostream> #include<stdio.h> using namespace std; template<class T> struct TreeNode; template<class T> class AVLType { public: AVLType(); void InsertItem(T item); void Insert(TreeNode<T>*& tree, T item, bool & taller); void RotateLeft(TreeNode<T>*& tree); void RotateRight(TreeNode<T>*& tree); void RightBalance(TreeNode<T> *& tree, bool & taller); …

Member Avatar for tinstaafl
0
2K
Member Avatar for LibraryCode

![NetbeansCI.png](/attachments/large/4/aad0aaa52fdee4151cdd4fc9b8eab22c.png "align-center") I have netbeans,xampp is running,database is ok.All functions running no problem,but this one,keep getting 404 error.Double checked the spelling and the code.Can not figure out the problem.

Member Avatar for cereal
0
170
Member Avatar for LibraryCode

Hi,how would i need to change this code to accept strings insted integers in avl tree? template<class T> void InsertItem(TreeType<T>& tree) { cout << "Enter number: "; int num; cin >> num; tree.InsertItem(num); cout << "Number inserted:" << num; }

Member Avatar for deceptikon
0
346
Member Avatar for LibraryCode

![jframe.png](/attachments/large/4/0b8af77defcb3e49ffd02bbff7d6281f.png "align-center") Here is the jframe above,images selected at random,the task is after image is displayed,choose from jcombo the answer,press submit and display in jtextfield below the answer:"Correct" or not.And untill the submitt button is not pressed ,disable the next button.How would i do this logic? So far i have …

Member Avatar for JamesCherrill
1
757
Member Avatar for LibraryCode

/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package my.GeographyQuiz; import java.awt.*; import javax.swing.*; /** * * @author K00190164 */ public class GeograpgyQuiz extends javax.swing.JFrame { …

Member Avatar for Traevel
0
195
Member Avatar for LibraryCode

Hi,i have the following code,how can i count values -averages per row and column from this code: <?php $data = array( array(""=>"January", "ATL"=>rand(0,335) , "ORD"=>rand(0,335),"LAX"=>rand(0,335),"DFW"=>rand(0,335),"DEN"=>rand(0,335),"JFK"=>rand(0,335),"SFO"=>rand(0,335),"CLT"=>rand(0,335),"LAS"=>rand(0,335),"PHX"=>rand(0,335)), array(""=>"February", "ATL"=>rand(0,335) , "ORD"=>rand(0,335),"LAX"=>rand(0,335),"DFW"=>rand(0,335),"DEN"=>rand(0,335),"JFK"=>rand(0,335),"SFO"=>rand(0,335),"CLT"=>rand(0,335),"LAS"=>rand(0,335),"PHX"=>rand(0,335)), array(""=>"March", "ATL"=>rand(0,335) , "ORD"=>rand(0,335),"LAX"=>rand(0,335),"DFW"=>rand(0,335),"DEN"=>rand(0,335),"JFK"=>rand(0,335),"SFO"=>rand(0,335),"CLT"=>rand(0,335),"LAS"=>rand(0,335),"PHX"=>rand(0,335)), array(""=>"April", "ATL"=>rand(0,335) , "ORD"=>rand(0,335),"LAX"=>rand(0,335),"DFW"=>rand(0,335),"DEN"=>rand(0,335),"JFK"=>rand(0,335),"SFO"=>rand(0,335),"CLT"=>rand(0,335),"LAS"=>rand(0,335),"PHX"=>rand(0,335)), array(""=>"May", "ATL"=>rand(0,335) , "ORD"=>rand(0,335),"LAX"=>rand(0,335),"DFW"=>rand(0,335),"DEN"=>rand(0,335),"JFK"=>rand(0,335),"SFO"=>rand(0,335),"CLT"=>rand(0,335),"LAS"=>rand(0,335),"PHX"=>rand(0,335)), array(""=>"June", "ATL"=>rand(0,335) , "ORD"=>rand(0,335),"LAX"=>rand(0,335),"DFW"=>rand(0,335),"DEN"=>rand(0,335),"JFK"=>rand(0,335),"SFO"=>rand(0,335),"CLT"=>rand(0,335),"LAS"=>rand(0,335),"PHX"=>rand(0,335)), array(""=>"July", "ATL"=>rand(0,335) , "ORD"=>rand(0,335),"LAX"=>rand(0,335),"DFW"=>rand(0,335),"DEN"=>rand(0,335),"JFK"=>rand(0,335),"SFO"=>rand(0,335),"CLT"=>rand(0,335),"LAS"=>rand(0,335),"PHX"=>rand(0,335)), array(""=>"August", …

Member Avatar for diafol
0
359
Member Avatar for LibraryCode

Would be really appreciated your help.I have a code like this: i need to display a total figure for passengers carried on each route and in each month and highlight in green the best performing route and highlight in red the worst performing route.I constraced those tables and now stack. …

Member Avatar for LibraryCode
0
344
Member Avatar for LibraryCode

Dear friends,help me please,i have a php array,how would i display table out of it,something went wrong : <?php $data = array( array ( "Hartsfield Jackson Atlanta International","Atlanta" , "ATL" ), array ( "Chicago O'Hare International", " Chicago", " ORD" ), array ("Los Angeles International", " Los Angeles", " LAX" …

Member Avatar for jkon
0
9K
Member Avatar for LibraryCode

Hi,have slight problem,my delete function does not work in avl tree: #include "stdafx.h" #include "TreeType.h" using namespace std; // menu helpers int ShowMenu(void); template<class T> void ProcessMenu(TreeType<T>& tree); // callbacks template<class T> void InsertItem(TreeType<T>& tree); template<class T> void DeleteItem(TreeType<T>& tree); template<class T> void PrintTree(TreeType<T>& tree); int _tmain(int argc, _TCHAR* argv[]) …

Member Avatar for tinstaafl
0
431
Member Avatar for LibraryCode

Hi,i have a code like this in .h file: #pragma once #include "stdafx.h" #include"iostream" using namespace std; // balance factor enum enum BalanceFactor { LH, RH, EH }; // treenode struct template<class T> struct TreeNode { T info; TreeNode<T>* left; TreeNode<T>* right; BalanceFactor bf; }; template<typename ItemType> class TreeType { …

Member Avatar for LibraryCode
0
294
Member Avatar for LibraryCode

Hi i have a bit of code: On the 1st day of Christmas, my true love sent to me A partridge in a pear tree. On the 2nd day of Christmas, my true love sent to me Two turtle doves, And a partridge in a pear tree. On the 3rd …

Member Avatar for JamesCherrill
0
249
Member Avatar for LibraryCode

Hi all,my question is i have a form: ![form.jpg](/attachments/large/4/b93dd71ea1dd4f7611edc5ff89832a8f.jpg "align-center") And database: ![database.png](/attachments/large/4/498755bd870d504cf718682b0626d69e.png "align-center") how would i exreact data entered in the form field from database and display in seperate table? ![table.png](/attachments/large/4/8d3074983efeb9799c5474c8e9172afd.png "align-center")

Member Avatar for diafol
0
330
Member Avatar for LibraryCode

Hi all i generated table,but it looks like the code is a bit messy,long,how can i do the same with the arrays or loops? <html> <head> <meta charset="UTF-8"> <title></title> <style> table{border-collapse: collapse;} tr th, tr td{border: 1px solid black;} #resize { width :100%; position: relative; } </style> </head> <body> <?php …

Member Avatar for LibraryCode
0
937
Member Avatar for LibraryCode

Hi,i have a table like this : <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <head> <meta charset="UTF-8"> <title></title> <style> table{border-collapse: collapse;} tr th, tr td{border: …

Member Avatar for LibraryCode
0
961
Member Avatar for LibraryCode

Hi,could anyone tell me please what is the most common and good way to create HTML table from php array.And how to fill it with randomly generated numbers.? Regarding the table so many posts online,but which is the best approach?Thanks.

Member Avatar for diafol
0
7K
Member Avatar for LibraryCode

How do i compute frequency of the numbers in the range,let's say 10-19,using rand number generator array with 50 int? I have this code so far: $arr = array_fill(0, 50, NULL); for ($i = 0; $i < 50; $i ++) { $arr[$i] = rand(10, 19); } but not sure if …

Member Avatar for diafol
0
172
Member Avatar for LibraryCode

Hi all,i tried to do some research regarding associated arrays in php,even manual on the php documentations,but can not find the answer,how do i print the smallest value and the associated key from the array?

Member Avatar for diafol
0
224
Member Avatar for LibraryCode

Hi all have this two files ,how do i use this file() function in my code to output the saved content of the file to the screen? index.php : <html> <head> <meta charset="windows-1252"> <title></title> </head> <body> <form action="processorder.php" method="post" > <table> <tr> <th>Item</th> <th></th> <th>Quantity</th> </tr> <tr> <td>Tires</td> <td></td> <td><input …

Member Avatar for diafol
0
144
Member Avatar for LibraryCode

What kind of solution is to avoid default statement in switch ,if it is possible?Regards

Member Avatar for ddanbe
0
178

The End.