199,114 Archived Topics
Remove Filter ![]() | |
I got an error while running my code, it says call to a member function getBallparkDetailsStartDate() on a non-object. if($projectStatusId == ProjectStatusKeys::BALLPARK_ACTIVE) { $ballpark = $this->ballparkDetailsHandler->getBallparkDetailsByProjectId($projectId); $projectDetails["startdate"] = $ballpark->getBallparkDetailsStartDate(); $projectDetails["enddate"] = $ballpark->getBallparkDetailsEndDate(); $projectDetails["projectid"] = $projectId; $projectDetails["name"] = $ballpark->getBallparkDetailsBookingRef(); $projectDetails["status"] = ProjectStatusKeys::BALLPARK_ACTIVE; } I got the error in this line: $projectDetails["startdate"] … | |
with the formula : Result = 1+2!/((x-2))-3!/((x-3))+4!/((x-4) )- n!/((x-n)) i want the output as : Please key in x value: 8 Please key in n value: 5 result = 1 +2!/6-3!/5+4!/4-5!/3 = -33.8667 ------------------------------------------------------------------------ i have done the code , still cannot get the output , can anyone help me … | |
Hi, I want to compile a C/C++ file from php script and generate an error file in ***Windows 7***. I am using MinGW32 as C compiler whose path is included in Environment variables (PATH='C:\MinGW32\bin') and WAMP 2.2. Tried using the below php scripts, error file is generated but it is … | |
i got this problem when cron job work ***Parse error: syntax error, unexpected T_VARIABLE in /home/u574693502/public_html/bot.php on line 4*** and this is my full script <?php $bot['like'] = true // false untuk non aktifkan autolike $bot['ck_k'] = true // false untuk non aktifkan fungsi jika status mengandung kata maka di … | |
Hello, I am fairly inexperienced with coding and have been having trouble with a program I am trying to write. The problem is that when reading from a text file the program will only read some of the file not all of it. Any help would be greatly appreciated. Here … | |
Hi I am using some code to validate uk postcode. I was wondering how I could make this work with AJAX so that the check is carried out on entry. Here is what I have so far: <form name="postcodeform" method="post"> <input type="postcode" /> Postcode<br /> </form> function IsPostcode($postcode) { $postcode … | |
Hello. I have a picture box on a form. The imageLocation of the picture box is set to a url like for example "http://www.google.mu/imgres?imgurl=http://1.bp.blogspot.com/-w6AJJ5Xoulg/T3AymMKbFlI/AAAAAAAAACI/EslCtw42HHg/s1600/jpeg.jpg&imgrefurl=http://zainriasat786.blogspot.com/2012/03/discuss-impact-that-file-format.html&h=480&w=640&sz=36&tbnid=fkqhzaWg8cSK4M:&tbnh=90&tbnw=120&zoom=1&usg=__54xTPooPnJOFy8xQS0TJXOtV1d8=&docid=JkpXnRk64SCIzM&hl=en&sa=X&ei=LjxoUO_uEsXRrQf28oDYBw&sqi=2&ved=0CD0Q9QEwBA&dur=24". When the form closes, we can see that memory is not released. I have added code to dispose the picture box on form closing but when … | |
Hi Everyone, When I feed details in Enquiry Form and click on submit then, my email is not going. It displays error message as "Warning: mail() [function.mail]: SMTP server response: 530 SMTP authentication is required. in E:\HostingSpaces\flashprop\flash-properties.com\wwwroot\sell.php on line 39". Kindly, help. Thanks in advance. | |
I have a web site created with asp.net mvc3 using razor view engine. It is visible in mobile devices. (eg. ipad). but there are css anomalities. How can I achieve this. View the same site in desktop and mobile device (ipad)? I am hoping i can achieve only with changin … | |
How to generate grid view with "autogeneratecolums=true" and how to fill this gridview with dropdownlists dynamically | |
Hi all Greetings, Please give me some advice how can i call my existing report in vb.net any reference is appreciated. I am trying the importing crystal decision but i can't find it on the reference is it maybe because i am not using CR10? or there is something that … | |
Operating System: Windows 2003 Server Using XAMPP Now , I have to develop a Scheduler for these reports, For Example I have 3 Reports. These reports are PHP Files Report1.php Report2.php Report3.php I want to send them(Execute them) automatically as follows Report1.php on Monday 9AM Report2.php on Friday 9AM And … | |
hi, im a new comer in this forum. please anyone can help me for find string in large text file (filesize = 1mb to 5 mb) example: i have a text document file, filename is test.txt file test.txt contains serial number 000001 000002 000003 000004 000005 000006 000007 000008 000009 … | |
import javax.swing.* ; import java.awt.event.*; import java.awt.*; import java.io.*; import java.util.Calendar; import java.util.*; import java.text.*; /* <applet code="gui.class" width=250 height=100> </applet> */ class gui extends JApplet implements ActionListener { JTextField t1,t2,t3,t4,t5; JLabel l1,l2,l3,l4,l5,l6; JButton b1,b2; Calendar c1,c2,c3; JPanel p,p1,p2; Date sd,sd1; SimpleDateFormat sdf; public void init() { SimpleDateFormat sdf = … | |
Hi, I have the following HTML: <ul> <li> <div>Something</div> <ul> <li> <div>Something</div> <ul> <li> <div>Something</div> //more lists can come </li> <li> <div>Something</div> </li> </ul> </li> <li> <div>Something</div> </li> </ul> </li> <li> <div>Something</div> </li> </ul> The list can continue endlessly and the count of sublist is unknown (user defined). Is there … ![]() | |
/*I am trying to generate 6 random unique (1-49) no.s and understand that my validation is incorrect.Help Please?*/ [code] import java.util.*; import javax.swing.JOptionPane; public class ranUnique { public static void main(String[] args) { String output=""; int[] arrayRan=new int[6];int ran2; for(int ran=0;ran<arrayRan.length;ran++){ arrayRan[ran]=(int)(Math.random()*50 //validate for(ran2=0;ran2<=ran;ran2++){ if ((arrayRan[ran]==arrayRan[ran2]) || (arrayRan[ran]==0)) { arrayRan[ran]=(int)(Math.random()... … | |
My users arrive on the page, optionally with a query string. The query string data - if present - goes into a textarea element in a form, where it may be edited, then POSTed back to the page with the submit button. Now I have a bit of a mess … | |
hi guys, am stil new to java their was a snippest code about getting screen size i've being seeing onine calling window.getSize() in what package is the object located. // Get the size of the screen Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); // Determine the new location of the window int w … | |
my images are stored on server in folder "Albums".To access images the path is "/Albums/". I have tried this code but its not working.boxes for images appear on page load but after that immediately disappear. <asp:ListView runat="server" ID="listView"> <ItemTemplate> <asp:Image ID="img" ImageUrl= '<%# "/" + Eval("PictureLink")%>' width ="44" height ="45" … | |
i need to call a php program from another php program in middle and need to execute that php program like calling PHPA from PHPB program. after PHPA program execution completed and then PHPB program should resume its execution and need to complete its running | |
Derive an algorithm which updates the ith elements from the top of the stack, upgrade this algorithm to calculate the maximum value among the contents of the task. Hence write a java program to implement this task | |
Hi guys i have a problem here i have and input type file which will be containing an image file <input type="file" onchange="validate(this)"/> now my code below work in its extension detection but if it is invalid the input file still have i value i want it that if the … | |
count.c:11: error: invalid operands to binary >> (have ‘double’ and ‘int’) #include<stdio.h> #include<math.h> int main() { int num,i,count0=0,count1=0; printf("enter number \n"); scanf("%d",&num); for(i=0;i<32;i++) { if(num &((pow(2,31))>>i)) count1++; else count0++; } printf(" the no. of 0's and 1's in the given number are %d %d",count0,count1); } | |
HI, could someone explain me this line of code: public void createTextFile(Layer layer, String prcString, String arString) { File fileStatPercent = new File(fileName+layer.getName() + "Test.txt"); try { BufferedWriter out = new BufferedWriter(new FileWriter(fileName + layer.getName() + "Test.txt")); out.write("something"); out.newLine(); out.write(prctString); out.newLine(); out.write("something"); out.newLine(); out.write(arString); out.write("\n"); out.close(); Thank you, i don't … | |
i create user submit form. before submit click preview button.show for preview. anybody.plz hlp me. this is my form <form action ="<?php echo url_for('@meetnewpeople_edit') ?>" id="meetnewpeople" method="post" enctype="multipart/form-data" > <span id="privacy_popup" class="button-white">Privacy</span> <div id="privacy_create" style="display:none;"> <input type="checkbox" id="privacy-only-plan-people" value="planpeople" name="privacy[]"> Only people in this plan can see <br> <div id="privacy-people"> … | |
Hi! I'm a 2nd Year IT Student and right now I have a problem in creating an Address Book Program using Java Codes.. It has never been discussed to us in class so i really don't know how to do it but look for it online.. I have used Mr./Ms. … | |
Hello, I am having problem with contact form. Can anyone help me? contact.php <div id="contactform"> <?php require_once('recaptchalib.php'); $name = strip_tags(@$_POST['name']); $email = str_replace(" ", "", strip_tags(@$_POST['email'])); $phone = str_replace(" ", "", strip_tags(@$_POST['phone'])); $message = strip_tags(@$_POST['message']); if (@$_POST['submit']) { if ($name&&$email&&$phone&&$message) { if (is_numeric($phone)) { $privatekey = "6LdRStUSAAAAABctjZq_iX249auG_kjaNvn_4vfN"; $resp = recaptcha_check_answer($privatekey, … | |
How can I connect my msacces database and use SQL query command like "Select Field FROM Table Where Field1 = foo AND Field2 = foo2" in Visual basic 6 and display the query result to a textbox. | |
I've developed a web page in Asp.net using visual studio 2010.how to make those pages work in my website.I have tried uploading all the folders in my httpdocs folder. But it's not working. Kindly help me out. Vivek | |
Hi, I have a lot URLs in my site that look like: http://localhost/DIRECTORY/FINAL/ref.php?id=category Now, I need a PHP function to search for = Sign and return all the text after that i.e. 'category' Is this possible, if so can anyone help | |
Hi Guys , i started experimenting a little bit with javascript . I want a javascript dialog that ask user to delete a file.Buttons should be yes or no.The javascript should load as soon as page load **No button is used**. Can you please post a sample code for it … | |
this is just a simple code.My problem here is that I can't get or display subject loads of a teacher. $sql = mysql_query("SELECT * FROM teachersubject WHERE teacherID ='$id'"); while($test = mysql_fetch_array($sql)) { $subjectid=$test['subjectID']; $getsubject=mysql_query("SELECT * FROM subject WHERE subjectID='$subjectid'") or die(mysql_error()); $getthis=mysql_fetch_array($getsubject); echo "<option value=".$getthis['subjectID'].">".$test['subjectCode']."</option>"; } mysql_close($conn); ?> This … | |
Hi there I have a huge difficulties with php checkbox inside do while loop. <?php do { ?> <p> </p> <div id="nazwa_firmy"> <form name="szczegoly_firmy" method="post" action="szczegoly.php"> <?php echo $row_wybieranie_firm['nazwa'];?> <input type="submit" name="firma_szczegoly" id="firma_szczegoly" value="Szczegóły" tabindex="1"> <input type="hidden" name="id_firmy" id="id_firmy" value="<?php echo $row_wybieranie_firm['id']?>"> </form> </div> <div id="adres_www"> <a href="http://<?php echo $row_wybieranie_firm['www']; … | |
This is not necesarily PHP, but algorithm question, I am just doing it in PHP. So don't know if its the best place to post. The problem is - I need to calculate maximum posible winning for a game, depending on bets. We are making dogs racing game, but the … | |
Hi all I m using asp.net 4.0. In my data list i have used asp image tag like below [CODE] <asp:Image ID="imgSmallPics" runat ="server" ImageUrl ='~/AdsPictures/<%#Eval("pictureName")%>' [/CODE] where AdsPictures is folder where images resides and pictureName is name of image return by query. Image is not shown, when i copy … | |
<html lang="en"> <head> <meta charset="utf-8"> <title>Date Picker</title> <link href="jquery-ui-1.8.24.custom/css/start/jquery-ui-1.8.24.custom.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery-ui-1.8.24.custom/js/jquery-1.8.2.min.js"></script> <script type="text/javascript" src="jquery-ui-1.8.24.custom/js/jquery-ui-1.8.24.custom.min.js"></script> <script type="text/javascript"> $("document").ready(function(){ $("#datepickerID").datepicker({ changeYear: true }) dateFormat:"%Y-%m-%d" }); </script> </head> <body> <form method="post" action="datePicker.php"> <label> <input type="text" name="datepickerID" id="datepickerID" value="<?php echo $datepickerID; ?>"><img src="../images/calendar-icon-vector-801455.jpg" width="21" height="21"> </label><br/><br/> <input type="submit" name="Submit"/> </form> … | |
in tree it acomdates only 260 characters i want to show 300 character pls tell how to do? | |
I wrote a php contact form but I can't figure out how to redirect a user to a different page... Here is my code: <?php if($_POST){ $name = $_POST['name']; //gets the entered name $email = $_POST['email']; //gets the entered email address $subject = $_POST['subject']; //gets the subject $message = $_POST['message']; … | |
How do i store valid form inputs in a csv file? I am not sure how to start, but I know that php and mysql is involved. | |
hii deceptiokn my question is we know we can implement a bubble sort in an array.Is it possible to implement bubble sort in circular doubly linked list????? | |
I've got the following project, which does what is described in the comments, however, when I use VC++ to compile it, it does not run properly, it crashes after I type in the document name. I'm wondering if I could get help on making it run properly. Any and all … | |
Hi all, I have a program that I have to write with an output that looks like this: ---------------------------------------------------------- Wages for 3 employees For 10 hours worked, the wages are 120 dollars For 20 hours worked, the wages are 240 dollars For 30 hours worked, the wages are 360 dollars … | |
Hello, I have a problem about counting consequtive characters, here my code char query[] = "tttthe oneZZZZZ trully loveeee"; void cntfreq(char A[]) { int j; int k=0; j = 1; while (A[j] != '\0') { if (A[j-1] == A[j]) { ++k; cout<<k<<"\t"<<A[j]<<endl; } else k = 0; ++j; } } … | |
Hi, i have a question about using new/delete classes. This is a simle outline of the code: class a { blah blah blah class b { blah blah blah class c { blah blah blah }; }; }; int main (){ a newA; a::b newC; a::b::c newC; //to call fucntions … | |
I need to design an application that reads a string from the user, then determines and prints how many of each lowercase vowel appear in the entire string. Separate counter for each vowel. I also need to count and print the number of consonants, spaces, and punctuation marks. The problem … | |
I am trying to work on this assignment I have and I am pretty lost and do not know what to do. Any help would be greatly appreciated. This is the assignment: Add two methods (functions) to ex34. /* General Info: Write a copy constructor. Use the copy constructor in … | |
I'm using HTML <embed> to play music in the background on a site, and I have a list of songs I'd like it to play. Is there some way to detect the end of the song and start the next? document.body.removeChild(soundEmbed) soundEmbed = document.createElement("embed") soundEmbed.setAttribute("src", "Music/"+Song) soundEmbed.setAttribute("hidden", true) soundEmbed.setAttribute("autostart", true) … | |
hi, if anyone could guide me on how to add a pagination script on this code? Thanks <?php error_reporting(0); include("config.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>MySQL table search</title> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> … | |
I'm presently using nicEdit, small simple and inadequate for what I need, I aware of tinyMCE FCKEditor and such my problem is I need to make it a one time switch, I do not want to get my users through a series of trial and error, my demographic is older … | |
I am fairly new to C# 2005. I am facing a strange problem in my first major project after migrating to C# 2005. I am using the concept of MDI and Child forms. My MDI form has the Menu bar on top as normal standard. My child form does not … |
The End.