-
Created PHP Calculating total depending on rates
I'm having the following difficultly: I have a table `rates` which contains the follow: -> id -> rate_from -> rate_to -> price A `user` can have many rates, and for … -
Began Watching PHP Calculating total depending on rates
I'm having the following difficultly: I have a table `rates` which contains the follow: -> id -> rate_from -> rate_to -> price A `user` can have many rates, and for … -
Created Area 51?
Hi all, I think I might have missed something, I have been away for sometime. I was visiting the site and noticed that I had access to area 51. But … -
Began Watching Area 51?
Hi all, I think I might have missed something, I have been away for sometime. I was visiting the site and noticed that I had access to area 51. But … -
Began Watching PHP Call to undefined function
Function is called in my functions file. function Get_Favourites($fields){ $member = $fields['fv_member']; $sql = "SELECT * FROM favourites "; $sql .= "WHERE FV_MEMBER='" . $member . "' "; $sql .= … -
Replied To a Post in PHP Call to undefined function
Have you made sure that the file is being included? -
Began Watching c++ static member
I have a approximate following class class ClassA : public ClassB { void HandleMessages(const u8 *pP, const u16 nMsgBodyLen); static std::map<std::pair<u32, u32>, CreateSessInfo> m_mSessionId2CCRNum2DefaultBearerId; }; When trying to access the … -
Replied To a Post in c++ static member
You have not declared the method prototype correctly in your class. static std::map<std::pair<u32, u32>, CreateSessInfo> m_mSessionId2CCRNum2DefaultBearerId; Shoudl be: static std::map<std::pair<u32, u32>, CreateSessInfo> m_mSessionId2CCRNum2DefaultBearerId() { // Logic here return map; } … -
Began Watching how to solve this error
<?php require_once '_includes/_coo.php'; $id =$_post['user_id']; //error here -> line 4 // sending query mysql_query("DELETE FROM example WHERE BookID = '$id'") or die(mysql_error()); header("Location: index.php"); ?> error in line 4 -
Replied To a Post in how to solve this error
Your problem does not seem like it is on line "4", more of the line above, below. You have not specified the error, what does the error say is the … -
Began Watching Jagged Array Problem
Hi, I'm new to c++ but I'm having a go trying to create a jagged array int** DATA = new int*[10]; DATA[0] = new int[100]; //this works DATA[1] = new … -
Replied To a Post in Jagged Array Problem
Assuming that it is what I think you are doing: int** DATA = new int*[10]; // This has now got 10x0 This initialises a 2D array called `DATA` with 10 … -
Began Watching Methods in Class
Good day, I've realized hierarchy of classes: Point -> LineSegment. It's necessary to realize the following methods of the class: moving, stretching, rotating, turning, change on an axis. I'm trying … -
Replied To a Post in Methods in Class
Well, this function: bool (LineSegment &ls) { int dist; ls.p1 = ls.p1 + dist; ls.p2 = ls.p2 + dist; } If you look at a method, in terms of some … -
Began Watching open source
hi all i have ekiga open source code that i want to modify but when i open the downloaded code in the text editior all i get is rubish i … -
Replied To a Post in open source
Please define "Rubbish" in terms of what you actually get, please. -
Replied To a Post in Lottery using arrays
No, you would just create a `rand` for the users, you would input the user: int player[5]; for(int i=0; (i < 5); i++) { std::cout << "Please enter number" << … -
Replied To a Post in How Artifical Intelligence Works or Is Created?
@mike I hate Hidden Markov models, but, glad you brought it up.. Surely, the Hidden Markov model (in any case) is predicting the next step, so taking the observations, from … -
Began Watching Lottery using arrays
I have to make a program that simulates a lottery. The program should have an array of 5 digits named winningdigits, a randomly generated number in the range of 0 … -
Replied To a Post in Lottery using arrays
Hey, what the problem is asking you is to count the total number of times an element exists inside an array. Assume the following: `A = [1, 2, 3, 4]` … -
Began Watching How Artifical Intelligence Works or Is Created?
Hi! I want to know how artificial intelligence system(s) work(s)? I want to know whether artificial intelligence depends upon software i.e special type of software having special algorithms or it … -
Replied To a Post in How Artifical Intelligence Works or Is Created?
Hello, Ateficial intelligence is a broad scope, and does not just depend on the algorithms and software based solutions as you're pointint out. There are other aspects, in terms of … -
Began Watching undefined offset error in php
Pls Clarify the issue My Function : function makeCombination ($my_arr, $k){ reset($my_arr); $enne=count($my_arr); //echo "$enne"; $num_comb=$this->numComb($enne,$k); //echo "$num_comb"; $combinations=array(); $pos=array(); for( $i = $k; $i > 0; $i--) { $pos[$i] … -
Replied To a Post in undefined offset error in php
You need to post this in the forum "PHP" -
Replied To a Post in mysqli_query(): Couldn't fetch mysqli
@down-voter Why did my post get downvoted for suggesting an improvement? I.e. $query="INSERT INTO 'users' (`firstname`, `lastname`, `username`, `confirmusername`, `password`, `confirmpassword`, `email` ,`confirmemail`) VALUES ('$firstname', '$lastname', '$username', '$password', '$confirmpassword', '$email' … -
Began Watching creating a tune..
Hello, I am trying to create a tone, then another tone using this code. It currently only plays one of them. Is there something missing or am i going about … -
Replied To a Post in creating a tune..
Please do not create a new topic with the same question; this can be classed as spam and your question will be deleted. What you are doing here is using … -
Replied To a Post in mysqli_query(): Couldn't fetch mysqli
`$connection = mysqli_connect("host", "username", "password", "mybd") or die("Error!!");` Try this. You need to connect to a database, before you can do anything. The rest of your code looks to be … -
Replied To a Post in creating a tune
So, as I said in my first post. If you increase the total number of `n` values, then, you would therefore increase the total size of the audio file.. `n … -
Replied To a Post in mysqli_query(): Couldn't fetch mysqli
Yes lol. You need to give it the connection statement. Try this. http://uk1.php.net/mysqli_connect -
Replied To a Post in creating a tune
Try reading this: http://debbiebaker.wikispaces.com/file/view/example04_annotations_e.pdf/437832792/example04_annotations_e.pdf You might understand how things work better. -
Replied To a Post in mysqli_query(): Couldn't fetch mysqli
Well, in this statement: `$result = mysqli_query($connection,$query);` where do you define `$connection`? -
Began Watching mysqli_query(): Couldn't fetch mysqli
Hiy guys alot of you have been brilliant over the past few days. I'm creating my own website and I want to let users register and log in, into the … -
Replied To a Post in mysqli_query(): Couldn't fetch mysqli
Have you tried: $query="INSERT INTO users ('firstname', 'lastname', 'username', 'confirmusername', 'password', 'confirmpassword', 'email' ,'confirmemail') VALUES ('$firstname', '$lastname', '$username', '$password', '$confirmpassword', '$email' , '$confirmemail')"; ? -
Began Watching creating a tune
Hello everyone, i am going to create a small tune though i have no idea how to go about it. I currently have a sine wave that plays for one … -
Replied To a Post in creating a tune
What do you mean by "Tune", what it looks like you're doing is creating a sine wave at a particular frequency Htz. Where do you declae the sampling rate? If … -
Began Watching Object Oriented Pokerhand constructor
I have been racking my brain for a bit on this and just can't figure it out. The book "Object-Oriented Programming C++" by Joyce Farrell pg382 exercise 13. They're wanting … -
Replied To a Post in Object Oriented Pokerhand constructor
First off, your question is quite confusing. I can't gather what it is what you're trying to do, let me try with a different example, see if it makes sense … -
Replied To a Post in Allow only letter inputs.
I'll give you an idea: initialise (char) c; do -> input c -> while (c IS NOT 'a', OR 'b', OR 'c') -> print "Yes I did it!!" -
Began Watching Allow only letter inputs.
How can i create a input that only allows the letters a b c d The console will ask to please enter a letter. And they can only enter the … -
Replied To a Post in Allow only letter inputs.
I'm sure I've seen someone else ask this question on here, I might be wrong! Please show that you have at least tried :P -
Began Watching error with my php code when insert into database
hey guys so this piece of coding is simple and straight forward but theres something wrong with it and its bugging me out because i can't figure out what the … -
Replied To a Post in error with my php code when insert into database
Try this: $add=mysql_query("INSERT INTO contact VALUES ('','$salutation','$fname','$lname','$houseone','$housetwo','$housethree',$tel','$off')") or die(mysql_error()); -
Replied To a Post in c++
You still don't explain what the question is. What is wrong with this? What do you want to do.. We cannot help you, if we don't know what it is … -
Began Watching c++
pleas ehelp with this program im clueless in what to do for it • The program will ask three questions 1. What is your sex 2. Do you work in … -
Replied To a Post in c++
What is the question? Your conditional statement is wrong. Look on line 15, why would you need `;`? -
Began Watching SendInput API (math)
I'm creating some automation utils. Part of it is automating mouse input. I think I have my math wrong because the X coordidnate is incorrect at certain points for example … -
Replied To a Post in SendInput API (math)
Because not many people have access to this library, please could you specify some expected input and outputs? Also, what is the data type of `MInput`? -
Began Watching Email Validation Broken; Accepts .cop as Valid
I am working with a form validation script; I am testing it first and all seems to work fine except for the email validation. This is a snippet of the … -
Replied To a Post in Email Validation Broken; Accepts .cop as Valid
I believe, from what I can see is that the validation requires a `.` followed by between two or three characters `(\.[a-z]{2,3})` so email addresses like: `test1@gmail.com` would valid true, …
The End.