569 Posted Topics
Re: > than or equal to 40 and less than or equal to 50 is D > 3.Marks greater than 51 and less than 70 is B You should really attempt this by yourself. I don't know how the grades will be inputted (Whether it being through a .txt file etc) … | |
Hello, I'm trying to convert some code from BASIC to C++.. But, I'm stuck on a particular part.. REM CREATE A MATRIX C WITH (COS(DN) , -SIN(DN)) : DIM C(NE, NS, 2) FOR N = 0 TO NE / 2 FOR E = 0 TO NE - 1 DC = … | |
Re: > his headfirst trying to code it but bumped into several hurdles and recently started a thread abo Hello, I'm kinda confused.. So, basically, you have three drop down menues that contain information that is stored inside a table, and, depending on which item in the drop down menu they … | |
Hello, I'm currently working on a project that basically reads some text and then performs basic Lexical Analysis on the text. I'm having a slight problem with overloading methods. So for example, I have a method that can read in the words from a txt file and another method which … | |
Hello, I'm looking for some advice (NOT CODING) on a project I'm hoping to start.. Basically, I'm hoping to develop some shell commands that work a tiny bit like Github (if you are familular with it).. The language that I want to use is C++.. Could anyone offer any advice … | |
Re: I started messing around with CSS and HTML when I was like 14 or so.. Then I saw a website that had a user system and thought "Wow, I wanna create that" so I began learning PHP.. Did that for a few years and finally created a Forum. Went on … | |
| |
![]() | Re: Hey, So let's say I have a list of names: $narray[0]="Alfred"; $narray[1]="Robert"; $narray[2]="Deepak"; $narray[3]="Teresa"; $narray[4]="Joshua"; $narray[5]="Chandni"; $narray[6]="Sadiq"; $narray[7]="Vladimir"; And with this list, I wanted to sort the names AND then print the names by ASC, or DESC then we need to handle what is being passed through the url (Take … ![]() |
Re: Hello, I dunno if this is what you mean, but I was thinking something like: <?php // connection information $select_query = "SELECT ent_id, mem_id, from_step, from_pos FROM step1_reentry WHERE status='E'LIMIT 1"; $select_result = mysql_query($select_query); if(mysql_affected_rows() == 1) { while($row = mysql_fetch_array($select_result)) { // retrun the relivent fields. // but do … ![]() | |
Re: I don't understand the question, so you are able to login, BUT, in index.php it doesn't do the user part (sesson)? Try this: <?php session_start(); include("connect.php"); //check, if user is loged in or not if(isset($_SESSION[['username'])) { //log in(member) echo " YOU ARE LOGED IN <input type='submit' action = 'logout.php' value='logoff'> … | |
Re: Urgh, haven't done any work with Wordpress in a while (Because it's just quite frankly horrible to work with) BUT, from looking at your code, you open up an if statement, as well a while loop. Where do you close these? so e.g. <?php endif(); endwhile(); ?> I think the … | |
Hello, I'm going to be working on Lexical Analysis, but, both in Words / Characters as well as Integer values. The application will also allow input from both Text files, as well as passing the data through arrays, or variables. The Numeric analysis will be different from the Lexical Analysis … | |
Re: Hey, What language are you creating the Application in? I haven't ever tried doing this; so this is basically going off theory. But, you could try locating them through their longattiude and lattidude and then using Googles API try and search for the nearest Cafe around this data. This is … | |
Hello, I'm working on an image-gallery type application and I have got the images to work, in that the gallery works and the image changes at the particular interval. BUT, I need a way to stop the images changing when you mouse over the event. Here is what I have … | |
Re: Hey, Yes, I would say it's safe, well, safer than using something like a cookie (Because a SESSION is server side). You could also store the users IP (or other validation checks) which are then checked everytime the data is then used. This could be one option. Also destroy the … | |
Re: Hey, Haven't ran it, so might not work.. But try this: <?php $errors = ''; $myemail = 'emailaddress@gmail.com';//<-----Put Your email address here. if(empty($_POST['contact[first_name]']) || (empty($_POST['contact[last_name]']) || empty($_POST['contact[email]']) ||empty($_POST['contact[phone]']) || (empty($_POST['contact[company]']) || (empty($_POST['contact[position]']) || (empty($_POST['contact[country]']) || (empty($_POST['contact[question]']))))))) { $errors .= "\n Error: all fields are required"; } $contact[first_name] = $_POST['contact[first_name]']; $contact[last_name] … | |
Hello, Quick question.. I'm trying to get the mean of a matrix (vector) now before I created a function that did it but I thought that it isn't really an effective way of coding. I've been looking at the accumulate function online and wanted to ask if this would work: … | |
Hello, I have this matrix: 0 0 1 0 0 0 1 0 1 1 1 0 0 1 0 0 and I need to print out the block with the coords: (2,1) so in this case: 1 0 1 0 I have tried this: for(int i=minRow; (i < 2); … | |
Hello, I'm trying to determine where a small matrix would fit inside a big matrix.. But, the small matrix is not in the big matrix so I need to see how simular they are.. The one with the lowest value, is the best fit.. So my difference function is this: … | |
This may sound really noobish, and I'm probably missing something really stupid.. But, I'm trying to calculate the differences between matrices, and the one with the smallest value (result) is the matching number.. But, for some reason my algorithm seems to be missing the smallest number and I can't figure … | |
Re: So basically try this: $success = mysql_query($final) or die(mysql_error()); echo "<table><tr>"; foreach($_POST['fields'] as $f){ echo "<th>".$f."</th>"; } echo "</tr>"; while($row = mysql_fetch_assoc($success)){ echo "<tr>"; echo "<td>".$row['FIELD_NAME']."</td>"; // $r['username']; as an example } echo "</tr>"; } echo "</table>"; I don't understand what "i" was doing there, or the foreach statement. Since … | |
Hello, I have been reading an article on comparing data, and have been given this code: for(i = 0; i < matrix1W; i++) { for(j = 0; j < matrix2H; j++) { diffSum += abs(matrix2->pData[(row+j)*backW+(col+i)] - marix1->pData[j*matrix2+i]); } } Now it works when using arrays, but, I'm using vectors, is … | |
Re: This question makes no sense at all, what do you mean by 'theme'? Why not just have a folder (Let's call it "themes") that stores all the documents to that particular theme then store the file path to that theme in the database? ![]() | |
Re: Hey, You could try using a header system (Let me explain): Basically, have a file called: header.php which contains all the content around the where the different pages will exist (so like index.php, about.php etc) and then on each page you can call the header.php. This meaning that if you … | |
Hello, I have 2 vectors, and I'm trying to search/scan the first vector for the second vector. Let's say I have this vector/Matrix: M1 = 0 1 1 0 0 1 1 1 1 0 1 1 0 0 0 1 M2 = 0 1 0 1 Then I will … | |
Re: Hey, This might be wrong, I haven't ran it.. But, if this is all in the same .php file, then surely you've already defined $result above? So when you do this: $query="select amount_id from payment where admission_no='$admission_no'"; $result=mysql_query($query); while($row = mysql_fetch_array($result)){ ** **// line 250 $amount_id=$row['amount_id']; } Maybe that is … | |
Re: Hey I don't know if this would work, but try it.. class Server { public: Server(); void SetMode(); protected: static const int MODE_NONE; static int SERVER_MODE; }; Also, in your class functions: // set the mode in your main void Server::SetMode(int theModeNone) { SERVER_MODE = theModeNone; } // then in … | |
Re: Is it me, or, when someone used to reply to a private message OR when there's new activity in a thread you own/participated in.. You get an email? | |
Hello, I'm having trouble with something.. I have a vector of doubles and I need to convert the vector to an unsigned char so then I can write the contents to a text file. I can do this when reading the data from a text file, just not from a … | |
Re: Hello, Are you trying to create these tables everytime you run the SQL query? | |
Re: Ahh, I remember installing something simular to this, using Ajax and then I built my own form where users can then add their own dates etc.. http://arshaw.com/fullcalendar/ It's quite good :) | |
Re: Where are you storing the information? | |
Re: Hey, Can you post the actual files where the errors are on? :) | |
Re: Hey, **Bold Text Here** Why are you repeating name in all of the fields you are trying to process? <label class="description" for="element_2">Username </label> <div> <input id="element_2" **name="element_2"** class="element text medium" type="text" **name="username"** maxlength="255" value="Hello World!"/> Could be your problem. Only have one name, in this case "username" then the PHP … | |
Hello, I'm trying to split a matrix (512x512) into blocks of (16x16).. Now I have managed to complete this for a small matrix (4x4) but when I try to implement it using the 512x512 it fails and doesn't produce enough blocks for the entire matrix. Here is the code on … | |
Hey, I'm doing a project and on the last little piece. It involved taking 2 matrices, splitting them into blocks and then checking whether the blocks are simular or not. If the blocks wasn't simular, then swap them /or/ create a new Matrix that holds the values of the second … | |
Hello, I need to store the cooridants of a vector, for example: If the vector was: 0 1 0 1 0 0 1 0 1 0 0 1 1 1 1 0 0 0 0 0 And this vector is then split into blocks, I need to store the the … | |
Hello, I have a 512x512 matrix and I need to split it int 16x16 blocks.. How many blocks will I therefore produce? I've tried 8 blocks of 16x16 but this does not look right when outputting the complete matrix.. Any ideas? Thanks :) | |
Re: Ehh? I'm guessing you know the names of these users? I would use sessions: <?php // if sucsessfully signed in $_SESSION['username'] = $username; switch($_SESSION['username']) { case 'bob': // redirect for bob break; case 'harry': // redirect for harry break; default: // default redirect } ?> ![]() | |
Re: I kind of understand what you want to do.. Is the field a required field? In which, the user MUST enter the data for the email to send? <?php if(!isset($_POST['address'])) { // Create a body WITHOUT the data $body = "This is what the email will say without the data"; … | |
Hello, Wondering if you can help me.. I have a variable, that each time needs to multiply by 2 (I know, it sounds simple.. I'm probably being an idiot) but it works like this: LOOP 1 offsetX = 0; offsetY = 0; LOOP 2 offsetX = 2; offsetY = 0 … | |
Hello, I'm currently studying and sometime soon will have to do a final year project (which runs through the year).. Now I've been looking at stuff om image recognition and although it interests me I want to do some kind of signals or signalling. My idea is to capture the … | |
Hello I need some help, I'm trying to output something to a text file (.htm) which will then display the data that is being generated in the C# program.. Now the problem is, whenever I try to replace something, it doesn't work. Just replaces it with "System.Char[]" Here is the … | |
Hello, I have two paragraphs on my page and I need to draw a line between them. Now, I currently store the positions of the two paragraphs inside a database and I have access to them, I just don't know what to do from here. Some people have suggested I … | |
Re: Confused.. Do you need to design it? (Pseudocode) Or actually develop it? | |
Hello, I have a major problem with a Correlation algorithm I'm trying to implement.. Basically, when I have two small matices: Matrix 1: 0 1 0 1 1 1 1 1 1 1 1 1 0 1 0 0 0 1 1 1 0 0 0 0 1 1 1 … | |
Hello, I have 2 massive matrix's and I need to compare one matrix with another.. Now, I have come up with a solution that takes a 5x5 block of the matrix1 and compares it with a 5x5 block of matrix2, this happens until the end of both matrix's.. I'm confused … | |
Re: Haven't really looked at this much (Tired!) [code] //Game Of Life Assignment //Dylan Metz #include <iostream> #include <string> #include <fstream> #include <cstring> using namespace std; int main() { const int ROWS=12; const int COLS=30; char file[ROWS][COLS]; string filename; cout << "Please enter a filename:"; cin >> filename; cout << "File: … | |
Hello, I need some help please.. I need to write a recursive predicate in Prolog that subtracts two numbers until number 2 is higher than the result. I have completed the logic in C++: [code] #include <iostream> using namespace std; int mod3(int a, int b) { int intResult = a-b; … | |
Hello I'm making an application that reads a series of values from a text file and then converts it to a bitmap image. Currently, I'm using arrays, but, deciding on a particular length is annoying. I have been reading a few tutorials and i've read a lot about using vectors, … |
The End.