199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for saleh.keshko.09

Here is my PHP code: $fields=array('eventID','eventTitle','te_events.venueID','te_events.catID ', 'eventStartDate','eventEndDate','eventPrice'); // initialize empty array for WHERE clauses $wheres=array(); // loop through field names, get POSTed values, // and build array of WHERE clauses, excluding false values foreach ($fields as $field) { // get existing field value from POST, mark missing or empty …

Member Avatar for Dean_1
0
291
Member Avatar for rihab_1

hi, I want to spent the values of textbox to datagridview from another form and that after a click on the button add, help me please

Member Avatar for Reverend Jim
0
3K
Member Avatar for zenith_96

heya again guys - sorry for asking for help once again, but i think once i have my head round this, i'll sort myself out pretty well *python noob* :?: the prac is to add an option to change the price of a listed item in a catalog - this …

Member Avatar for Nivir
0
362
Member Avatar for mc3330418

I have a text file below that I read from. 0123456789012345678 IN NUMBER LOOP LD NUMBER BZ LPEND LD TOTAL ADD ONE STO TOTAL LD ZERO SUB NUMBER BGTR ENDIF BZ ENDIF LD POSITS ADD ONE STO POSITS ENDIF IN NUMBER B LOOP LPEND LD POSITS MPY HNDRD DIV TOTAL …

Member Avatar for mc3330418
0
300
Member Avatar for Afroula

Hi everyone, I'm trying to extract text from between tags but only in certain conditions. <title> and <pos> are both children of <page>, but neither one is nested inside the other (i.e., they're siblings). Each <page> always has one <title> and zero to 5 <pos> sections. What I need to …

Member Avatar for Afroula
0
2K
Member Avatar for saadi06

Hi, I have a question regarding php defined function. I want to see the logic implemented for all the php defined functions. How can I see that. For example I want to see what is the logic behing strstr or how strtolower works.Where can I see in wamp these definitions. …

Member Avatar for jkon
0
209
Member Avatar for marse.haka91

I used Morris chart in my application project to show some details about quantity of sales. After executing the AJAX request, the chart is showing data in disordered way.It doesn't display sales for each city.I want to display them like this example with static data http://jsfiddle.net/marsi/LaJXP/1/ var json = (function …

Member Avatar for marse.haka91
0
5K
Member Avatar for abaddon2031

Ok so I have been searching for several days on how to write a simple python script that will HTTP post to my server. I am jsut looking for some tips on how to write this properly cause as of right now im having to upload my add and update …

Member Avatar for abaddon2031
0
399
Member Avatar for pezza

Hi All, Apologies if this has been mentioned before, but haven't come across anything from my search... I have a strange issue at the moment where when I debug and step through my code, as soon as the first declaration (DIM statement) is stepped over, the value is being set …

Member Avatar for pezza
0
138
Member Avatar for agrbinoo.albaker

Write a complete C++ program that reads the attached file (values.txt) to find and print the following: a. The average value of the numbers in the file. b. The maximum and minimum value c. The count of negative and positive values (ignore zero) #include <iostream> #include<fstream> using namespace std; int …

Member Avatar for Moschops
0
177
Member Avatar for syasya
Member Avatar for GriffN84

Evening All, I'm new here and new to PHP, so please take it easy on me! =] I'm working on a php login script that would allow a user to enter their last name or their username in the username field and their password. Upon submit, check for a record …

Member Avatar for fireburner29
0
2K
Member Avatar for Riu 2009

hi everyone, i want to store an image in database not by inserting but by updating (by using UPDATE query) and hers my code... everything else is updated successfully but its not storing image..please help me to solve the problem.. im using medium blob data type to store image this …

Member Avatar for Mani_6
0
15K
Member Avatar for nadiam

