Sign up to connect with phorce and gain access to their complete profile
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    Replied To a Post in 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 …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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 .= …
  • Member Avatar
    phorce

    Replied To a Post in PHP Call to undefined function

    Have you made sure that the file is being included?
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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; } …
  • Member Avatar
    phorce

    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
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    Replied To a Post in open source

    Please define "Rubbish" in terms of what you actually get, please.
  • Member Avatar
    phorce

    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" << …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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]` …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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] …
  • Member Avatar
    phorce

    Replied To a Post in undefined offset error in php

    You need to post this in the forum "PHP"
  • Member Avatar
    phorce

    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' …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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 …
  • Member Avatar
    phorce

    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 …

The End.