199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for seularts

I know this is a stupid question, but how can I get the value $mail out of this function? [CODE] function Email() { $the_name = $_SESSION[$this->GetLoginSessionVar()]; $profil_query="SELECT * FROM $this->tablename WHERE username='$the_name'"; $resultate_profil=mysql_query($profil_query); $resultat=mysql_fetch_array($resultate_profil); $mail = $resultat['email']; } echo $mail; [/CODE] Thanks.

Member Avatar for seularts
0
128
Member Avatar for cbusen

I'll prob post this thread in a couple places because of all the things it is and what its capable of...anything for help right? anyhow, here is my problem. I finally got Fallout: New Vegas, works fine but not for long, as soon as i go to start a game, …

Member Avatar for stbuchok
0
194
Member Avatar for Steve Mac

Hi everybody.. was wondering if it is possible for a person to set a specific height value for the detail section in crystal reports.I want the section to have 10 records and maintain a certain height.If the records are for example 2 or any number less than 10, the detailed …

Member Avatar for Steve Mac
0
98
Member Avatar for rminator

Hallo, i have a Csv file,i would like to read ,convert it and than represent it with Datagrid the fonction who read my csv [CODE]public List<String[]> Parse_CSV(String File_Path) { List<string[]> Parse_Data = new List<string[]>(); try { using (StreamReader Read_File = new StreamReader(File_Path)) { string Line; string[] Row; while ((Line = …

Member Avatar for rminator
0
809
Member Avatar for historymaker333

Hey, as a part of my semester project. I've made an application which is using the database from the data directory. But i wanted this application to be distributed and for others to be useing it on the same lan etc. So do i just have to change the connection …

Member Avatar for Ken Peterson
0
543
Member Avatar for strRusty_gal

Hi, Anyone know how to pass value from 1 javascript to another javascript? I wanted to pass 1 of the variable in A.asp to B.asp variable. is it possible to do it?

Member Avatar for strRusty_gal
0
140
Member Avatar for klemme

Hi guys, It is working fine, and only allowing letters and numbers. I want to a feature, so that it has to be between 3-20 charachters/numbers long. [CODE] if (!preg_match("/^[A-Za-z0-9]+$/i", $_POST['brugernavn'])){ $dosomething = ''; } [/CODE] This is not working: [CODE] if (!preg_match("/^[A-Za-z0-9]{3-20}+$/i", $_POST['brugernavn'])) [/CODE]

Member Avatar for klemme
0
4K
Member Avatar for abhi10kumar

How I can create url like [url]http://www.sitename.com/category[/url] (without slash). I know how to create [url]http://www.sitename.com/category/[/url] (with slash)

Member Avatar for nivibala
0
176
Member Avatar for jtodd

Hey everyone. I have been playing around with this code and have been getting this error message: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 7 at java.lang.String.charAt(String.java:686) at PhoneNumber.main(PhoneNumber.java:37) Java Result: 1 BUILD SUCCESSFUL (total time: 8 seconds) I understand what the java.lang.StringIndexOutOfBoundsException means but I don;t …

Member Avatar for JamesCherrill
0
2K
Member Avatar for leo88

Hi, I am doing a window servise application using VB.net. I have faced problems with sql suery, as below: [CODE] Dim dt As New DataTable() SQLStr = "SELECT FautyScanTbl.Model, FautyScanTbl.Version, FautyScanTbl.WIP, FautyScanTbl.ScanNo, FautyScanTbl.LotSize, FautyScanTbl.SerialNo, FautyScanTbl.PIC," & _ "SerialNoTbl.SetWeight, SerialNoTbl.AccesWeight, SerialNoTbl.pdmid, ScannedPartNoTbl.ScannedTime " & _ "FROM FautyScanTbl LEFT OUTER JOIN " …

Member Avatar for sandeepparekh9
0
125
Member Avatar for madehoney

Hi everyone Im new here and not very good with Javascript, so here im asking for a little help for my proyect the problem is Im trying to calculate text fields from results of php query my fields come from the query as amount1, amount2.... what i need is for …

Member Avatar for piepie22
0
2K
Member Avatar for doctorphp

Hi everyone. I am trying to write a script that lets users of my website purchase credits. They either have the choice of purchasing 1,2,4,6,8 or 10 credits. Here is the code for the PayPal IPN. [CODE] <?php include 'config.php'; // read the post from PayPal system and add 'cmd' …

Member Avatar for vibhaJ
0
435
Member Avatar for f_atencia

Hi all, I have an input box that should only contain decimal point numbers (including negative values), but I'm not sure how to remove invalid characters and replace it with something that is valid (i.e. the value e3.45 should be replaced with 3.45). If all the characters in the textbox …

Member Avatar for urtrivedi
0
178
Member Avatar for sha1023012

I am trying to figure out how to do tables in php. I am working on this.. [CODE]$balance=55.75; $newShirtCost=15.75; $earns=20.00; $bar=.55; echo "Starting balance:$balance"; $balance= $balance -$newShirtCost; echo "<p>Purchase: Clothing Store:".sprintf("$%.2f",$balance)."</p>"; $balance=$balance+$earn; echo "<p>ATM Deposit:".sprintf("$%.2f",$balance)."</p>"; $balance=$balance/2; echo "<p>Balance after split with wife:".sprintf("$%.2f",$balance)."</p>" [/CODE] This is suppose to be display in …

Member Avatar for karthik_ppts
0
143
Member Avatar for Diwakar Gana

Dear All, Can anybody tell me how to autoincrement the Hexa decimal value. For Ex: I am having the value FF0B in Result array and want increment it to FF0C. Now Result array should contain two values.

Member Avatar for Diwakar Gana
0
693
Member Avatar for Nitin Daphale

In my project I have 2 pages room.aspx and student.aspx. room.aspx contains grid of students. As soon as user double click on grid I popup window, and I show student.aspx page containing grid for students. Now I want to select few students from student grid and submit to room.aspx page …

Member Avatar for Nitin Daphale
0
134
Member Avatar for Arthi Raman

Hi, I need to give space between words in the following statement [code] r+='<option onmouseout="tooltip.hide();" onmouseover=tooltip.show("'+""+data_eval.data[t1].TECHNOLOGY+"-Technolgy_is_available_for_Project-"+data_eval.data[t1].PROJECT+"/Operator-"+data_eval.data[t1].Operator+"/Country-"+data_eval.data[t1].Country+"/Region-"+data_eval.data[t1].Region+'") value="'+data_eval.data[t1].TECHNOLOGY+'">'+data_eval.data[t1].TECHNOLOGY+'</option>';[/code] It is a tooltip. Thanks

Member Avatar for Shanti C
0
102
Member Avatar for Arjun_Sarankulu

I have a application which take data from CSV and dump to the respective table using SQLBULKCOPY I am using the same connection string for truncating data from the same table and while writing to server SqlBulkCopy bc = new SqlBulkCopy(connection_string1.ConnectionString, SqlBulkCopyOptions.TableLock); bc.WriteToServer(dt);//Its giving exception on this line I am …

Member Avatar for Arjun_Sarankulu
0
305
Member Avatar for moone009

I have a list box where the user can add choices depending on what items they want active in the database but I cannot figure out how loop through this listbox to update the items. Any ideas? Visual Studio 2010 [CODE] Dim lstitem As String For i = 1 To …

Member Avatar for NETProgrammer
0
2K
Member Avatar for solomon_13000

The date stored in my db is in the following format: 2011-06-10 17:15:26.000 2011-06-10 17:15:27.000 2011-06-10 17:15:28.000 2011-06-10 17:15:29.000 However I intend to retrieve the date above using the format below: 2011-06-10 How is it done? Your help is kindly appreciated.

Member Avatar for urtrivedi
0
168
Member Avatar for evil_iguana

Hi, I'm trying to write a maze program in MIPS and have almost all of it working except the recursion part. For some reason, it does not correctly move through the maze. In my code, the maze is fixed at 5x5. A 1 in the "maze" data indicates it's blocked. …

Member Avatar for GunnerInc
0
897
Member Avatar for Raim

I am trying to make the following program. SUM=1+1/2+1/3+1/4+1/5....1/n n should be input by the programmer. I thought that using [CODE]for[/CODE] would work, but it only gives me a series of 1+1 1+2 1+3,etc. What I wish to get is the series itself and the total addition of it. Any …

Member Avatar for Raim
0
162
Member Avatar for rhand

I am working on a local server on adding a media uploadbox to a Wordpress plugin Datafeedr Randam adds for a few days now and the code I have come up with so far is here [url]http://wordpress.pastebin.com/xF0xs9mL[/url] . Code added to load needed scripts starts at line 101 and media …

Member Avatar for gibigbig
0
282
Member Avatar for highlite

I have an array that I want to be able to access in two separate methods and also in other files. To do this I have had to declare it as Static, can this be done another way? because I don't want to declare it as static This is an …

Member Avatar for highlite
0
93
Member Avatar for revjim44

I've had one C# class two semesters ago, now as part of a UML/Object Oriented Analysis and Design class (with a programming prerequisite) I'm trying to take CRC cards and design specs and finalizing the code. However, between one C# class and one Java class, my syntax has all gone …

Member Avatar for Momerath
0
166
Member Avatar for sirlink99

I have a menu that I made, and the first time you select a program prom the menubar and click the launch button it launches the program, however when you select a different program, or to to the menu and reselect the same program then click launch it opens 2 …

Member Avatar for sirlink99
0
116
Member Avatar for bangla

1. employees table- emp_id is the primary key 2. department table-dept_id is the primary key. 3. Create or replace View emp_dept AS select e.emp_id, e.last_name, d.dept_id From employees e, department d 4. update emp_dept set last_name = 'munir' where emp_id = 11 ORA-01779: cannot modify a column which maps to …

Member Avatar for hfx642
0
79
Member Avatar for mukthyar1255

Hi, Thank you,I have some doubt in python programming like 1)Difference in between module,library,package. 2)what is difference in between built in and keyword. Eg: None,True is Builtins not keywords. 3)what is the use of writing the code(to call main method) if __name__=__main__:main rather than simple mian call main() 4) can …

Member Avatar for Lardmeister
0
307
Member Avatar for Ertzel

I'm working on a Chat program using a server and clients. I have all of that working fine but now I'm trying to setup accounts for the server to use and I'm having problems with checking if the password entered on login matches the password for the account. When the …

Member Avatar for Ertzel
0
147
Member Avatar for Edward472

I am writing a .Net application trying to automate keystrokes in a Thin Terminal called Persona. I can open the program and set my focus to it but what I need to do is click the connect button in the menu bar. I used Spy++ to look at the window …

Member Avatar for oredigger
0
160
Member Avatar for spartanace

Hey guys for some reason my code displays in the applet viewer in jgrasp and in eclipse, but for some reason it wont display via an html file in any browser. Any Ideas? Thanks in advance. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.applet.*; public class FamilyTreeTabbedPane extends JApplet implements …

Member Avatar for NormR1
0
540
Member Avatar for seblake

Greetings! I'll plead ignorance...that's easy. :-/ This is from: [url]http://www.w3schools.com/js/js_functions.asp[/url] [code] function product(a,b) { return a*b; } [/code] Without assigning a variable to the function, how does the correct value get returned? Or even interpreted? [pseudocode] a*b=c return c [/pseudocode] 2nd Q: Is this "undeclared (unseen) variable" local or global? …

Member Avatar for Airshow
0
121
Member Avatar for iamthwee

Not so long ago firstPerson started what was a series of competition questions for the users. It was fun so I was thinking of doing another. I've always kind of been interested in A.I so I thought that would be a good place to start.This is probably a more advanced …

Member Avatar for pseudorandom21
0
178
Member Avatar for ptara1

I have a html form on another page that is automatically filled from data from the table. I then run the the following script on submit to update the row if any information is changed. Here is the code [CODE] <?php $db=mysql_connect ("connection info") or die ('I cannot connect to …

Member Avatar for klemme
0
177
Member Avatar for calebcook

Hello! I want to create a script which mails emails to subscribers. I'm almost done, but I'd like it to say "Sent to # people". I've tried using: [CODE]<?php $dbc = mysqli_connect('localhost', 'username', 'password', 'database') or die('Error: Could not connect to database'); $query = mysql_query("SELECT * FROM table"); $number = …

Member Avatar for klemme
0
184
Member Avatar for sergent

I want to make a program, that will run every time I turn on the computer. Like Skype.. or Anti Virus programs. How would I do that?

Member Avatar for kerp
0
132
Member Avatar for arsheena.alam

I have a button in grid view.I am not able to select the current row through that button.I have to enable SELECT before clicking that button. But I dont want to enable SELECT. Now I want to know is there any way to directly select the currentrow without enabling SELECT.

Member Avatar for ddanbe
0
135
Member Avatar for skatamatic

So I wrote a little remote control client/server based app to turn off my roomates torrent client at night (to avoid having to go into his room). I could have done this with remote software such as teamviewer or VNC but I don't need all the functionality that they provide …

Member Avatar for butcher1012
0
418
Member Avatar for henrimontreal

I wrote this: [CODE] #include <stdlib.h> // system pause //#inlcude <ctype.h> // for toupper() #include <iostream> // input output #include <iomanip> // setw() #include <string> //#include <algorithm> //#include <iomanip> // for setw() and right-aligned //#include <math.h> // for pow() using namespace std; int main() { /* char alpha [26]; char …

Member Avatar for mike_2000_17
0
159
Member Avatar for krosty4782

Hi. I want to make a program to download files from a remote host. So what i do is to send throw sockets all the binary information + a string used as end "mystyring". To check if i have to continue writing the buffer to the file i first convert …

Member Avatar for oredigger
0
194
Member Avatar for zahrahLand

Hi everyone, I have two questions: Q1: I need to design and implement a simple web interface which works as a browser in which I should pre-process the page before it's displayed and mark up (highlight) some specific words? How can I do that? Q2: I need also to design …

Member Avatar for peter_budo
0
84
Member Avatar for HelenLF

Does anyone know if JQuery can be used to produce a slideshow like the one here... [URL="http://www.scottishweddingphotographer.com"]www.scottishweddingphotographer.com[/URL] Or is there a ready made script out there that does it already. Basically I need a row of thumbnails which when clicked reveal a scrolling slideshow. Thanks in advance

Member Avatar for stbuchok
0
92
Member Avatar for garwil

hI all. I have a similar problem to another thread in this forum which did help somewhat but in my case all my records are updating and I cannot get it fixed despite searching around the web... I have searched and tried different things but am not getting anywhere. Maybe …

Member Avatar for almostbob
0
160
Member Avatar for Seaboot

Please consider a beginner/intermediate question for which searching Google has provided me no results. I am attempting to write a program that compiles a script program into an assembly language module that I will then link to the main C++ program using Visual Studio. How is it possible for a …

Member Avatar for Seaboot
0
179
Member Avatar for whin_lopez

Hi please help me with this problem i really need it those kind hearted programmers out there please help me :) thanks

Member Avatar for longstrd
0
3K
Member Avatar for Labdabeta

I am making a program and I want to be able to determine the refresh rate of the monitor somehow (to limit an fps cap). I am using windows API. Is there anyway to access this?

Member Avatar for Labdabeta
0
961
Member Avatar for anurag.kyal

static void Main(string[] args) { string[,] fp = readFilePaths(); OleDbConnection con = new OleDbConnection(); OleDbDataAdapter da; DataSet ds = new DataSet(); con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/Documents and Settings/kyalanur/Desktop/Nav tool/PCGDataManager.mdb;User ID=;Password=;"; string sq = "SELECT * FROM History"; con.Open(); da = new OleDbDataAdapter(sq, con); da.Fill(ds, "History"); for (int i = 0; i …

Member Avatar for Momerath
0
580
Member Avatar for Freude

Hello everyone, I am trying to use gnuplot for visualization of data stored in a file which is dynamically changed during computations. My aim is visualization of data from this file every several seconds during computations. How can I refresh gnuplot output produced in the bash script (usually i call …

Member Avatar for Freude
0
123
Member Avatar for johndohmen1963

Hi hope someone can help me i have the folowing code [CODE]$weinachtfeier = $_POST['aname']; $mapbeschrijving = $_POST ['expl']; $slides="slides"; $thumbs="thumbs"; $new_height1=100; $new_width1=66; $new_height=66; $new_width=100; $allowed_types = array( 'image/pjpeg', 'image/jpg', 'image/png', 'image/jpeg'); $imagesize = $_FILES['pic']['size']; $imagetype = $_FILES['pic']['type']; $imagefile=$_FILES['pic']['name']; if(in_array($_FILES['pic']['type'], $allowed_types)) { copy ($_FILES['pic']['tmp_name'], $_FILES['pic']['name']) or die ("Could not copy"); $imagesize …

Member Avatar for johndohmen1963
0
615
Member Avatar for Dannis86

Hello everyone, I want to build on a project and make a website like youtube just for fun, nothing really special, can I get code already that has been programmed? Or should I go for a whole new code, ofcourse I don't want to copy youtube, just make a website …

Member Avatar for Dannis86
0
191

The End.