199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tactfulsaint

Hello Everyone i need help connecting my site to a database.. Either MySQL or PHP Which Is better.

Member Avatar for mwasif
0
79
Member Avatar for lordx78

[code=php] <?php // auth.php // start session session_start(); // convert username and password from _POST or _SESSION if($_POST){ $_SESSION['username']=$_POST["username"]; $_SESSION['password']=$_POST["password"]; } // query for a user/pass match $result=mysql_query("select * from users where username='" . $_SESSION['username'] . "' and password='" . $_SESSION['password'] . "'"); // retrieve number of rows resulted $num=mysql_num_rows($result); …

Member Avatar for lordx78
0
97
Member Avatar for begyu

Hi, I have generated random unit vector. I would like to rotate it around the axes X,Y,Z in a random way. I thought that I generate 3 random numbers, e.g. 0,1,2. And if the random number is 0, then rotate the vector around X, And if the random number is …

Member Avatar for VernonDozier
0
154
Member Avatar for Gadrel

What ho Boys and Girls, I'm attempting to make a login page in a windows application in this loverly C# visual studio express 2008 and the problem is I'm a right dimbo,lol. Thus far I have created a SQL Database of 3 columns and a pretty form with username and …

Member Avatar for Gadrel
0
105
Member Avatar for LanierWexford

I am working on a home work assignment which is: "Write a program that will allow the user to enter an infix expression terminated by '=' your program will convert to Postfix notation" enter 3+7-6/2*8+7= prints 3 7 + 6 2 / 8 * - 7 + I have written …

Member Avatar for chalasesha
0
163
Member Avatar for rickster11

If anyone has a minute, I could use some help. Been working on this program all day. I know it's hard trying to understand someone's code and logic...but I'm hoping there is an easy solution here. My program needs to be able to read and write files at the push …

Member Avatar for rickster11
0
194
Member Avatar for peter_budo

Is there a way to set exact coordinates for background image or it is limited to layout options?

Member Avatar for peter_budo
0
109
Member Avatar for space1000

Hello, I have a problem with a varchar(15) field. We export this record with a bcp command and I get an new line in the export file from the specific field. When I look at this field then I just see 12 numbers in it. When I do a len …

Member Avatar for space1000
0
107
Member Avatar for girish.batra

Dear all I am still bit new in shell script area.I am writing down a shell script which I guess somewhere wrong so please kindly correct it. I would be greatful for that. What I actually want from this shell script is that it will move all the files one …

Member Avatar for girish.batra
0
116
Member Avatar for cosmos22

Hi. I'm trying to write a program that prompts the user of a message at a particular date. For example, a memorable date is set, and the program recognises this date from the code and lists a message. I would like to know how to make something that can capture …

Member Avatar for lAmoebal
0
82
Member Avatar for nelledawg

Hi guys, Okay so lets say I've got a functions program that asks the user for a product quantity, the cost to make the product, and the selling price of the product. I want to make a function called total() to receive either the quantity and cost, or the quantity …

Member Avatar for nelledawg
0
157
Member Avatar for serkan sendur

how do i catch events of a datalist in a repeater? I need to use datalist's ItemDataBound event but i cant use it because it is inside a repeater control. Thanks in advance

Member Avatar for serkan sendur
0
86
Member Avatar for dami06

I'm trying to input an image in a code i have but i tried using the html way which is [code=html]<td><a href="<?php echo $section_link[1]; ?>"><img src="../images/icons/graph.gif" width="32" height="32" alt="" /></a></td> [/code] But it doesn't seem to show the code in the page..How do i do this please HELPPP!!!!

Member Avatar for dami06
0
243
Member Avatar for nikk

Hello friends, I want to display the date retrieved from database on my JSP in dd/mm/yyyy format. However, if i directly use - result.getString(col_num) it gives me - yyy/mm/dd hh:mim:sec:millisecs Can you please tell me, how to convert retrieved date. It won't be possible for me to use - select …

Member Avatar for jinalh
0
289
Member Avatar for thewolfe

search engine script I'm looking for a search engine script that I can add to my web site so others can search for my site. Any ideas?

Member Avatar for vishalldce
0
270
Member Avatar for ajithraj

haii... pls help me to get the cursor position in javascript....from textArea thankzzzzzzz

Member Avatar for ajithraj
0
54
Member Avatar for bornok15

I've been working with a PHP site and below is the code for my index page.. how can i check the data first before going to POST? can i do it with a javascript? if the textboxes are blank it will not POST and just give a message.. and How …

Member Avatar for bornok15
0
131
Member Avatar for Jennifer84

For the string: "Number(1234)". I am looking for to extract "1234" and "Number" I have understand that I need to know where the positions is for ex "(" and ")". The code I have done so far look like this: [code] std::string Value10 = "Number(1234)"; size_t found1; size_t found2; found1 …