hey guys. I have a form (very much simplified): <form method="post" action="add_contact.php"> <label>House No. :</label><input type="text" name="houseno" required /> <label>Street Name :</label><input type="text" name="street" required /> <lable>Spouse ?</lable><input type="radio" id="spouse-yes" onclick="FillSpouse(this.form)">Yes<input type="radio" id="spouse-no"> <label>House No. :</label><input type="text" name="spousehouseno" required /> <label>Street Name :</label><input type="text" name="spousestreet" required /> </form> what i …

Member Avatar for saqib_604
0
2K
Member Avatar for Reem_1

I tried all possible test cases and It outputed the correct answer , I wonder why UVA doesn't accept my answer <#include<iostream> #include <stdio.h> using namespace std; int main() { int i, j; unsigned long long int tempI, tempJ; int maxCaseLen = 1; int count = 1; while (scanf("%d %d", …

Member Avatar for Reem_1
0
631
Member Avatar for arrivaldwis

i have a works to create table report like in attached image. ![90ef46840e7046051c341009f30ee8ca](/attachments/large/4/90ef46840e7046051c341009f30ee8ca.png "90ef46840e7046051c341009f30ee8ca") i don't know how to arrange the days and grouping as Time, thank you for help...

Member Avatar for diafol
0
484
Member Avatar for vincecamha

"a menu must be provided that asks the user of the software what task they would like to perform; it then activates the required task. The menu should loop until the user requests to exit"- that is the requirement. And i haven't learn about switch-case. So how can i create …

Member Avatar for vincecamha
0
455
Member Avatar for Satyam_1

I have following code for date and time in vb.net. I am not able to set timer in the textbox 4 and 5. What could be there in timer1 event? Dim theDate As Date theDate = Format(Now(), "short date") TextBox1.Text = theDate Dim mytime As System.DateTime Dim hours As Double …

Member Avatar for Sulaiman_1
0
275
Member Avatar for Danuja

Can any guy tell me what is the differnce between a datareader and a dataadapter? Also what are the other method to search data through SQL queries??

Member Avatar for Sulaiman_1
0
368
Member Avatar for syasya

Hi guys , I dont have idea on how to solve this problem . I attach my question but I dont know whether it is true or not. Can you please help me Given an output file named "data.txt" write the code fragment to i ) set up the file …

Member Avatar for stultuske
0
141
Member Avatar for sashyn01

this is what i want to do but it seems my code doesn't do what i wanted. when i select an item in cbo_Item i want to loop the corresponding Item_Stock into cbo_QTY where all the numbers below Item_Stock is shown in cbo_QTY...here is my code... Private Sub loop_QTY() Dim …

Member Avatar for Sulaiman_1
0
796
Member Avatar for Satyam_1

