199,114 Archived Topics
Remove Filter ![]() | |
media.php [CODE] <?php session_start(); if (empty($_SESSION[username]) AND empty($_SESSION[passuser])){ echo "<link href='style.css' rel='stylesheet' type='text/css'> <center>Untuk mengakses modul, Anda harus login <br>"; echo "<a href=index.php><b>LOGIN</b></a></center>"; } else{ ?> [/CODE] Notice: Use of undefined constant username - assumed 'username' in C:\xampp\htdocs\SourceCodePHP\bab 4\toko\adminweb\media.php on line 4 Notice: Use of undefined constant passuser - assumed … | |
Am a final year student doing a project on a Library management system using rfid. My problem is, how am going to make the rfid system work with my vb6 program. i.e the codes required and probably the plugins i would need to have to make this possible. | |
i've seen many programs using printf( ) for outputing(probable ported from C) but anyway, is there any difference between printf and cout? also i've seen many functions(expecially in windows.h) using w_char*(wide char string) as arguments or return value(and it bugs me because it makes difficult to use with strings) what's … | |
hello i have a form for registering the user and i use java script for client side check that the field is filled or not the problem is that when user not fill the first name and press register button it will show client side message that the first name … | |
1) what exactly is the difference in a constructor if you put reference on it? example[CODE]ConstructorX(string first):firstName(first)[/CODE] with [CODE]ConstructorX(string &first):firstName(first)[/CODE] 2) [CODE]const Array &operator=(const Array&)[/CODE] the first const what exactly means?the const in the parenthesis is that the object is constant if its at the end means the function cannot … | |
Hello Actually I have to print Report from php and iam using this code [CODE] <?php $handle = printer_open("Microsoft XPS Document Writer"); $handle = printer_open(); ?> [/CODE] bt iam getting following error Fatal error: Call to undefined function printer_open() in C:\xampp\htdocs\praveen\printer.php on line 2 what i have to do next … | |
can any one tell me to find out the list of databases that have “.ldf” size greater than “.mdf”. | |
heres's my code : [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javaapplication11; import java.awt.*; import java.awt.event.*; import javax.swing.*; /** * * @author Jayson Jude */ public class JavaApplication11 implements ActionListener { private JFrame window = new JFrame("Tic-Tac-Toe"); … | |
I want to integrate the mapquest in my website.I need to integrate the Get directions service from the mapquest.I got a map showing a route between two places.The points were given as static.Anyone can help me with sample codes or just with tutorials.Any help is appreciated.Thanks in advance. | |
Following is the code written to implement a employ manipulation system using pointer to structures . It makes some allocation problem in dev-cpp while work well in turbo c. Can you help me to understand the problem[CODE] // Implement pointers to structures to produce employ manipulation and produce output //as … | |
[CODE]UPDATE table2 SET table2col1 = table1.col1, table2col2 = table1.col2, ... FROM table1, table2 WHERE table1.memberid = table2.memberid[/CODE] will the above query help me to update fields from one table to fields in another table base on a common id between the two tables? | |
hi guys) please tell me - why the Turbo C show the error - [QUOTE]LINE_MAX is undefined [/QUOTE] for code = [CODE]/* */ #include <stdio.h> #include <alloc.h>/* */ #include <stdlib.h> #include <limits.h> main() { char a=''; char * ch; char * inputstr; printf("\nPlease specify the input string \n"); / fgets … | |
How to parse HTML text from a website using asp.net. Actually, I want to develop a dictionary program in which user types a word and the meaning of that word is fetch from wikitionary websites (or other dictionary websites). So, how can i fetch the html text. In java, there … | |
I have this form that has a textarea that is compulsory, it has a checkbox that allows it to be ticked to show a hidden textarea using css/jquery. What I would like is to know how to do the jquery to force input into the unhidden textarea only when the … ![]() | |
Hi, For some time I'm using window.createPopup(), recently I noticed that It cannot be used in modal dialogs that are opened in IE8 protected mode, So I was wondering is there still some way to make window.createPopup() work in the above situation, Thanks ahead, Daniel. | |
What im doing is i have a form with 4 inputs like below. and im using the post method to store the fields values so i can send them to the database. what i neeed is each input to be put into a separate row in a databases table. also … | |
Hi Can you please go through the HTML files and let me know where am I going wrong? Page1.html : [inlinecode] <html> <head> <title>PAGE 1</title> </head> <body> <form action="page2.html" method="get" name="LoginForm" id="LoginForm"> Username : <input name="username" size="20"> Password :<input name="password" type=password size="20"> <input type="submit" name="Login" value="Login" > <input type="reset" name="Reset2" … | |
Hi I have a issue that my application in currenlty doing number validation with an issue. I have a query that checks number is stored procedures but need more checks. [-d0-9] and checking that the lenth is 10 characters, all that is working as it should. The issue I'm having … | |
Id like to limit the text chars shown in this script because too many chars are displayed causing overlap (see link) no idea what to do, please help? p.s I dont know js so if you could kindly be very specific, thanks. :) see it here (bottom of page 5 … ![]() | |
Hi, I wonder which is best tool for synhronise localhost project with the same project on shared hosting. For example, when I run that tool, my localhost project should get all files that doesn't contain from shared hosting (newest added images for news, organizations etc). I need something like SVN, … | |
Hello there! :) For the last couple of days, I've been working on a new project. The idea is to create a virtual adoptable pets system integrated with my forums. While I have much of it covered already, I am new to dynamic images and the GD library. So I … | |
Hi I have a issue that my application in currenlty doing number validation with an issue. [-d0-9] and checking that the lenth is 10 characters, all that is working as it should. The issue I'm having is: '0000000000', '1111111111',....,'9999999999' that passes my checking but is there a Regular Expression to … | |
I have a map that is not returning the correct number. First it did, then it didn't now it's just messed up. Any help is appreciated.Thanks. [CODE]struct file_data { std::wstring sLastAccessTime; __int64 nFileSize ; }; int GetFileList(const wchar_t *searchkey, std::map<std::wstring, file_data> &map) { WIN32_FIND_DATA fd; HANDLE h = FindFirstFile(searchkey,&fd); if(h … ![]() | |
Dearest VB GuRus, thanks for all your contributions. this time, I have a problem and I need your magnanimous assistance and contributions. I have developed a a VB Cash-expense application and I am designing a Database using MS-Access to be used as back-end. I am confused on which fields should … | |
So I am supposed to write a class that converts fahrenheit to celsius (& vice versa), calculates the volume of a sphere after a radius is entered, and calculates the hypotenuse of a right triangle, all using nothing but static methods. Here is what I have so far; [CODE]class Fun … | |
i'm trying to create a search bar where the user searches for an item. the items are in ArrayList and there is multiple ArrayLists. I want the user to be able to search for something, from all the available ArrayLists and show the result possibly in another listBox.. ie. user … | |
Hi Guys. Random no.'s always bother me.So,I want to start a discussion over their uniform distribution. Given : rand5() which generates randomly distributed no. from 1-5. To Code: rand7() which generates randomly distributed no. from 1-5. You have to give code using rand5() as well as without using it. Thanks, | |
Hi, I have a datagridview on my form.There is a column of roll no in the datagridview. I want that whenever user presses anyother key than a number key(ex:1,2,3,4....)than immediately i should get a messagebox that only numbers allowed. I have tried the below code on datagridView Cellvalidation event but … | |
Hello, I am trying to translate my Visual Basic program to C#. Right now i am have having problems translating this code [CODE]Private Sub SerialPort1_DataReceived(ByVal sender As System.Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived inchar = SerialPort1.ReadLine IDstr = Microsoft.VisualBasic.Left(inchar, 2) Datastr = Microsoft.VisualBasic.Right(inchar, 6) result = Val("&h" & Datastr) … | |
Hello everyone, I wrote an Ajax API, and I thought that it may be of some use to you all. I will post the code and explain it here. [CODE]/* <!Tut note: do not use "var" to declare x or req. function makeReq() { target="http://yourserver.com/login.php"; data="yourdata=this&itsplace=thisstring"; req = new Request("post", … | |
Hi, my problem is, I have set the parameter to be 150 in the database. and the alert triggered should refer to the parameter value. if the calculation result exceeds the parameter value, it will turn the box to red colour. however, i notice that it only compares the first … | |
I'm not sure if this is the right forum or not, but I have been trying to compile some example code from [I]Game Coding Complete 3rd Ed.[/I]. The project uses LuaPlus for scripting and it also makes use of the Boost Library. Both of these seem to have a namespace … | |
I have finished desgning a website for a student exchange program. Please assist in availing the code JS code for slide shows on web background Help please It's urgent | |
[B]How To Find determinant of a metrix using c#???[/B] How to find determinant of a metrix using C #.Please give me the complete coding in C# to find determinant of a metrix.i want to do this problem in console application..expecting reply thank you | |
[CODE] import java.io.*; public class CheckersGame { public static void main (String []args) throws IOException { BufferedReader jill = new BufferedReader (new InputStreamReader (System.in)); System.out.print("Enter name of the first to move: "); String name = jill.readLine(); System.out.print("Enter name of " + name + "'s opponent: "); String opo = jill.readLine(); … | |
I am using VB.net to develop an application, but there needs to be applied to the dll technology. So come here to seek help. First I will describe the features I need this dll I want to monitor an application's window to get in on a PSD_ENVSTAMPRECT the lParam value. … | |
I have decided when I have free of free time I will be playing around small php editor. I was wondering where I can get a list of keyword for mentioned languages, preferably in csv or like format Thanks! [B]EDIT:[/B] I forgot CSS | |
HI, Here is my code which I am trying to run: import array a = [] for i in range(0,10): a.append(i+2) class A: def __init__(self,a): self.var1=a[0] self.var2=a[1] class B: def __init__(self, a): self.g1 = a[2] self.arr = [] cl1 = [] var = A(a) for j in range (0,10): cl1.append(var) … | |
So I have these two forms. On the 1st form, I have a button and on the 2nd form, I put a tabindex and created a two tab pages. If I click the the button, I want to go to the 2nd tabpage. here's my code.. TabPages2.show() It doesn't work … | |
So the prelab for my CSE class asks Your assignment in version 1 is to write a Java program that lets you select six lottery numbers. For this version, you can accept any six values including duplicates. Your program must have the following elements: - Create a class named Lottery1 … | |
Hi, This is going to be a xpath query. In the input xml, elemt 'e' is the fifth child of root element. Using the apply template and template match, am at element 'e'. How can i get the value, 5(fifth child), within the template, e. I tried using position, but … | |
hello all I found the sample code ,but do not understand how the author found the value of width and height in the frame,anyone can tell me ? frame.setSize(120, 285); According to my count the value must be : frame.setSize(110,250); thank you denny [code]import javax.swing.*; import java.awt.Color; public class Traffic_Lights{ … | |
Hi All I am referring an xml file(document.xml), through document function. Based on the input xml id value, I am taking the corresponding value from document.xml. The output will have this corresponding value and the position in input, as shown in the actualoutput.xml. However, would like to generate an output … | |
I have looked around the website using the search and have seen old post so I am posting a new question most likely to an old answer. I am trying to read data from a file into an array and then pass it on to a function. I also have … | |
Hello everyone, I wrote an Ajax API, and I thought that it may be of some use to you all. I think that it's pretty self-explanatory. Post or PM me if you all need more or need help. Peace! -Stev | |
Hi all, I am working on affiliate network project. it is having flash banners , for that we create dynamic flash empty .swf file , we pass the 3 parameters, they are 1.inner is a dynamic .swf file to load in my empty .swf. 2. url is a redirect url … | |
Hello again. On topic, haha, I am using VB 2008, then I noticed that with the Provider.Oledb.12.ACE = database.accdb whatever connection string uses the bin/debug/database.accdb file when I connect my program with a database. Suddenly, a database with the same name appeared on the lets say "WindowsApplication1" folder. Then whenever … | |
I've been away from my C# programming course now for months and am very rusty to say the least. My assignment calls for the creation of a MDI text editor project. I am currently having trouble in coding such that the child form containing a rich text box is recognized … | |
Hey Guys, Im a young programmer from Dominican Republic and im wondering how do I add data from my database to my datagridview.I know how to add it when the datagrid is empty but I want to add the data to two existing columns in my grid.When I add it … | |
$user['username'] = name of the table producttotal 500 6105 131 [CODE]$ordertotal = mysql_query("SELECT SUM(producttotal) FROM ".$user['username'].""); echo "Order total: ".$ordertotal;[/CODE] why is the result "Order total: Resource id #7". I wanted to sum all the values below producttotal column. Thanks in advance. |
The End.