• Member Avatar for ryantroop
    ryantroop

    Began Watching Splitting array seperatley

    Hey guys, I have this forloop reading an array: $data = $_POST['data']; foreach ($data as $array) { foreach ($array as $key=>$prices) { $message .= ''.$prices.' '; } $message .= '<br>'; …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Splitting array seperatley

    I am a little confused as to what you are trying to do... You have the solution to your question in your original code, it seems. Can you show an …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching Correct way to do this?

    This script works fine, but there's a part I'm not sure if there's an easier / better way to do it. The part I'm talking about is commented in the …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Correct way to do this?

    I also question the need for making a file for each email sent, especially by name of the sender.. If you have database access, you should probably use it. You …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching phpmyadmin not displaying the symbols.

    when ever i am inserting any of the symbols like cosec^2Ɵ (cosec power 2) it will display inline. i won't that to be displayed with raise to 2 or subscript …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in phpmyadmin not displaying the symbols.

    Is your table column a varchar utf-8? When you set it up, did you use this syntax: `myColumn varchar(10) character set utf8`
  • Member Avatar for ryantroop
    ryantroop

    Began Watching WRONG SQL help

    Hello i want to make like button so i need to `INSERT`, `SELECT` and check does already exists the record i have this code: **likes.php** <?php require 'connect.php'; require 'core.php'; …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in WRONG SQL help

    Looks like StefanRafa is not a valid column name in your table kladilnica Try adding quotes around '{User}' on line 18.
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Can someone check this coding out for me

    Refresh *may* have lost your post data. Any number of things can be causing you trouble. Without seeing all of your code and knowing our work-flow, it's impossible to give …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Can someone check this coding out for me

    So you are getting the result of this line: `<?php echo $fetch_info['check_list'];?>` The value in there is an array. Instead of echo, try `var_dump($fetch_info['check_list']);` to see how you need to …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Can someone check this coding out for me

    Good? I think... ? So did this solve your problem?
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Can someone check this coding out for me

    Ahh.. It has been a while but if I recall, header() does not implicitly pass POST variables to the redirect. Since you are using a database, why not use it …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Can someone check this coding out for me

    Im very confused as to how these pages are related.... On the one page, you have a form that posts to itself (the same page), and inserts into the database. …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching Can someone check this coding out for me

    i have followed a tutorial for a working checkbox group after failed attempts with others. On test file it was working but when i add it to my site i …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Can someone check this coding out for me

    I believe you capitalized "Submit" on line 10: ` if (isset($_POST['Submit']))` Make that lower case, and see if that helps.
  • Member Avatar for ryantroop
    ryantroop

    Began Watching how to add css class to asp tags

    how to add css class to asp tags
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in how to add css class to asp tags

    Well.. since no one else is saying it... ASP and CSS are completely independent technologies. ASP is a server side language that *CAN* produce HTML. In that HTML, since you …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching Different errors for same Function.

    def list_function(x): x[1] = x[1] + 3 return x[1] n = [3, 5, 7] print list_function(n) It shows following error when i run the code for multiple times. 1. Oops, …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Different errors for same Function.

    You are not asking the function to return the set, you are asking the function to return the second element of the set. (return x[1]) If you want the set …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Varchar can not save for PHP While-Loop

    Also, as a matter of practice and good coding, please don't use `"select * from..." ` with "production" code. It's slow, returns way too much data most of the time, …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching Varchar can not save for PHP While-Loop

    I have two table : buy_temp & buy_detail, i need transfer data from buy_temp to buy_detail . For the first step i will get data from buy_temp like this : …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Varchar can not save for PHP While-Loop

    Im not sure what you are asking.. If the column is varchar, what is being passed in as the value? Is it NULL? A number? Are you getting a SQL …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching How to add comments live using ajax?

    Below is a php code for inserting comment to a post, It works fine now I want to add ajax code to add comments live (without page being refreshed). I …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in How to add comments live using ajax?

    There are multiple tutorials on this. Use google - "php and ajax" The W3Schools one is pretty easy to follow, and many others will help you learn what you need …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching MySQL timeout

    My website show below error. Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET/@@@@@@.net/ Reason: Error reading …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in MySQL timeout

    It's likely something you will have to contact the host to help you with. Most of the time, shared VMs will have a hard cap limit on what they can …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching removing wrapped tags not working javascript

    If my slected text is wrapped in bold or iltalic or pre tag and then if i click on the revert button it should remove the tags around the selected …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in removing wrapped tags not working javascript

    Im sorry if this is not helpful, but why not just use tinyMCE? They have already gone through all the headaches that you are currently dealing with. Ranges are weird, …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching Need help to insert multidirectional array in MySQL with php

    Here is the deal, working on a card game using php mysql, I have a very simple way of shuffling the deck and I use array_chunk() to divide the deck …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Need help to insert multidirectional array in MySQL with php

    Well... you have strings... you can store those strings and associate them to a player. You have a comma delimited list of card numbers. You can have a table that …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching How to count valid clicks for an ad?

    Hello everyone, I want to build an advertising system like AdSense on my website. I want to count only clicks that are not from the same user. Because I don't …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in How to count valid clicks for an ad?

    You can use a combination cookie/ip as well as javascript localStorage. You can hold a session in localStorage that will re-initialize regardless of cookie or ip change. However, localstorage can …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching just help

    I'm doing a second year student in computer and information sciences and it is the first time for me to do a project in c++ so I need help . …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in just help

    As a second year CS student, you should know code. You know your types, and you likely are aware of objects and their implementation. If you have written in any …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching C programming

    How would I implement the rand or the srand statement into this C Programming language. I have been reading about these 2 statements but I am a bit confused still. …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in C programming

    including stdlib.h and time.h... srand (time(NULL)); int iRand = rand() % 20 + 1; //give me a random number between 1 and 20 More info can be found here: http://www.cplusplus.com/reference/cstdlib/rand/ …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching Inserting thousands of records into a database

    I'm trying to load dxf files CAD into a database for searching. Some of these files are huge with hundreds of thousand of separate entites. I've separated the file into …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Inserting thousands of records into a database

    I have never used SQLite, so I cannot comment on that one - however, if you are going to be using an internet based system of data management, MySQL is …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Updating status updates on both client side and user side

    For some reason I cant edit, so... A JavaScript socket* To expand, you would still use polling for older browsers and use the socket for newer ones.
  • Member Avatar for ryantroop
    ryantroop

    Began Watching Updating status updates on both client side and user side

    HI , I am creating a social media site, but getting stumped on updating the status comment boxes. Currently, when a user post a comment to a status it updates …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Updating status updates on both client side and user side

    For modern browsers you can look into making ajs socket but you will need to write a custom socket server based on the spec (rfc).
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Javascript look for a name-value in an object

    I had a typo on line 10. It should read : var myFriends = [ {firstName: "Bertrand", lastName: "Michel"}, {firstName: "Michel", lastName: "Bertrand"}, {firstName: "Henri", lastName: "Michel"}, {} ]; //this …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Javascript look for a name-value in an object

    In your example, myFriends is an array of objects. (Ln. 1) Your iteration is for object notation on Ln. 8. the for ... in construct only works on "objects" that …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching Javascript look for a name-value in an object

    Hello. My question is very basic but I can not find/understand the answer anywhere. How check if the name-value "name": value in an object. I know that with Object.keys() method …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in Javascript look for a name-value in an object

    You cannot, in any fast way, compare objects directly in JS. The only way to check values is to iterate through the object and compare values directly for what you …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching unexpected 'if'

    Hello, Can anyone help me fix this error? step_3.php echo '<option value="'.$_SESSION['application']['year'][$i].'"' .if($y = $_SESSION['application']['year'][$i]).{'"selected"; >'}.$y.'</option>'; Parse error: syntax error, unexpected 'if' (T_IF) in C:\xampp\htdocs\pergas-responsive\include\ars_application_submission_step_3.php on line 125
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in unexpected 'if'

    You... Have an unexpected if.. You can't concat with a logical step like you are doing... And if you read your code closely you will see you are not actually …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching not inserting mysql query into the database

    Hello, I am trying to create a little bit tricky part I thought I would be sucessfull but it didn't happend. Okay so I created a form having multiple field …
  • Member Avatar for ryantroop
    ryantroop

    Replied To a Post in not inserting mysql query into the database

    So.. not gonna lie.. but your echo's really hurt my eyes and my head.. I don't understand their purpose... for example, this line: `echo $insert = mysqli_query($connection, "INSERT INTO packages …
  • Member Avatar for ryantroop
    ryantroop

    Began Watching calculation in javascript

    hi im new to javascript and im attempting it for the first time. im using framework 4.5, asp.net, c#. i need help in with the javascript. i need calculate quotation …

The End.