Member Avatar for mitrmkar
0
94
Member Avatar for heshangho

hey guys How do u define a 2by 5 array..is it mean int t [2][5].. how do u figure out how many elements in the array?

Member Avatar for heshangho
0
107
Member Avatar for wonder_laptop

i wrote a program called trivial.c that takes an integer "time" from the command line and does nothing but loop for 5 times and sleep for "time" seconds in each iteration. the loop looks something like this : for(i=0; i<5; i++) { sleep(time); } then a file trivial.data that contains …

Member Avatar for peaceful_soul
0
102
Member Avatar for justted

Hello everyone, For the navigation of my website I have decided to use a Drop Down Menu which I have inserted into the side menu template so it shows on every page. This is all fine except when you click on it the first time then its successfully loads the …

Member Avatar for justted
0
52
Member Avatar for bornok15

I've been having troubles in getting 2 variables from a function. I've tried to put 2 variables in a function and somewhat code it like in vb put it doesn't save it, even if i declare 2 variable as globals outside of the main. and also my loop statement is …

Member Avatar for bornok15
0
185
Member Avatar for reuifdjk

Hi all, I am currently doing an application using MS Access 97 as front-end GUI, connecting to a back-end Oracle server. The Oracle server version is 9.x. Now I wanna use integrated security so that I won't need to enter the username/password every time I start my application. The problem …

Member Avatar for reuifdjk
0
427
Member Avatar for agrawalashishku

I am having a strange problem. Please help me. I have a code which tries to solve the queen's problem. It is wrong so please dont bother yourself with the code unless you are interested. The problem is that when I execute this wrong code, it goes into infinite loop. …

Member Avatar for agrawalashishku
0
97
Member Avatar for remcob

Hello, When I have a created a socket (sd) connection and opened a file (fd). How can I send over a file? Create a buffer (char buf[BLOCK] ????)and send over block by block or so? And if so, what is most efficient block size? Cheers!

Member Avatar for remcob
0
93
Member Avatar for risa

I did HANDLE hHeap = GetProcessHeap(); which gives me the handle to the heap of the process then i did DWORD dsize = 468178553; (near pointer)PBYTE pBuffer = (LPBYTE)HeapAlloc(hHeap, 0, size); but here i got pBuffer as NULL and then i did _stprintf( (TCHAR*)pBuffer,"", , ,); here my program crashes.............may …

Member Avatar for risa
0
785
Member Avatar for sangeetha.n

How to implement a digital library for my web site..can anyone help me

Member Avatar for sangeetha.n
0
77
Member Avatar for purepecha

