Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~11.2K People Reached
Favorite Tags
Member Avatar for ebc3142

Hi, I have a "check_login" function which checks whether the user is logged in or not and if it isn't, redirects them to "login.php". When I try going to the page whilst logged in, it displays as it should. However, when I'm logged out and I try it, instead of …

Member Avatar for lisandroivan
0
2K
Member Avatar for ebc3142

I'll just start by giving some context to the problem I'm trying to solve. Simply put, I'm trying to code an Arduino to accelerate a DC motor at a user-specified acceleration (encoder counts/sample/sample) Before I can apply a PID filter to correct the velocity, I need to determine the theoretical …

0
72
Member Avatar for ebc3142

Hi, I'm developing an application which needs to check user-inputted credentials against a Mysql database running on a web server. Does anybody know how I could communicate between c++ and a PHP or Ruby on Rails page and then parse the results back to the client? Many Thanks

Member Avatar for LastMitch
0
196
Member Avatar for ebc3142

Hi, I've succesfully created a new project in Python Django, but when I try to run the server using: python manage.py runserver I receive this error: Validating models... Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x10166b250>> Traceback (most recent call last): File "/Library/Python/2.6/site-packages/django/core/management/commands/runserver.py", line …

Member Avatar for LastMitch
0
909
Member Avatar for ebc3142

Hi, I'm using this SQL statement to retrieve Value and Date which will then be plotted on a graph: SELECT DISTINCT assets.SEDOL,assets.Quantity,stock_names.value,stock_names.Fileid,date_header.dateid FROM assets,stock_names,date_header WHERE assets.Client_ref = '$clientref' AND stock_names.SEDOL = assets.SEDOL AND date_header.fileid = stock_names.fileid I'm also selecting Quantity. Instead of having to multiply out the arrays, how can …

Member Avatar for AleMonteiro
0
230
Member Avatar for ebc3142

I'm using this PDO query to fetch all the data I need from Value and dateid: $pdo = new PDO('mysql:host=localhost;dbname=contisec_portal', 'root', ''); $date = date("o-m-d"); $stmt = $pdo->query("SELECT stock_names.Value,stock_names.Fileid,date_header.dateid FROM stock_names,date_header WHERE SEDOL = '$stocksel' AND date_header.fileid = stock_names.FileID"); Does anybody know how I can sort the two columns into …

Member Avatar for ebc3142
0
142
Member Avatar for ebc3142

Hi, After having come to grips with PHP, I've decided that it's time to move onto a more sophisticated language for building web applications. I've chosen Python, utilising the Django framework. Could somebody provide me with the software I will need for writing the code? My first guess would have …

Member Avatar for LastMitch
0
215
Member Avatar for ebc3142

I'm trying to use this code to populate my drop down menu from a mysql table: <select name="fileselect"> <?php $pdo = new PDO('mysql:host=localhost;dbname=contisec_portal', 'root', ''); $stmt = $pdo->prepare("SELECT dateid FROM date_header"); $stmt = $pdo->execute(); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { echo "<option value='" . $row['dateid'] . "'>" . $row['dateid'] . "</option>"; …

Member Avatar for diafol
0
6K
Member Avatar for ebc3142

Hi, I'm trying to insert the contents of this this file (assets.txt) into my database: B02W0Y2^EUROSTAR LTD^35.09^^ B02V64S^NORTHERN ROCK^21.97^^ B06N3Q2^MOTOR OIL SAPA^7.24^^ B05WF50^COLT TELECOM GROUP^20.29^^ B03R2SA^XEROX CAPITAL^35.65^^ B09G3SD^COREALCREDIT^12.10^^ B04F5GD^ULSTER BK LTD^16.46^^ B02DH5H^EUROTUNNEL FINANCE^53.24^^ B05D3WK^BRADFORD & BINGLEY^18.07^^ B05DGEF^SKIPTON LTD^4.50^^ B07DHX4^EBAY INC^46.55^^ B08VEW1^FURSTENBG CAP^86.36^^ B06HS34^LBG CAPITAL^54.22^^ I'm using this code: mysql_connect($mysql_hostname,$mysql_user,$mysql_password); $sql …

Member Avatar for cereal
0
148
Member Avatar for ebc3142

Hi, I have these methods in my user class which check whether a username already exists and if not, inserts it into the database: //This function checks to see if the username entered already exists Private function check_user_exists() { $stmt = $this->_db->prepare('SELECT * FROM client_login WHERE Username = ?'); $stmt->execute(array($this->_username)); …

Member Avatar for veedeoo
0
290
Member Avatar for ebc3142

Hi, For a homework assignement, I'v been asked to write a small school administration system. Currently, the user is able to enter a new student and their age which is then stored in a text file. This all works fine but now I need to load the contents of the …

Member Avatar for Morten Brendefu
0
621