64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for PF2G

Hi, i'm doing a page where user can register and give up of a course: [CODE]<td width="5%"> </td> <td> PROGRAMAÇÃO: <br/> <?PHP $cc=$_GET['cod']; $sql_prog = "SELECT prog_curso FROM cursos WHERE cod_curso=".$cc; $query_prog = mysql_query($sql_prog, $connect); while ($row = mysql_fetch_array($query_prog)) { echo $row['prog_curso']; } ?> <br/> </td> <?PHP if(is_logged()) { ?> …

Member Avatar for pritaeas
0
152
Member Avatar for baig772

Hi all i want to check regular expression of a text field value i.e. it should not contain any '.,@' and other special characters except '_' and '-'. How can i write my rule in [code]preg_match()[/code] ?

Member Avatar for baig772
0
156
Member Avatar for subrata_ushasi

Hi all, I have a login page in localhost(website link : [url]www.csoftindia.net[/url]) . When I logged in it is showing alternate html "you are logged in as..." but when moving another page like news or other page session is lost either or it is not destroying session. Subrata

Member Avatar for baig772
0
635
Member Avatar for Ashenvale

Can anyone tell me y is it that taxDeduc won't return the value? [CODE] import java.util.Scanner; public class PayollComputation { public static void main(String[] args) throws Exception{ Scanner get = new Scanner(System.in); //variable declaration int ctr, loc = -1, payrollPeriod, daysAbsent, minsLate, oTHours; int tempENo = 0; char ans, ans2; …

Member Avatar for Ashenvale
0
159
Member Avatar for deyesborn

I am using mysql_fetch_array to fetch result from a table of my database and I want to exclude results from particular users from being fetch together with others. Example: [CODE]$result = mysql_query("SELECT * FROM users") or die(mysql_error()); echo "<table border='1' cellpadding='10'>"; echo "<tr> <th>ID</th> <th>First Name</th> <th>Last Name</th> <th>Sex</th> <th>Username</th></tr>"; …

Member Avatar for deyesborn
0
193
Member Avatar for docgrid

Hi everybody i need a bit of support in my vb coding. i have publish data on data grid(in vb express 2010) and want to check for the data in each an every row. there are few columns and i want to check the string "OK" under "Status" column. if …

Member Avatar for docgrid
0
209
Member Avatar for vinayphadke

Hi, I am using the 'DataGridViewCheckBoxColumn' class to show the checkbox in each row of gridview. The checkboxes require 0 & 1 values to show the checkboxes checked and unchecked. The select query which builds the datasource for Gridview shows the 0 & 1 values being fetched from database. Now …

Member Avatar for vinayphadke
0
131
Member Avatar for anthonyjpv

I know that php can validate data input before querying to the database but which is more preferable by the developer or user experience? validation thru php? or validation thru javascript? whats your insight about this? thank you!

Member Avatar for anthonyjpv
0
137
Member Avatar for Gaiety

Hi , what is the behaviour of below pseudo code. [CODE] pipe(fd) if(fork()){ read(fd[0]); } else { write(fd[1]); write(fd[1]); } [/CODE] I understand how system calls work , but could not understand the behaviour when used differently. secondly if a process uses while(1); in side its block, will the entire …

Member Avatar for Gaiety
0
187
Member Avatar for VIPER5646

Hi all. I have a program in vb.net and with it I have an expiration Key. I would like this key to be valid for 3 moths for example. I don't want to use the users system.date because to prevent them from changing the date. I there a way I …

Member Avatar for VIPER5646
0
116
Member Avatar for vivekanandaan

[CODE] Dim conn As New OleDb.OleDbConnection Dim dbprovider As String Dim dbsource As String Dim ds As New DataSet Dim da As New OleDb.OleDbDataAdapter Dim sql As String Dim maxrows As Integer dbprovider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;" dbsource = "Data Source = d:\sprrg\scm\scm\sprrg.mdb" conn.ConnectionString = dbprovider & dbsource conn.Open() sql = "select …

Member Avatar for malkit.672
0
197
Member Avatar for zidaine

