199,114 Archived Topics
Remove Filter ![]() | |
I have an array : my Array = new Array ("0","1","2","3"); i want it to generate an index randomnly then it deletes that index so that next time it does not regenerate it. Here my code below, but it does not seems its deleting the index because it generates same … ![]() | |
i cant seem to get my json data into a selection box. here my code for the dropdown.php </head> <script src="jquery.js"></script> <script src="jquery.jCombo.js"></script> <style type="text/css"> </style> <?php $directory = opendir("C:/xampp/htdocs/SE3S604CW3/xml"); $storeFilesIntoArray[] = "please select XML to load"; while (($fileName = readdir($directory)) !== false) { $getLastFourDigitsOfFile = substr($fileName,-4); if($getLastFourDigitsOfFile == ".xml") … ![]() | |
Hello guys I need a favor, I have array of data fetched form mysql db and contain 4 information **id - thumb - views - added by** I want to display those arrays in 3 or 4 coloumn like picture gallery. I did it with only picture and its work … ![]() | |
So, I'm suppose to make a program following these guidelines. 1. Count all words in the file. A word is any sequence of characters delimited by whitespace, whether or not it is an actual English word 2. Cout all syllables in each word. To make this simple, use the following … | |
my complier is throwing an error up when i run it. the problem is run into is my Increment function is etither given a number to increment by, or if it is left blanlk (Increment()) should default to incrementing 1. i thought i could do just 2 functions, one with … | |
I'm working on a web browser and I need to know how to store history & bookmarks permanently as currently after the browser is closed all data is lossed. Should I put it on a DB? Suggestions? PS: They are currently being saved on a ListBox. | |
Hi All, I'm new to PHP. I've started service apache2 and put a testphp.php file in its webroot directory with the following content <?php phpinfo(); ?> But when I want to see the result in the browser, the browser opens the source file instead of showing the contents of PHP … ![]() | |
I'm using Wordpress and a plugin called Testimonials Widget which creates a post type of its own for rotating testimonials with testimonialswdiget_widget() or a list with testimonialswidget_list(). I don't have all my code yet because I can't even get this part to work yet -- <?php if ($all_the_tags); $all_the_tags = … | |
HELLO!! CAN ANY ONE GIVE ME SOME HELP ABOUT THIS RADIO BOX? IT WORK IF I SELECT IT, HOWEVER ONCE I LEAVE IN BLANK, IT DISPLAY AN ERROR MESSAGE. (Notice: Undefined index: discrate in C:\wamp\www\SSWP\renting.php on line 35 ) [B]HI IS THE HTML CODE:[/B] [code=html]<div class="formorder"> <form name="renting" method="post" action="renting.php"> … | |
Dim agre1, agre2, agre3 As Double agre1 = Form1.TextBox11.Text agre2 = Me.TextBox11.Text agre3 = ((agre1 + agre2) / 2) TextBox12.Text = agre3 | |
Hey all, Been re-writing the HTAccess for the Moodle software which comes as standard. This is the code I have so far: # BEGIN Moodle <IfModule rewrite_module> #Fixes Moodle issue with redirection on shared servers Options Indexes FollowSymLinks +IncludesNOEXEC RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.co.uk RewriteRule ^(.*)$ /Moodle/$1 #Redirects lowercase to … | |
how to update databse in remote machine,i am having .sql file which i have to update my database schema in remote machine,client will provide me his machine ip address,database username,database password,database instance name...pls help me pls package com.prion.testConnectivity; import java.io.BufferedReader; import java.io.FileReader; import java.io.Reader; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; … | |
hi, i am using autcomplete to call my php page which displays results. all is working except when they click off the list it does not hide the search results again. so searching works and so does selecting from the results but if they did not want to select a … | |
![]() | How Can one Export Crystal Report to Word File ? |
I'm working on a horse race. So in my program, a random number is produced. This random number can be 1 through 100. If the random number is 1-35, then horse one will be the winner. If the random number is 36-47, then horse two will be the winner. It … | |
hie guys, a great supportive sites i have ever seen, i am facing a simple issue with my login windows form, which i have created, it works fine no issue, but now i want that after successful login user should be automatically redirect to home screen (windows forms) but unfortunaterly … | |
I have a simple question about this code struct a { char key; a *next; }; a = here*; and in the function I check if here is NULL or not if (here->key==NULL) ... and Im sure here is pointing to an a(struct) but it gives access violation . what … | |
hi guys, writing a code in my first term at vb 2010, ive to create a guessing game, generate a number between 1 and 30 and let the user guess it. i must give hints along the way and record the amount of guesses made. i have the code written … | |
I am trying to make a login screen for my android app. I enter to correct username and password and I get the toast message saying I have the wrong username or password. I've tried everything I can think of to try and fix this and thought I would ask … | |
hello!everybody, Now I use xampp for build database. I need simple database design to country,state,city dropdown cuz my database is not good enought. please!!!! thanks! | |
Hi all! I just have a quick question about the execution of a copy constructor. This is the code i'm testing my work with as I'm busy learning for a test. Class file: Clock :: Clock (int h, int m, int s) { hr = h; min = m; sec … | |
Hi again, I've been looking more at reading serial - this time with a GUI in front. After attempts to get it working I thought it best to try threading to perform the task. What it should do is read the serial port and update a label with the frame … | |
Hi, while executing below programme on my Dev-c++ 4.9.9.2 compiler , i was bit amazed as it should have not run properly due to use of deleted object (obj). can anybody let me know instead of crashing , it is getting executed without any memory issue. ~Mohan #include<iostream.h> #include<conio.h> //virtual … | |
I was wondering how the compiler searches for a file using just the name of the particular file. The function argument that should be supplied is the file name in double quotes and mode i.e. read, write etc. What if there are two files of the same name but in … | |
I've got 4 great ideas for websites that I'd like to make. I've created the layout of each within photoshop, however, I have no real experience with html/css/php/javascript so that I could actually bring it into code. 1. Where's a good place to start learning web design/development (html/css/php/javascript)? 2. Would … | |
I have a combo box. I want to make it editable on click of an item so that user can add new item to the combo box. Please find the code below. private void Form1_Load(object sender, EventArgs e) { comboBox1 = new ComboBox(); comboBox1.Location = new Point(20, 60); comboBox1.Name = … | |
Hi, I have an error with this function at runtime Private Sub adultPay() sql = "SELECT adultRate FROM roomType WHERE roomType = " & rumType.ToString & "" connectDatabase() Using da As New OleDb.OleDbDataAdapter(sql, con) Using ds As New DataSet Try da.Fill(ds, "AdultRate") 'error here Dim adultRate As String = ds.Tables("AdultRate").Rows(0).Item(0).ToString … | |
where can i get help on programming an SMS server center in java. I also need to know if it is applicable in Second Generation Technology. If there is anyone who knows how these things run please advise me. Urgent | |
I'm somewhat new to Java and programming in general and I am receiving this error when I run my program and I have zero idea as to what is causing it. Thanks in advance. [CODE]public class AssignmentEight { static final String INFILE_NAME = "ass8_input.txt"; /** * @param args */ public … | |
I want to know what method to use to view Images from my MYSQL database using PHP. i know that for basic data it is getString(). what about for images? | |
Tools to Make the Life of a Web Developer Easier... *Typetester *pForm *ColourLovers *Firebug *HTML Entity Character Lookup *960 Grid System | |
hey guys can you just help me out, m banging my head now,, actually a simple issue, how to show a username after successful login on next form wiht welcome lable . . . pleaase help . . | |
Hello, Somehow this is not working. I tried pretty much everything. I am also very new to PHP, but i made a nice CMS. Now I am making a website with some random flash-videos every time you refresh. This is what i got so far: <html> <head> <title>Sydcul.com</title> </head> <body> … | |
Hello Im currently creating BMPs as a bufferedimage as following: BufferedImage bufferedImage = new BufferedImage(320, 320, BufferedImage.TYPE_INT_RGB); Thing is that black and white is more than enough for me so would I do this: BufferedImage bufferedImage = new BufferedImage(320, 320, BufferedImage.TYPE_BYTE_BINARY); ? Thanks | |
This is for those of you wanting to know how to generate random numbers. I will explain how to generate a random number from 1 to 100 in a text box. Step 1: Create a textbox and name it txtrandom. Step 2: Create a command button and name it cmdrandom. … | |
Hi all. I have got a code that detects the most mobile devices except Samsung Galaxy S3 (there may be other exceptions as well). Please advice how is it possible to detect the device Samsung Galaxy S3. My code is: <script type="text/javascript"> var isMobile = { Android: function() { return … | |
Hi All, I am trying to store a link to a document in a mysql database using VB.NET. I open a file browser for the user to select the file, and if I output the returned filename to a messagebox it looks fine, but when I write that filename string … | |
![]() | I have been working on a Python coded priority email inbox, with the ultimate aim of using a machine learning algorithm to label (or classify) a selection of emails as either important or un-important. I will begin with some background information and then move into my question. I have so … |
class Temp { static int []years={-80000,-79950,20,70,22,60,58,60,58,65,1950,2005}; public static int max_year(int x,int y) { int i=0; int j=0; int m=0; int n=0; int z=0; while(x<y) { z=(x+y)/2; for(i=0;i<=11;i=i+2) { if((years[i]<z) && (years[i+1]>x)) { m=m+1; } if((years[i]<y) && (years[i+1]>z)) { n=n+1; } } if(m>n) { y=z; } else { x=z; } } … | |
There are three fields in this forms: 1.Produk 2.Jumlah 3.Tanggal I wonder why Tanggal (date) are all 0000-00-00 <html> <!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>jQuery UI Datepicker - Default functionality</title> <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" /> <script src="http://code.jquery.com/jquery-1.8.3.js"></script> <script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script> <link rel="stylesheet" href="/resources/demos/style.css" /> <script> $(function() { $( "#datepicker" … ![]() | |
how can i convert int to char or string now les say: i want to convert int to char ex: int a = 3 char b = '3' note they both are same number or int to String int a = 35; String c = "35"; note i already tried … | |
Hi can someone guide me how to write these code in oop? <script type="text/javascript"> return answer; var rslt=0; var answer= ""; var a,b,c; var fill = new Array(50); function Random(min,max) {return Math.floor(Math.random() * (max - min + 1)) + min;} function myTwoDArray(){ var string=""; var myArray= new Array (20); var … | |
Hi all, I just want to know if there any asp code can make auto redirect from one page to another page when the session timeout end ? Any solution for this problem ? I need a solution ASAP, so help me please. Thank You. | |
I need to generate a pattern contain 3 numbers , 1 '+' or '-' and '=' in any order. for eg: 2 3 + = 5, - 4 3 = 1 ..... How can i do this? | |
1) On the page_load event, Bind the dropdownlist to a database using SqlConnection conn = new SqlConnection("blablabla"); SqlDataAdapter ddAdapter = new SqlDataAdapter("SELECT * FROM products", conn); DataSet ds = new DataSet(); ddAdapter.Fill(ds); 2) On the DropDownList1_selectedIndexChanged, - When user select a value (the productName) from the dropdownlist - All the … | |
Hello, anyone can help me to add a background color to my div, for example, if an id of 2 is found (pls see my code) $idMenuParent = $resGetInfoMenu[0]['IDMENUPARENT']; //if the menu has a parent if($idMenuParent) { // get menu info $infoMenuParent = cGetInfoMenu($idMenuParent); //fetch all child menus $secondMenus = … | |
Having trouble writing code for sum of numbers in visual basic 1 through 10 equal 55 need help please | |
I have been working on this assignment for a while now and I can't figure this one issue out. I was given four files, Name.java, SortableArrayList.java, NameListDriver.java, and SortableArrayListWithBubbleSort.java. The program is meant to take a text file with a list of names and sort them alphabetically. Part one of … | |
I'm trying to get values from DataGridView to the another form in textboxes and in Picturebox ,data in textboxes are there ok, but when I try to get a picture in a picturebox from DB it gives me this error. Buffer cannot be null Parameter name :buffer and here is … | |
I can't find the error. Logical error. Total and tax comes as 0. After logging in,enter a desired item number. press 0. then total comes as 0. #include <iostream> #include <conio.h> #include <string> #include <cstdlib> using namespace std; void mainfunc (); void Exit(); struct menuItemType {int itemno;double price;string menuItem;}; void … |
The End.