199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for techyworld

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 …

Member Avatar for LastMitch
0
250
Member Avatar for welshly_2010

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") …

Member Avatar for LastMitch
0
127
Member Avatar for OsaMasw

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 …

Member Avatar for LastMitch
0
1K
Member Avatar for stephgoesshazoo

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 …

Member Avatar for deceptikon
0
425
Member Avatar for dmd12b

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 …

Member Avatar for Moschops
0
964
Member Avatar for IsaacMessi10

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.

Member Avatar for IsaacMessi10
0
147
Member Avatar for parsa.moshrefi

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 …

Member Avatar for diafol
0
178
Member Avatar for mayobrains

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 = …

Member Avatar for mayobrains
0
213
Member Avatar for ero100@live.com

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"> …

Member Avatar for pooja pinky
0
536
Member Avatar for killer88

Dim agre1, agre2, agre3 As Double agre1 = Form1.TextBox11.Text agre2 = Me.TextBox11.Text agre3 = ((agre1 + agre2) / 2) TextBox12.Text = agre3

Member Avatar for tinstaafl
0
1K
Member Avatar for bradly.spicer

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 …

Member Avatar for Squidge
0
116
Member Avatar for jahanruhi3@gmai

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; …

Member Avatar for jahanruhi3@gmai
0
301
Member Avatar for mrhankey

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 …

Member Avatar for AleMonteiro
0
171
Member Avatar for Rahul47
Member Avatar for samii1017

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 …

Member Avatar for deceptikon
0
115
Member Avatar for jangojan

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 …

Member Avatar for tinstaafl
0
883
Member Avatar for kshahnazari

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 …

Member Avatar for deceptikon
0
140
Member Avatar for clubberlangMayo

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 …

Member Avatar for clubberlangMayo
0
331
Member Avatar for arcticman452

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 …

Member Avatar for peter_budo
0
106
Member Avatar for Wailintun

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!

Member Avatar for gon1387
0
909
Member Avatar for phfilly

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 …

Member Avatar for can-mohan
0
294
Member Avatar for rev_ollie

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 …

0
373
Member Avatar for can-mohan

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 …

Member Avatar for can-mohan
0
134
Member Avatar for anumash

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 …

Member Avatar for anumash
0
164
Member Avatar for SirVault

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 …

Member Avatar for AleMonteiro
0
239
Member Avatar for sumitrapaul123

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 = …

Member Avatar for deceptikon
0
320
Member Avatar for Galbatorix

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 …

Member Avatar for Khristophor
0
141
Member Avatar for edensigauke

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

Member Avatar for stultuske
0
86
Member Avatar for nickcolb

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 …

Member Avatar for stultuske
0
5K
Member Avatar for edensigauke

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?

Member Avatar for edensigauke
0
244
Member Avatar for stonebynature

Tools to Make the Life of a Web Developer Easier... *Typetester *pForm *ColourLovers *Firebug *HTML Entity Character Lookup *960 Grid System

Member Avatar for dafplumbing
0
122
Member Avatar for jangojan

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 . .

Member Avatar for rotten69
0
106
Member Avatar for lukas.vandendijssel

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> …

Member Avatar for bradly.spicer
0
316
Member Avatar for riahc3

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

Member Avatar for riahc3
0
86
Member Avatar for willlotr

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. …

Member Avatar for G_Waddell
0
878
Member Avatar for eburlea

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 …

Member Avatar for eburlea
0
531
Member Avatar for toomutch

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 …

Member Avatar for toomutch
0
333
Member Avatar for ZeeeeeV

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 …

0
169
Member Avatar for hinterface

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; } } …

Member Avatar for S N Prasad Rao
0
113
Member Avatar for davy_yg

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" …

Member Avatar for diafol
0
162
Member Avatar for hwoarang69

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 …

Member Avatar for jalpesh_007
0
298
Member Avatar for techyworld

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 …

Member Avatar for remunance
0
141
Member Avatar for mrbarbarik

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.

Member Avatar for remunance
0
131
Member Avatar for techyworld

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?

Member Avatar for radhakrishna.p
0
109
Member Avatar for snoowball

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 …

Member Avatar for snoowball
0
377
Member Avatar for Ritesh_4

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 = …

Member Avatar for Ritesh_4
0
268
Member Avatar for tifjones

Having trouble writing code for sum of numbers in visual basic 1 through 10 equal 55 need help please

Member Avatar for rishif2
0
67
Member Avatar for ray.chappel

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 …

Member Avatar for ray.chappel
0
379
Member Avatar for chdboy

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 …

Member Avatar for chdboy
0
3K
Member Avatar for silvercats

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 …

Member Avatar for silvercats
0
172

The End.