199,113 Archived Topics
Remove Filter ![]() | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
what is the notion of event driven architecture in context of GUI ? | |
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 … | |
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 … | |
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 … | |
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", … | |
i have a works to create table report like in attached image.  i don't know how to arrange the days and grouping as Time, thank you for help... ![]() | |
"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 … | |
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 … | |
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?? | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | Just wondering about breadcrumbs and how they work. Specifically in CI. Is it worth implementing? Ta. |
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 … | |
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 … | |
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 … | |
// 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 { … | |
{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 … | |
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'] ; … | |
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); … | |
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 … | |
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 … | |
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, … | |
Who can tell me the difference between MessageBox.Show and MsgBox in VB.NET? | |
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]]; } … | |
![]() | 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 … ![]() |
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', … | |
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 … | |
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 … ![]() | |
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 … ![]() | |
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 … ![]() | |
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 … ![]() | |
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); … ![]() | |
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? ![]() | |
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 … ![]() | |
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 … |
The End.