64,152 Solved Topics
Remove Filter ![]() | |
I have a jQuery post problem. I am sending information from a form with a jQuery click function. [code] $("#donateButton").click(function (){ $.post("creditCardAuthorize.php", { amount: $('#amount').val(), description: $('#donation').val() }); $('#rightContent').html(ajax_load).load('content/creditCardAuthorize.php'); }); [/code] The problem is that on some browser it goes to the correct page, but on others it goes to … | |
I the found the link below when I was researching how to get a random record for a database. This article is about speed in retrieving a random record and I found in my test that speediest solution brought about the most duplicates. [url]http://akinas.com/pages/en/blog/mysql_random_row/[/url] I am hoping some one has … | |
I am trying to add a secondary level to Chris Coyer Magic Line menu. I have made some progress but it is not complete. Right now I am stuck on 3 spots to make it complete. The placement of the secondary menu, the overlay of the secondary menu and the … | |
My memory informs me that this is the third time I have tried to upgrade to a 5.3 version of PHP and failed. As best as I can tell, I am not downloading the correct combination of PHP and most likely the Apache server to get a working developing environment. … | |
Hello. I would like to ask on how to make a multiple of line for label control. I want to create the code, where when the user key in the value in textbox control, it will display on a multiple line.   Or it has any other … | |
hya im following a tutorial through a video and im having issues in the following line its showing a error in my editor $pm_ui .= '<button id="pmBtn" onclick="postPm(''.$u.'',''.$log_username.'','pmsubject','pmtext')">Send</button>'; see full code below including this line if anyone can help be much appreciated <?php // Protect this script from direct url … | |
Can I ask on how to use the goto statement because here in my program I am using Function and inorder to go back from the top I use goto statement.. Why isn't it working?? #include<iostream> using namespace std; void rankE(){ cout<<"Rank: E "<<endl<<endl; } void rankD(){ cout<<"Rank: D "<<endl<<endl; … | |
I have database 'website' having fields - title, url, snapshot to collect information of websites . Users will fillup the form so, There is no file input for fileupload. Form have inputs for title & url. How to generate snapshot using 'imagegrabwindow' or other php functions for given url? How … | |
Hi all, I am trying to populate text on my website from data stored in a MySQL database. I have this script before the <head> of my HTML to establish the connection: <?php $username = "USERNAME"; $password = "PASSWORD"; $hostname = "127.0.0.1:3306"; //connection to the database $dbhandle = mysql_connect($hostname, $username, … | |
i am trying to get to modify this script . i have a form that returns the longditude and latitude from google map api. I am trying to insert that data into a new form. With a lot of uyahoogling i made some progress but canyt nail this down or … | |
Dear Sirs, I have two tables (Clients and Country), my below php code is for creating a new client with a dropdown box from country to insert the id_country into clients table. When click add new nothing added to table clinets: any help please: <?php $jsFile = 'newClient'; // Add … | |
i would like to know if php can replace javascript as a client side script. one can use javascript to do all kinds of things like computing values in textboxes and check them for errors and so on. is it possible to use php in its stead? lets say i … | |
I have been hitting a brick wall with this program. I am new at c++ and the text only shows really really easy examples. the deposit function works fine, but i am running into problems with the checking function and doing the final output. 1. when i type in 'C … | |
Hello ! I have a task that is difficult for me to handle. The task is: Create recursive function that can be generate a string of length N (N <= 100), formed by the letters 'A', 'B' and 'C' and does not containing two identical adjacent substring. For example: enter … | |
Hi I just wanna know what is wrong in my program I'm a little bit confused using FUNCTION... Thank you... #include<iostream> #include<cstring> using namespace std; struct Name{ char* names; int grades; }; int main(){ int a, Jo; Name John; Name Alvin; John.names; John.grades; Alvin.names; Alvin.grades; std::cout<<"Student Name: "; cin>>John.names; cout<<endl; … | |
Is there any way to reflect the value of n in cost function globally . so that the value of n in getLeastCost function with be changed instead of n = 0 class TheShuttles: def getLeastCost(self,baseCost,seatCost,cnt): n = 0 def cost(x): n = sum( m / x + (m % … | |
I'm trying to change the form icon on an app I'm creating but I've forgotten how. Does anyone remember how to create a winform icon from an image file (i.e.- jpeg, bmp, etc)? | |
Im trying to develop a Android game, the problem is that after like 2 min of playing my game start to lag until it freeze forever I wont put my code cuz i dont want to bother that much and its large and i dont know even where the problem … | |
Hello, Currently I am using my computer as a webserver, as I own an IP I have made the config to access it from outside. So now I can access my php sripts via http://MY_PUBLIC_IP:PORT/site.php The weird thing is that I cant get the visitors IP This script is working … | |
Value of set(sum(french,())) = set(['mardi', 'pass\xc3\xa9', 'voyez', 'envoy\xc3\xa9', 'membres', 's\xc3\xa9lection', 'peut', 'remplissaient', '\xc3\xa9t\xc3\xa9', 'prononcent', 'travaux', 'd\xc3\xa9terminent', 'trop', 'lib\xc3\xa9raux', 'd\xc3\xa9clar\xc3\xa9', 'dont', 'le', 'mais', 'la', '(', ',', 'internationales', 'Les',.....]) tm = {('se', 'est', '-', 'il', 'pass\xc3\xa9'): [phrase(english='has happened', logprob=0.0)], ('pos\xc3\xa9e',): [phrase(english='asked', logprob=-0.261521458626)], ('le', 'cours', 'de', 'les', 'deux', 'prochaines'): [phrase(english='the next two', logprob=0.0)], … | |
Hi everyone :)))) there is a problem here !this code should draw a rectangle whenever I presse on the mouse ! but actually it doesn't do that !! when I execute the prog. it gives me the frame window ! but when I presse the mouse ,it should draw a … | |
Hi guys. I have a date in format "2015-04-04 10:50" (yyyy-MM-dd hh:mm) I'm having a tough time finding a way to alter this date if a condition is met. The condition is not the problem, I can get a true of false but the conversion is proving difficult to fathom … | |
!using python 3! first of all, i am a rather noobish python coder, so please dont make the answers too hard to understand. I was trying to get an input from the user with raw_input(), that input had to be the same as a predefined string, i came at: x … | |
I am facing problem for getting the value of after decimal <?php $a=5.4243423; $c = round($a,1); echo $c; ?> Out put is 5.4 How to get 4 value? Any body help me to get after decimal value | |
I really don't know what the problems occurs inside this coding. I do not have any idea what this error means. If anybody can help me I would be so grateful. #include<string> #include<iostream> #include<stdlib.h> using namespace std; int num=1; int counterforanalog=0; int counterfordigital=0; int counterforsmartwatch=0; class watch private: int watch_id; … | |
Hello all, I was hoping to figure out a code that could find out whether a point was inside a group of points. I already noticed that I could create a convex hull from the points with the scipy.spatial.ConvexHull module. What I'm trying to do is then find a way … | |
Is it possible to let an overridden method from a base class to return the type of the derived class? What I mean is: namespace test //with some "pseudo" code { class Base<T> { //fields ... //properties ... // ... public virtual Base<T> BaseMethod() { //return new Base<T>; } // … | |
Hi guys, does anybody know how to download a MVC project from GitHub and get it to work in Visual Studio? I'm following a MVC tutorial and these are the various modules of the projects https://github.com/jongalloway/MVA-Introduction-to-ASPNET-MVC and I'd like to get them out of there, on my computer and use … | |
Sessions wont work on ipage, I know there are post like this all over internet but i did try all the answers and nothing seems to work i tried this.. session_save_path("your home directory path"/cgi-bin/tmp); session_start(); tried changing the value of session.save_path from php.ini session.save_path = "N;/path" To this session.save_path = … | |
I cant get my intended result I want my program to display can anyone help me. The program is to print the workers name who are listed in the struct and if you don't enter any of those names I should print worker name doesn't exist. Can someone tell me … | |
I am in my first semester of computer program and this my third project. I am taking this class online so I do not have the in-class benefit of working with others. I have completed all of the code and the program works the way I believe it should. I … | |
Im sure this question has been asked before but i cannot seem to get what i need working right for me. i need this ajax to process my php form, i got that for, at least i think. I wrote some ajax to do this and it WILL at least … | |
I thought it would be fun to code all the different ways to show Hello World on the display. Let's start simple ... `print("Hello World")` Can anybody print out "Hello World" vertically? | |
Hello i 'd like to post something because i believe its right but for some reason it doesnt work... I d like to make a link that gets the ID from the url and then displays data the url returns as wanted e.g. localhost/rove/login/php?showallphoto=536 so they is no need to … | |
I tried to make a way to let the user choose to which piece of the program it would go, i first tried *for* but later went and used *if*, this is the code: while True: whichcode = 1 #set the variable for the first time. while True: if whichcode … | |
Hello, I have a question in my mind whene ever we create a login page why we store the variables in $_SESSION why is this done so my senior developer told me when recently i was creating cms in which I created 1 admin and 1 user page he sent … | |
I need a secondary review of the following script to help identify an issue of inconsistency with a function. The code allows me to perform a live search on a specified content. If a match is fount, it allows for me to click on a link and toggle() the content … | |
I am not getting the totalapps any body help me <?php $event_time = "9:30 am"; $end_time="11:00 am"; $event_length = 4; $dtime_1 = new Datetime($event_time); $dtime_2 = new Datetime($end_time); $diff = $dtime_1->diff($dtime_2); $hourone=$diff->format('%H'); $minuteone=$diff->format('%I'); $hourtotalmin=$hourone*60; $totalmin=$minuteone+$hourtotalmin; $totalapps=$totalmin/$event_length; echo $totalapps; ?> | |
!python3! so i was trying to get a for loop to work to get a program to choose which part of the code it had to run, this is what i have: while True: whichcode = 1 #set the variable for the first time. for whichcode == 1: print code … | |
A) Create an associative array called cars. The array should hold information about some cars. Each array key represents the car registration number and its associative value contains a numeric array of size 4 that holds car model name, mileage, number of accidents and car colour respectively. [Create at least … | |
Hi all, can i store multiple data items inside a doubly linked list? is this valid? struct node { int marks; int regno; struct node *next; struct node *prev; }*start; If this is valid, how can i assign values to the individual data items? next->marks=5; next->regno=3456; will this work? | |
Hi guys, I have a form called frmSales, with two textboxes and a list box. what I want to do is to fill the listview with product description from txtDescription and product from txtPrice when I click the add to cart button. the listview should also be able to add … | |
function getAllReferrals(){ $sql = "(SELECT r.referral_date,c.lastname,c.middlename,c.firstname,c.gender,r.presenting_problem,e.employee_nickname AS nickname FROM CLIENT c INNER JOIN referral1 r ON c.referral_id = r.referral1_id INNER JOIN assign_psychotherapist ap ON ap.a_referral_id = c.referral_id INNER JOIN employee e ON ap.a_psychotherapist_id = e.empid WHERE r.referral_status ='Assigned' OR r.referral_status ='Accepted' ORDER BY referral_date DESC ) UNION ALL (SELECT r.referral_date,c.lastname,c.middlename,c.firstname, … | |
Hi , how to add numbers in specific count of rows in Datagridview like in this[Click Here](http://i.imgur.com/IZJ39Wq.png) picture. I already run this code to sum all collumn in my Datagridview. But I need to sum the 1+2+4 in collumn TEST1 without erasing the other data. Private Sub Button1_Click(sender As Object, … | |
$sql = (" SELECT referral1.*, client.*, employee.* FROM ( select r.referral_date,c.lastname,c.middlename,c.firstname,c.gender,r.presenting_problem,e.employee_nickname from client c inner join referral1 r on c.referral_id = r.referral1_id inner join assign_psychotherapist ap on ap.a_referral_id = c.referral_id inner join employee e on ap.a_psychotherapist_id = e.empid where referral_status ='Assigned' OR referral_status ='Accepted' order by referral_date desc ) as … | |
Hello, first of all I am new to vb.net so sorry if my question is stupid... :( I have text files that are something like this: "#...... "#...... 1.2 2.5 3.4 5.6 4.8 8.9 . . . Now I would like to add to the first column of the datagridview … | |
Hi all, I need help understanding a C++ problem. This is an assignment question. Create a base class ‘Account’ and two derived classes ‘Savings’ and‘Checking’. The ‘Savings’ and ‘Checkings’ information should be connected to each other using variable CREDITRATING. Transactions in any of those derived classes should be able to … | |
Hello, I am writting a code for class and I am having a hard time inserting my variables into my "cout". I know how to do it the long way but I know it has to be easier. Right know this is the portions I am working on: void displaySlpInt … | |
Hi, after creating a software with SQL database (my other pc is the data server) this shown up " String or binary data would be truncated. The statement has been terminated " what to do? sometimes it imports the data sometimes it does not... | |
Hi guys Need help with my php booking form code.... basically when the customer selects a particular activity the database checks for the value assigned to that activity for example in my database ive assigned football and basketball with the value of 4 badmington, tennis and table tennis with the … |
The End.