/*Your task is to create the special functions used by this routine, which are shown in blue in the above program. You need to write the functions so that they can be used by the main routine as shown. In other words, do not change the way the functions are …

Member Avatar for ithelp
0
112
Member Avatar for thomascrown

hello guys this is my first post. I was wondering if you guys can help me out validating this peace of my crazy programming. Just taking a class this semester, and i have looked around every where but i cant seem to find a standard it seems like there are …

Member Avatar for Joatmon
0
260
Member Avatar for Ankita B

thispage.jsp displays user id and name in a table format with radiobutton attached to each row.... [CODE]while(enum.hasMoreElements()) { String upid = (String)enum.nextElement(); String upname = (String)enum.nextElement(); %> <tr> <td> <input type="radio" name="idradio" selected="false" value="<%= upid %>" /> </td> <td> <% out.println(upid);%> </td> <td> <%out.println(upname);%> </td> </tr> <%} %>[/CODE] nextpage.jsp needs …

Member Avatar for Ankita B
0
864
Member Avatar for Noliving

I'm not seeing my bracket problem at all! [code=java]import java.util.*; /** A class to represent an ordered list. The data is stored in a linked * list data field. * @author Koffman & Wolfgang */ public class OrderedList<E extends Comparable<E>> implements Iterable<E> { /** A linked list to contain the …

Member Avatar for Noliving
0
251
Member Avatar for nirvana999

how can i Enable the F2 or f3 in my keyboard when i press the F1 in my keyboard?? btw this is my code i want to enable the F2 when i press F1......I've got an error when i press the F2 first before the F1....sorry for my stupidity it …

Member Avatar for debasisdas
0
73
Member Avatar for rickster11

I really don't understand what I'm doing wrong. I've made windows before..and never have had this problem. The code complies fine, but when I run it I get this message.. java.lang.NoClassDefFoundError: smartMonster Exception in thread "main" right now all I want is a window to pop up with a button. …

Member Avatar for jwenting
0
77
Member Avatar for kshrini

Hi All, I'm using MSFlexgrid in my program. I'm using Click event of it. But when I click on blank area after last row it still fires click event and focuses on a column. Is it possible to block the Click event when I click in blank space or block …

Member Avatar for SPereira
0
218
Member Avatar for LanierWexford

I have a modual(Is that the right term?)called WordPlay which has severl functions for exercises in Chapter 9 of "How to Think Like a (Python) Programmer". Below is my code for Ex9.3.2, which has the user input a string letters and then searches a .txt file(Attachment) for words that do …

Member Avatar for katharnakh
0
225
Member Avatar for dogma

I have limited oracle experience I want to dump a copy of one db and import it into a local oracle server which I'm using for dev. My problem is that I can't sort out the connect information (user@host:port/SID) type stuff. I've tried just connecting to the remote db using …

Member Avatar for debasisdas
0
235
Member Avatar for Exo1337

Write a program that uses while loops and performs the following Prompts the user to input 2 integers firstNum and secondNum // Easy Output all odd numbers between firstNum and secondNum // No idea how to start that. Outputs the sum of all even numbers between firstNum and secondNum Output …

Member Avatar for carnage
0
211
Member Avatar for sabatier

Hi folks, I'm building a database to store student exam results so that transcripts can automatically generated. This is a final year project for university so the database will never be used. I am a complete amateur when it comes to designing databases. [ATTACH]5254[/ATTACH] I have attached the relational schema …

Member Avatar for stoudemire1
0
4K
Member Avatar for justted

Hello everyone, I have been learning how to code a simple message board (or 'forum') and have really been proud of what Ive achieved so far. However, I want to include these message boards in my online community but currently members will have to add their name as a field …

Member Avatar for justted
0
270
Member Avatar for hungnguyen
Member Avatar for hungnguyen
0
56
Member Avatar for theNewGuy1992

Hey I am writing a program that will mimike a dice roll. I have the dice based on the value of a random number. the only problem is the random numbers don't change from one run to another, here is the code. #include <cstdlib> #include <iostream> using namespace std; int …

Member Avatar for vijayan121
0
163
Member Avatar for foundsheep

My form was working fine in the past, and now it is not. I'm not sure why. I've been through the code several times and have yet to find anything. The form posts with the general error that is in the code. So, something is breaking, but I'm not sure …

Member Avatar for foundsheep
0
119
Member Avatar for sofia24

Hi, I created a program to process the files in a directory. It also connects to the SQL server for data processing. The program catches any exception encountered. But what I would want to do is to force it to stop from processing. say if an error is encountered while …

Member Avatar for Ramy Mahrous
0
105
Member Avatar for ebabes

I wish to create an application that displays a message in a label assume that the messages have been stored in a string of array. The message automatically changes every after 30 seconds. How can I do the change of the message every after seconds in ASP.Net using C# as …

Member Avatar for ebabes
0
129
Member Avatar for ebabes

I have seen lately from this site a listing of all fields that can be inserted inside CSS. But I can't find it now. Can anybody give me the codes for all the fields in CSS?

Member Avatar for ebabes
0
146
Member Avatar for julichrist

hi, i'm newbie in python. i want to connect to MS SQL SERVER 7 on windows server, from Linux Slackware using python. I have install unixODBC 2.2.12 and FreeTds 0.64.. everything works fine include the tsql. but i don't know how to configure the odbc in odbc.ini and freetds.ini... need …

Member Avatar for julichrist
0
93
Member Avatar for shahriar2403

I am really having a tough time to update my report contents. Please help me with a project attaching with your solution. please help me quick......

Member Avatar for cometburn
0
480
Member Avatar for wonder_laptop

hello guys, [code=c] #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <errno.h> void main(int argc, char *argv[]) { int status; char *prog = argv[0]; char *new_cmd = "/bin/echo"; char *cmd_args[] = {"echo", "hello", "world", NULL}; char *cmd_env[] = {NULL}; status = execve(new_cmd, cmd_args, cmd_env); /* * execve does not return unless …

Member Avatar for wonder_laptop
0
124
Member Avatar for nathanpacker

Hey, I've got some values that don't seem to be calculating correctly. I've got two numbers, subtracting one from another, and instead of the answer being an exact number, like .06, it's coming out as like .0599999999. For some background, I'm working with monetary values, and since I'm so new …

Member Avatar for nathanpacker
0
245
Member Avatar for Jennifer84

I am using istringstream to put strings separated by commas to own std::strings. I have done this wich works: [code] std::string One, Two, Three, Four, Five, Six; std::string Value = "a,b,c,d,e,f"; istringstream is(Value); while ( getline(is, One, ',') && getline(is, Two, ',') && getline(is, Three, ',') && getline(is, Four, ',') …

Member Avatar for Jennifer84
0
191

The End.