199,124 Archived Topics
Remove Filter ![]() | |
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. | |
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, … ![]() | |
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 … | |
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 = … | |
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 … | |
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? | |
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] | |
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) | |
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 … | |
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 " … | |
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 … | |
![]() | 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' … |
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 … | |
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 … | |
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. | |
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 … | |
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 | |
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 … | |
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 … | |
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. | |
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. … | |
![]() | 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 … ![]() |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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? … | |
![]() | 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 … |
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 … | |
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 = … | |
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? | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 ![]() | |
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 … | |
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 … | |
Hi please help me with this problem i really need it those kind hearted programmers out there please help me :) thanks | |
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? | |
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 … | |
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 … | |
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 … | |
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 … |
The End.