199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for davy_yg

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 …

Member Avatar for mschroeder
0
2K
Member Avatar for cloris

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.

Member Avatar for emond
0
145
Member Avatar for dospy

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 …

Member Avatar for dospy
0
271
Member Avatar for Rizi004

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 …

Member Avatar for phoenix_2000
0
114
Member Avatar for ntrncx

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 …

Member Avatar for dospy
0
225
Member Avatar for prvnkmr194

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 …

Member Avatar for phoenix_2000
0
2K
Member Avatar for Ashoksql

can any one tell me to find out the list of databases that have “.ldf” size greater than “.mdf”.

Member Avatar for mikemsq
0
118
Member Avatar for judeabao

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"); …

Member Avatar for Taywin
0
165
Member Avatar for mathewmoozh

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.

Member Avatar for Brian@MQ
0
130
Member Avatar for niyasc

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 …

Member Avatar for Narue
0
187
Member Avatar for springposh

[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?

Member Avatar for Netcode
0
57
Member Avatar for vedro-compota

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 …

Member Avatar for vedro-compota
0
2K
Member Avatar for sagar.kadam022

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 …

Member Avatar for nakor77
0
108
Member Avatar for mr_scooby

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 …

Member Avatar for stbuchok
0
903
Member Avatar for vedmack

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.

Member Avatar for vedmack
0
156
Member Avatar for reco21

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 …

Member Avatar for reco21
0
150
Member Avatar for parani

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" …

Member Avatar for Taywin
0
221
Member Avatar for Singlem

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 …

Member Avatar for debasisdas
0
111
Member Avatar for Inny

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 …

Member Avatar for stbuchok
0
334
Member Avatar for aldm

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, …

Member Avatar for aldm
0
394
Member Avatar for jmvazq

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 …

Member Avatar for ashishzakar
0
690
Member Avatar for Singlem

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 …

Member Avatar for Singlem
0
117
Member Avatar for DSTR3

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 …

Member Avatar for MonsieurPointer
0
274
Member Avatar for Easytime

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 …

Member Avatar for xuqi
0
172
Member Avatar for 5minutes

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 …

Member Avatar for JeffGrigg
0
171
Member Avatar for walid86

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 …

Member Avatar for walid86
0
170
Member Avatar for L0s3r

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,

Member Avatar for StuXYZ
0
166
Member Avatar for Ehtesham Siddiq

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 …

Member Avatar for Ehtesham Siddiq
0
1K
Member Avatar for GaryS92

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) …

Member Avatar for GaryS92
0
263
Member Avatar for steventaal

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", …

Member Avatar for urtrivedi
0
114
Member Avatar for violette

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 …

Member Avatar for Pgmer
0
104
Member Avatar for csb4622

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 …

Member Avatar for packerx
0
188
Member Avatar for kwamba

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

Member Avatar for divyakrishnan
0
69
Member Avatar for Manswab

[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

Member Avatar for Manswab
0
191
Member Avatar for mrjillberth

[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(); …

Member Avatar for mrjillberth
0
2K
Member Avatar for ctjh900801

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. …

Member Avatar for ctjh900801
0
335
Member Avatar for Stefano Mtangoo

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

Member Avatar for Stefano Mtangoo
0
147
Member Avatar for puruharsh

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) …

Member Avatar for Stefano Mtangoo
0
184
Member Avatar for jefroxnergal

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 …

Member Avatar for jefroxnergal
0
93
Member Avatar for sebseb678

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 …

Member Avatar for Majestics
0
107
Member Avatar for jaango123

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 …

Member Avatar for jaango123
0
264
Member Avatar for dennysimon

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{ …

Member Avatar for Majestics
0
109
Member Avatar for jaango123

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 …

Member Avatar for jaango123
0
121
Member Avatar for ussra2

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 …

Member Avatar for WaltP
0
958
Member Avatar for steventaal

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

0
216
Member Avatar for raju_boini525

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 …

Member Avatar for raju_boini525
0
184
Member Avatar for bunik34

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 …

Member Avatar for bunik34
0
143
Member Avatar for Chellam2

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 …

Member Avatar for samson_zed
0
248
Member Avatar for acepeda

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 …

Member Avatar for Mitja Bonca
0
151
Member Avatar for ken.atienza

$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.

Member Avatar for sun-tzu
0
101

The End.