hi i'm a newbie in php, plz help me with this. how can i put the value of my database to a textbox? can u give me a sample code.. thx...

Member Avatar for Persi
0
2K
Member Avatar for Megann1120

I'm working on a program that lists a numbers prime factors. I've finished the bulk of the work and all I have left is the first print where it says the number is prime or composite. I know the way I'm going at it is wrong because it wont work …

Member Avatar for Megann1120
0
301
Member Avatar for Ashenvale

:C my fresh install Netbeans 7.0 won't open and it says "JVM creation failed" can anyone pls tell me what's wrong? >.<

Member Avatar for Ashenvale
0
90
Member Avatar for issaru07

i know this is a simple error but i just couldnt spot the error and i run the query seems fine. really appreciated... pleasee help Parse error: syntax error, unexpected '=' in D:\xampp\htdocs\book\admin-order-details.php on line 16 [CODE] <?php $objConnect = mysql_connect("localhost","root","boon84") or die(mysql_error()); $objDB = mysql_select_db("db-test"); $id = $_GET['id']; strSQL …

Member Avatar for issaru07
0
128
Member Avatar for Labdabeta

I have an alpha beta interface and have implemented a tic tac toe class from it. For some reason my AI tends to occasionally make stupid moves (such as making a fork rather than blocking a 2 in a row) I was wondering if anybody can see where I went …

Member Avatar for Labdabeta
0
1K
Member Avatar for Ntropy

Basically, i've been told to initialise a grid into the "canvas" section of this program i've made, I need to make a fine grid that stretches across the whole canvas horizontally and vertically, 10 x 10 pixels apart example of the code i'm editing to do this below... [CODE] class …

Member Avatar for Ntropy
0
317
Member Avatar for javaprog200