I am using vb.net with OleDb database. Following is my code, although i am to search database but not able to save after making changes. It displays following error at Command.ExecuteNonQuery level as OleDbException was unhandled, Data type mismatch in criteria expression. Imports.Sysytem.Data.OleDb Private Sub Form1_Load(ByVal sender As System.Object, ByVal …

Member Avatar for Sulaiman_1
0
276
Member Avatar for vergil1983

Hi and good day to all, Just a curious question, when I am comparing a String object with blank space(" "), I type x.equals(" ") in my Netbeans IDE(x is a String type variable), but Netbeans automatically shows it's an error and change it to " ".equals(x) instead. Anyone here …

Member Avatar for vergil1983
0
171
Member Avatar for mmm123

Hi was wondering if anyone could take a look at my code and see whats going wrong here because I have changed the code about 20 times trying to fix the error and still no luck. I have created a web page that the user must fill out, I then …

Member Avatar for Sulaiman_1
0
3K
Member Avatar for Gerock7

import javax.swing.JOptionPane; public class StudentReport { String name; //name of the student String schoolName; //name of the school String schoolGrade; //grade in school int numOfGrades; //number of grades or number of classes double grades; //grades received double average; //average of the grades double total=0; //initialize total String trash; //to convert …

Member Avatar for stultuske
0
277
Member Avatar for ocw91

I trying to compile my code in netbean (no red color highlight in code), but there is an error that cause it to fail. i not sure why is it error. Googled and cant find any helpful tips. one said that too many class in the file @@? can anyone …

Member Avatar for ocw91
0
458
Member Avatar for iamthwee

Just wondering about breadcrumbs and how they work. Specifically in CI. Is it worth implementing? Ta.

Member Avatar for yessi_1
0
159
Member Avatar for ishaan3731

i have this code which tries to enter data into an array of string(char ptr) called token.To do this i have used a while loop to obtain a string as user input and put that string into the token array one by one. But when i try to print the …

Member Avatar for ishaan3731
0
202
Member Avatar for daniel1977

I am getting an error in the header file: class linkedStackType: public stackADT<Type> Can you see anything wrong with what I have, and why the compiler is complaining about "stackADT"? I would love it if you could give me some insight into this matter. Right now I'm only concerned about …

Member Avatar for mike_2000_17
0
215
Member Avatar for Ballistixz

hello, i am in need of some help with a bit of code i been working on. i am getting "illegal start of expression" and "reached end of file while parsing" errors and its been bugging me for awhile as i am not sure why. can anyone help me to …

Member Avatar for vergil1983
0
244
Member Avatar for phony

// This program uses the a queue template to create a queue of strings. #include <iomanip> #include <iostream> #include <cstdlib> using namespace std; // // TO CREATE A "template" class named "T" template <class T> // // TO CREATE A CLASS NAMED "Dynque" class Dynque { private: struct QueueNode { …

Member Avatar for phony
0
302
Member Avatar for dudicus14

{file has 1000 lines that look like these 114680858 19670607 Matilda Vincent MI 114930037 19471024 Desdemona Hanover ID 115550206 19790110 Xanadu Perlman ND 116520629 19630921 Alexander Hall SD 117050976 19301016 David Lamprey GA 119610646 19650202 Thomas Porlock IL 120330928 19621126 Cary Cartman NC struct employees { int ss_number;//social security int …

Member Avatar for vmanes
0
148
Member Avatar for Kniggles

I am trying to write a querry to pull just one playername out of a database by random, can anyone see what I am missing please ? open base< $sql="select playername from tablejollys where (ID % 1000) = floor(rand() * 1000) order by rand() limit 1"; $result=mysql_query($sql); echo ['playername'] ; …

Member Avatar for Kniggles
0
260
Member Avatar for chris.immanuel

Hi there, I need a help on how to pass php variable to another page when the checkbox is clicked. so far i hav this <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type="text/javascript"> $('.cuttingCheckbox').change(function() { if (this.checked) { $.post('fabProcess.php', { headmark : $($row[HEADMARK]).val(), headmark_id : $($row[ID]).val() }, function(response){ this.setAttribute("disabled", true), alert(headmark,headmark_id); …

Member Avatar for vsmash
0
3K
Member Avatar for sasikrishnasamy

Hi, I have two tables called header user, inbox. The table structures mentioned below, User: NUM_USER VCH_NAME VCH_PHONE_NO VCH_STATUS 1 XXXX 123 Y 2 YYYY 321 Y 3 ZZZZ 456 Y INBOX NUM_ID(P.K) NUM_CUST_ID NUM_SEND_CALL_ID NUM_REC_CAL_ID DTT_DATE 1 10 2 1 4/11/2014 2 10 3 2 4/11/2014 3 10 3 …

Member Avatar for vsmash
0
198
Member Avatar for Mr.Pink

I have this code which loads 10 divs from an external file into the main file. There's also a next / previous function to skip back and fourth between the divs. Demo: http://goo.gl/RFBN2E (Click load content to load the content via ajax, then the next / previous buttons will skip …

0
161
Member Avatar for Labdabeta

Hello, I have a bug in my program somewhere and I cannot understand why. The program merely prints data from a binary file. Here is the code: #include <iostream> #include <fstream> #include <vector> #include <cstdint> using namespace std; int main(int argc, char *argv[]) { if (argc!=2) { cout<<"Invalid argument count, …

Member Avatar for Labdabeta
0
414
Member Avatar for Danuja
Member Avatar for mohan@nano

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] = $i; } $counter=0; while(true) { $temp=array(); $i=$k; $counter +=1; if ($counter>1){ while($i-- > 0) { $temp[$i] = $my_arr[$pos[$i]]; } …

Member Avatar for phorce
0
129
Member Avatar for lithium112

Hello, I am delving into OOP now and am having issues with creating properties. Below is my code. Basically what I did is created a custom class and am creating a property within that class. But what happens is it will put a red squiggly under 'Multiply' saying 'not all …

Member Avatar for lithium112
0
247
Member Avatar for jovstudios

Hello Guys, I have a form that i used array name. ei. name[] this is my code for input form {{ Form::open(array('url' => 'create')) }} <TR> <TD><INPUT type="checkbox" name="chk[]"/></TD> <TD class="rating"> {{ Form::text('core_values[]', Input::old('core_values[]'), array('placeholder' => 'Criteria Here')) }}</TD> <TD> {{ Form::textarea('behavioral[]', Input::old('behavioral[]'), array('placeholder' => 'Description Here', 'cols' => '75', …

Member Avatar for veedeoo
0
5K
Member Avatar for inspire_all

i am trying to overload +operator to concat 2 strings i tried to write a code but it is giving 2 errors and i am also not sure whether logic is correct..MY CODE is [CODE]#include<iostream.h> #include<conio.h> #include<string.h> class string { char *str; public: string() { cout<<"enter string"; cin>>str; } void …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for stokie-rich

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 site I'm now getting this error message Warning: mysqli_query(): Couldn't fetch mysqli in C:\xampp\htdocs\submit-form.php on line 19 The following SQL …

Member Avatar for iamthwee
0
16K
Member Avatar for ssbb

I have a homework to make a calculator(infix-to postfix) and I need to do it asap. I get always an error when I run this code(Enter a postfix expression (or nothing to quit): +54 Traceback (most recent call last): File "C:\Python32\infix to postfix", line 69, in <module> main() File "C:\Python32\infix …

Member Avatar for iamthwee
0
2K
Member Avatar for Rabee_1

Hello , I have to write a code that read a file in python and convert each chaaravter to 1, or 0 and send these digets to a a selonoid to make a strike or not to make ( brille printing ) is that possible ???? please need your help …

Member Avatar for iamthwee
0
481
Member Avatar for Pyler

I'm implementing a generi method that's supposed to traverse a binary tree in PostOrder but when I attempt to use it, the Iterator doesn't work as It should when I attempt to use ot on a Binary Tree, can anyone spot my mistake in the code? Thanks. The method makes …

Member Avatar for iamthwee
0
219
Member Avatar for chocolatte.lavista_1

excuse me, do you know how to put a calendar in the form? I try to put this code in my form but it has an error on line 2. Anybody know? Please help me. Thank you This is the calendar code :- <?php $myCalendar = new tc_calendar("date5", true, false); …

Member Avatar for diafol
0
481
Member Avatar for Bchandaria

i want a full code for finding different ways to climb the n-stair case problem that is each step is either 1 or 2 stairs. Eg- a 3-stairs staircase can be climbed in 3 ways :1-1,1-2,2-1. Using subset method can any one can help me out for this problem?

Member Avatar for iamthwee
0
192
Member Avatar for ngocham2001

Dear all, I have exists excel file on server. Now, I want output the file by php. I have this code: $file = "test.xls"; $file=basename($file); if (file_exists($file)) { header('Content-Type: application/ms-excel'); header('Content-Disposition: attachment; filename='.$file); ob_clean(); flush(); readfile($file); exit; } When I click download button, I can open file, but appear "missing …

Member Avatar for iamthwee
0
436
Member Avatar for kingneil

In PHP, I've tried using simple_html_dom in order to extract URLs from web pages. And it works a lot of the time, but not all of the time. For example, it doesn't work on the website ArsTechnica.com, because it has a different use of HTML URLs. So... one thing I …

Member Avatar for pixelsoul
0
216

The End.