199,114 Archived Topics
Remove Filter ![]() | |
Hello Everyone i need help connecting my site to a database.. Either MySQL or PHP Which Is better. | |
[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); … | |
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 … | |
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 … | |
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 … | |
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 … | |
Is there a way to set exact coordinates for background image or it is limited to layout options? | |
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 … | |
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 … | |
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 … | |
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 | |
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!!!! | |
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 … | |
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? | |
haii... pls help me to get the cursor position in javascript....from textArea thankzzzzzzz | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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! | |
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 … | |
How to implement a digital library for my web site..can anyone help me | |
/*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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
hi, I don't know how to send a mail in localhost ? anyone help me! | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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...... | |
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 … | |
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 … | |
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, ',') … |
The End.