Hello, The following program displays the text area for the entire JFrame even though I have set the dimensions of the text area to be 10 x 15. Any help will be greatly appreciated. Thank you! [CODE]import javax.swing.*; import java.awt.*; public class Scrollers extends JFrame { JTextArea area; JButton button; …

Member Avatar for javaprog200
0
183
Member Avatar for Sevyt

Can anybody tell me where i can find the connection string for using on a asp.net form. I am trying to connect a mysql database to it, and wanted to connect a access database to test the main functions. But i am having a hard time finding any of these …

Member Avatar for Sevyt
0
96
Member Avatar for wildplace

hi.. im trying to get a line using getline() function from an input file, but it is ignoring end line character. is there any other function that would including the end line character? btw, im not allowed to use something like aString+'\n' thanks in advance~

Member Avatar for WaltP
0
121
Member Avatar for breaies

Okay, I am receiving scores and names from a text file to calculate averages. 1 line contains a name, the next line will contain 3 scores separated by spaces. Looks like this: Tom Babidal 93 94 99 Billy Marks 13 98 56 etc etc My code seems to read the …

Member Avatar for WaltP
0
252
Member Avatar for kexkoj

Hi, So im trying to create a deposit method, but to no success. Can someone pls help me ?? This is my code for far: [CODE]static void depositCurrent (ArrayList<Current> CurrentListIn) { System.out.println ("Enter account number you want to deposit money into"); String accountNumber = EasyScanner.nextString(); boolean flag = false; double …

Member Avatar for kexkoj
0
175
Member Avatar for shandoosheri
Member Avatar for NetDeveloper
0
257
Member Avatar for Martin C++

I have a function that changes slides, I have created a pause and resume functions for it, but when the user presses resume button multiple times, then multiple instances of the script is beeing run and the images change too fast. I need to prevent this from happening. This is …

Member Avatar for Martin C++
0
2K
Member Avatar for tararakeane

I'm working through a book and my code is exactly the same as the book but not working correctly. Basically it's a typing game. System adds letters to a listbox which should disappear when I type them. Instead they're highlighting as I type them but are not being removed. I've …

Member Avatar for itzmesurya
0
886
Member Avatar for riahc3

Hey I want to control a textbox to only allow numbers, backspace and a certain length. Ive tried with the IsNumeric function but I cant seem to get it to work. Thanks.

Member Avatar for princenathan
0
4K
Member Avatar for krejar

My problem here is that I am trying to get the getBigJackpot() to correctly woork. If I were to win say 10 coins, it would store in an int, but if I were to win 5 coins, that 10 would stay and disregard the 5 coins won. If I were …

Member Avatar for krejar
0
121
Member Avatar for Rock_IT

im a beginner wid vb .net and need to clear the air wid connecting a database file created on sql server 2008r2 wid vb.net 2008 for a project..plz nebody help from scratch regardng retriving,insertng n modifyng data using vb.net code..awaiting....

Member Avatar for princenathan
0
223
Member Avatar for elbeato

jQuery issue here. After calling some ajax, I'm having a problem getting a particular div to reload a php file. The only solution that I've come up with is to completely reload the page, but this is really undesirable, because this function is being used as part of a simple …

Member Avatar for elbeato
0
174
Member Avatar for rfrapp

I'm writing a program that is supposed to search an array between the values of -1000 and 1000, as well as sort it using the 3 different sorts (bubble, insertion, selection). I have the searching part done, but my bubble sort isn't working right. It seems right in my head, …

Member Avatar for DeanMSands3
0
178
Member Avatar for scheppy

I know that .bat isnt java, but I dont know were else to place this thread So ive finished my program, has sounds, images and other junk all in a folder on my desktop. as soon as you open the folder you can see the file program.java and also folders …

Member Avatar for DavidKroukamp
0
306
Member Avatar for jigglymig

my problem is the Point plus(Point). how should I declare it and all that. [CODE]// point.h -- This creates a point with both x and y of type integer #include <iostream> using namespace std; template<typename T> class Point { private: T x; T y; public: Point(T,T); Point(); void set_x(T); void …

Member Avatar for jigglymig
0
110
Member Avatar for mallikaalokam

[CODE]import java.io.*; import java.util.*; import java.lang.*; class Login extends Thread { public void run() { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); Scanner s=new Scanner(System.in); while(true) { System.out.println("Enter username:"); String h=br.readLine(); System.out.println("Enter password:"); String d=s.nextLine(); } } } class Display extends Thread { public void run() { while(true) { System.out.println("ur username is:"+" "+h); …

Member Avatar for DavidKroukamp
0
145
Member Avatar for shanki himanshu

i am using 'atof' function to convert string into double but it shows the correct value if the string length is 17(max). is ther any function if string length is more than 17?

Member Avatar for DeanMSands3
0
150
Member Avatar for skran

Hi all I m trying to filter a sql db with many filter criteria which inert the user in textboxes .. i ve tryed this query [CODE]query = "Select * from T_INCIDENTS1 where IFF (txtPostcode.text is notNull) then Incident_Postcode='" & txtPostcode.Text & "') and iff (txtDMA.text is notNull) then Incident_DMA='" …

Member Avatar for skran
0
228
Member Avatar for NinjaLink

Pick a "c" and "n" for the problem below. f(n) = 2nlgn, g(n) = n^2-n My answer is below, but I am not sure if I am correct. I've been trying to figure out this same problem for a while. [B]The real solution is at the bottom, but I don't …

0
66
Member Avatar for Aser Gado

After successfully creating a registering system I can't use the login system I've created, it always gives the error message I've set "Wrong Email or Password" although the values are right! The code for validating the login process: [CODE] <?php $con = mysql_connect("***","*****","****"); mysql_select_db("*****", $con); $emailin=$_POST['emailin']; $passwordin=$_POST['password']; $emailin = stripslashes($emailin); …

Member Avatar for Aser Gado
0
90
Member Avatar for Virangya

hi, i'm trying to add a background color to a element which is positioned before the identified tag. for example, i know the class of one elment and i have a list like below. [CODE] <ul id="one"> <li><a href='#'>text0</a></li> <li><a href='#'>text1</a> <ul> <li><a href='#'>text2</a></li> <li><a href='#'>text3</a> <ul> <li class="item-1"><a href='#' …

Member Avatar for Virangya
0
126
Member Avatar for wallet123

this is the code that i did: [CODE]import javax.swing.JOptionPane; public class MidtermExam { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int x; int y; int z; int count = Integer.parseInt(JOptionPane.showInputDialog(null,"Enter any Number:")); for(x=1;x<=count;x++){ for(y=x;y<=count;y++){ System.out.print(x+""); } System.out.println(); } } } [/CODE] …

Member Avatar for stultuske
0
189
Member Avatar for azegurb

Hi all, i have taken from net script that it has curriying function which itself return function. But i dont understand why before [B]\$arg[/B] is added backslash. the same as on lines 10, 13, 19 and so on. [CODE]function add($a, $b) { return $a + $b; } $az=""; function _curry( …

Member Avatar for azegurb
0
237
Member Avatar for abe08

Hello.. I'm the newbie one. I have the file in php. I cannot solving the notice about [COLOR="Red"]Notice: Undefined index: add_item1 in C:\xampp\htdocs\guideline\xmladd_evidence.php on line 44[/COLOR] How to solving that? here my code [CODE] <html> <font size="20" face="arial" color="black"> <center><b> Add item evidence </b></center><br><hr/> </font> <form ACTION="" METHOD="POST"> <select name='add_item1[]' …

Member Avatar for simplypixie
0
99
Member Avatar for shaqib

hi, am getting the following error: Parse error: syntax error, unexpected T_STRING in C:\wamp\www\pro\Copy of procreate.php on line 268 but i am unable to find the error. here is my code <?php // Get values sent to page from user form input $space=$_POST['space']; $exten=$_POST['exten']; Echo "Writing file..."; $myFile = "$exten.cfg"; …

Member Avatar for dinhunzvi
0
461
Member Avatar for Aser Gado

Hello, how's everyone? I have created a page with a form for registration and and another php to process the registration and create the rows in the database, but the processor comes with errors. here is the PHP file: [CODE]<?php include 'dbconnect.php'; mysql_query("INSERT INTO users (firstname, lastname, email, password) VALUES …

Member Avatar for Aser Gado
0
138
Member Avatar for Wolxhound90

Hey all, I'm trying to show some concatenated data in a CheckedListBox so that users are able to select the data for use later on. Here is the code I am using currently: [CODE]Dim con As New MySqlConnection Dim theQuery As New MySqlCommand Dim theTables As New DataTable Dim theAdapter …

Member Avatar for Wolxhound90
0
257
Member Avatar for wallet123

My assignment is to create a program that accepts a list of exam scores (ranges from 0-100) and output the total number of grades and then the number of each in letter grade.. but my problem in the beginning of doing my program is: [CODE]public class Grades { /** * …

Member Avatar for wallet123
0
351
Member Avatar for furqanishaq

hiya i need to create these if statements please can someone show me how to create them i have attached an image alongside this thank you so far i have this public class Logic2 { int Val1, Val2, Val3, Result1, Result2; // creating 1,2,3 integers public void Calculations (int Val1,int …

Member Avatar for rushikesh jadha
0
145
Member Avatar for M.Waqas Aslam

hello ! my boss assign me a task to connect mssql server 2008 and show records in table using JS and JSON , i m very new in asp.net , can any one me help me where to start my work and how i can complete this , can any …

Member Avatar for mani-hellboy
0
181
Member Avatar for furqanishaq

How do we write something to square these calculations Result1 = Val3-Val1sqaured; Result2 = Val3-Val2; i need to square these calculation how would i do it so it meant to look like Result1= Val3-Val1sqaured; i cant get the squared bit thank you

Member Avatar for JamesCherrill
0
95
Member Avatar for gingank

Hi guys i need help i want to move the existing data from table 1 into table 2 how i need to write the query. I tried the select into statement but it did not work at all. So how to do it . Please help i doing this on …

Member Avatar for asad al
0
283
Member Avatar for aldm

Hi, I work on one project in ASP.NET MVC3. Everything worked fine, until I created new table Price_Ranges. I then tried to get data using LINQ, the following code: [CODE] IEnumerable<PriceRange> priceRanges = from pr in dbContext.PriceRanges join cat in dbContext.Categories on pr.Category_Id equals cat.Id where cat.Id==categoryId select pr; [/CODE] …

Member Avatar for aldm
0
242

The End.