199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Vampiricx3

Hey guys, I'm trying to create my own personal API (more like a simple way for me to write long codes), and i've run into a snag. I want to create a simple function to detect whether or not I want the consoleWrite() to print out a new line system …

Member Avatar for ~s.o.s~
0
95
Member Avatar for Stretty

Hi I have a form page (form.php) which calls a seperate PHP page to insert a new record (insert.php). Insert.php then redirects to a listing page (list.php) using [CODE]header('Location: list.php?z='.$access);[/CODE] ($access is the user id and priveledge level and is passed through all pages as our company does not allow …

Member Avatar for Stretty
0
261
Member Avatar for jonnyboy12

Hello all. I am working on a pop3 connection. The problem is that after i have connected , when i try to read the stream, it will work. Although the next time i read from it it will just stop my program execution and hang. Like as it its in …

Member Avatar for thines01
0
141
Member Avatar for garden4ork

Hey, I'm having trouble transferring a single row of data from a StringGrid through a Client/Server module and then add the row onto another StringGrid at the other side. I keep getting array errors which would make sense however surely you can just take a row and add a row? …

Member Avatar for garden4ork
0
132
Member Avatar for dujgaran

Do the following tasks: Task 1 Create an enumerated type named AccountType for representing different types of bank accounts (checking and savings). You will create two variables by using this enum type, and set the values of the variables to Checking and Deposit. Task 2 Design a class named BankAccount …

Member Avatar for syd919
0
237
Member Avatar for arunpawar

I am trying to create a url bookmark script for my own use. Here's the code. [CODE]<?php mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("delicious") or die(mysql_error()); $data = mysql_query("SELECT * FROM stacks") or die(mysql_error()); if(mysql_num_rows($data)) { echo '<table cellpadding="0" cellspacing="0" class="db-table">'; echo '<tr><th>No</th><th>Name</th><th>URL</th></tr>'; while($row2 = mysql_fetch_row($data)) { echo '<tr>'; foreach($row2 as …

Member Avatar for broj1
0
109
Member Avatar for karan_kanna

Hi , i have a dump file . i want to load it into a dictionary. i am using pickle load to load it as shown below: pkl_file = open( r'D:\work\dumpfile.dat', 'rb+') FinalTable = {} FinalTable = pickle.load(pkl_file) The problem is it is loading only one key and value from …

Member Avatar for Gribouillis
0
210
Member Avatar for tahirkhanafridi

Hi friends! i have a drop down combo box which holds names of persons with php mysql order by asc query like a's name put in 1st and after b's and c's and in last it shows z's name now i want that if it will show tahir name in …

Member Avatar for pritaeas
0
169
Member Avatar for Naveed_786

Hi All, I want to ask you a question. Can you tell me how can i record a call from my phone to my PC? What method should i adopt? Should my telephone is is connected to my PC through a wire?

Member Avatar for Naveed_786
0
121
Member Avatar for reds8

This is my code to create textboxs with button. Now I need a button which to delete all the text box. What is the way of doing it ?? AND can I write the code below as a class and I just call the class in the button only?? [CODE] …

Member Avatar for Reverend Jim
0
1K
Member Avatar for km2011

Hello, everyone! I am trying to generate a random number with Java, but random with the fix number of reviewers per object.Example: I have 5 reviewers(r(i)) and 5 objects(o(j)), a[i][j] is the evaluation score that reviewer(r(i)) has evaluated object(o(j)), and my question is i want to labeled each object should …

Member Avatar for NormR1
0
682
Member Avatar for Newbienoob

I have problem with printing the binary tree.After i put the numbers it is just closing.Can't find the problem,somehow it ignores the function called "printukas". [CODE]#include <stdio.h> #include <stdlib.h> struct tree { int data; struct tree *rajt; struct tree *left; }; typedef struct tree node; int main() { init(); } …

Member Avatar for Banfa
0
147
Member Avatar for sajaddehghan

I don't know what the "*" or "**"or "***" means. could anyone help me please? [CODE] #include <iostream.h> #include <complex.h> #define PI 3.141592654 extern int phin,Ne; extern double Lamda; extern double ***TS; extern double ***TF; extern complex **d; extern complex *bd;[/CODE]

Member Avatar for JasonHippy
0
154
Member Avatar for arunsolo1984

how to perform a 64-bit addition in c? but the following code fails? why? I have taken this code from stack overflow. But this doesnot works. Pls help me. I need to perform 64-bit addition in c. I am using 32-bit compiler. :chomp: :chomp: /* break up the 64bit number …

Member Avatar for Banfa
0
188
Member Avatar for laura301019

$dbQuery="select id, name from artists where name like '$keyword%' order by name asc limit 15"; $dbResult=mysql_query($dbQuery); echo mysql_num_rows($dbResult)."\n"; while ($dbRow=mysql_fetch_array($dbResult)) { // for each artist, return the number of albums belonging to that artist // use a separate query here to obtain the number // return the number after the …

Member Avatar for Biiim
0
426
Member Avatar for c++ prog

I'm creating a game here using a vb.net.....to make my project more interesting, i'll add a flash animation before the game begins to serve as the story of the game....but the problem is i don't know how to add it into a form....i didn't found anything in the toolbox that …

Member Avatar for donniedonos
0
236
Member Avatar for lhsunshine

My problem is for postItem.aspx and giveComment.aspx, users cannot access without login. Can i use the nested-if method? Then how to use it? Thank you... In Login.aspx.cs if (temp == 1) { string cmdStr2 = "Select Password from Reg where Username= '" + txtUN.Text + "'"; SqlCommand pass = new …

Member Avatar for CriticalError
0
186
Member Avatar for learntosucceed

I'm trying to use these icon images for my JButtons, but I keep getting "Resource not found: " [url]http://java.sun.com/developer/techDocs/hi/repository/TBG_Media.html[/url] [CODE] static ImageIcon createMediaIcon(String imageName) { String imgLocation = "/toolbarButtonGraphics/media/" + imageName + ".gif"; java.net.URL imageURL = Test.class.getResource(imgLocation); if (imageURL == null) { System.err.println("Resource not found: " + imgLocation); return null; …

Member Avatar for ejosiah
0
347
Member Avatar for Ctechnology24

Guys I am having a problem on how can I display array of records using mysql_num_rows, I cant use mysql_fetch_array because the format like this [CODE]$row['MR_no'];[/CODE] that encloses the name of the field inside brackets in my SQL codes this is my codes: [CODE]<?php $username = $_SESSION['username']; $query = "select …

Member Avatar for Biiim
0
221
Member Avatar for t_daniweb

Having trouble getting the QuickSort to work in this code. I turned off the counter for now, just trying to get the sorted array to display correctly. This is the results I get from the code: This program keeps track of the number of comparisons required to to sort a …

Member Avatar for t_daniweb
0
247
Member Avatar for hasan_cemos
Member Avatar for peter_budo
0
96
Member Avatar for ravi52542

Hi, i need to know whether 2 or more jqueries can be used inside a module or a form but when i tried to do only one works the other is disabled pls help me to solve this solution

Member Avatar for ravi52542
0
109
Member Avatar for Joker500

This is an assignment that i am doing for my class. Everything seem to work right expect for one code which for some reason is not outputting the account type.i am not getting any errors at all.I am input an char type not an number type. just does not seem …

Member Avatar for WaltP
0
523
Member Avatar for ghostonline2020

i tried refreshing the page using header but it didnt work.. header .. my "the 9th line from the bottom... thanks in anticipation of your replies <form name="page" method="POST" action="page.php"> <fieldset> <label for="name" id="name_label">Name</label> <br /> <input type="text" name="name" id="name" size="30" value="" class="text-input" /> <label class="error" for="name" id="name_error">This field is …

Member Avatar for pritaeas
0
181
Member Avatar for darthswift00

Hi i have a problem where i want to use 2 radio buttons to view sum data related to them. e.g. if i select DVD then all the dvd's listed in my database must display, and if select CD then all cd's will be displayed on my data grid(2 radio …

Member Avatar for darthswift00
0
330
Member Avatar for raredesign

I know there are more accurate geolocation methods, but I want to have it transparent to the user rather than ask them to "allow". I am using a very simple method and it works great on most of the computers I have tried, but on some such as my grandmothers …

Member Avatar for chrislim2888
0
245
Member Avatar for dioz20

Hello. I'm currently coding a customer/product/etc registration site and there's this problem I just kinda can't figure out even after searching around on the web. The DB consists of 8 tables User (for login handling) Customer (for customer registration) Product (for product registration) ProductCategory (for product category registration) Cleaning (for …

0
77
Member Avatar for zingwing

I'm current trying to write codes that will read a .txt file and count the words and sentences. Right now im currently just trying to count words. So far my code is counting all multi-letter words but not single letter words. I know i can hard code in 'a' and …

Member Avatar for zingwing
0
192
Member Avatar for hubertj

i was wondering if someone can help me with this Java codes? [CODE]/** * This is a class of Money for us to be able to input an amount and do addition or substraction * to it and display the balance.. * * @author HUBERT JIANG * @version 0.2 */ …

Member Avatar for stultuske
0
166
Member Avatar for AliQadir

Hi, I have GridView on my asp.net Page I want to validate the Gridview. I want that in my Grid , Records with Null Value do not be displayed,Like I have some Null values In second column rows So I need to Hide those Null Values, In fact Entire row …

Member Avatar for KushMishra
0
119
Member Avatar for bloodbender

Hello Daniweb, I just created a small program that generates a random integer between a given range then asks the user to guess the number, giving hints like "Too high" or "Too low" along the way until they guess the correct number. I have it all working smoothly, except when …

Member Avatar for stultuske
0
131
Member Avatar for baig772

Hi all I am trying to show a comment box under each post, i have tried [code]<?php get_template_part( 'content', 'single' ); ?> <?php comments_template( '', true ); ?> [/code] but the comment box is still invisible

Member Avatar for simplypixie
0
203
Member Avatar for priyadharsinism

I have a login form in my project and i want to know the code how to show the other forms only when the login is successful. The code below is the login code. [CODE] <?php extract($_POST); $uname=$_POST['user']; $pwd=$_POST['password']; $con=mysql_connect('localhost','root','') or die('could not connect:'.mysql_error()); mysql_select_db("priya",$con); $result=mysql_query("select * from user where …

Member Avatar for simplypixie
0
82
Member Avatar for dgordon1966

I am having trouble getting this to work. I am getting "Parse error: syntax error, unexpected T_STRING in public_html/send.php on line 22. Line 22 is the mail statement I highlighted red. If anyone can help me out I would be very grateful. <?php $to='dgordon1966@gmail.com'; $subject='Registration Confirmation'; $number=$_POST['text1']; $name=$_POST['text2']; $body= .$name. …

Member Avatar for simplypixie
0
84
Member Avatar for momonq1990

please help me to this issue. its driving me nuts for an hour :( Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /hermes/bosweb/web033/b336/ipg.asiahomecom/tile/tilesCollection.php on line 16 my line 16 code: while($row=mysql_fetch_array($a)){ my code.. --------------------tileVerification.php---------------------- <?php session_start(); if (!$_SESSION['user']){ header('location: tiles.php'); exit(); } ?> ---------------------connectionIn.php------------------------- $con = …

Member Avatar for momonq1990
0
98
Member Avatar for sikarenpo

good day! i'm an old member of this forum but unfortunately i forgot both my email and pw. >< so i created another account. :) with all due respect is there somebody who can help me with this code. i've created a menu link from the database [CODE] <?php $con …

Member Avatar for simplypixie
0
167
Member Avatar for Mosey Mo

Hello, I am a student attending a communintiy college in southern California. Im currently taking a course entitled, "Programming in C++.". The class book is entitled, " An Introduction to Programming C++", Sixth edition. I need, help with my homework. Our homework is to workout the exercises at the end …

Member Avatar for ravenous
0
1K
Member Avatar for SQLpower

Basically I need some serious help on this one, last one. I am really confused. How can I get my yearofbirth, month of birth and day of birth from my login page, with only having Username/Password as login?? Just basically, creating a [CODE] $_SESSION = ['age'] = The age of …

Member Avatar for simplypixie
0
317
Member Avatar for anita_86

Hi all.This is part of my code which I am using to edit the record from database.Initially the input boxes show the values from database and if any one of the value is changed, I want to reflect the change according to the changes made in the fields.The code works …

Member Avatar for anita_86
0
167
Member Avatar for bavenbabu

I am not redirecting to the respective page.What might be the reason?????Can i get my code correctly.Any help would be appreciated <form action="rollno.php" method="GET"> <table> <tr> <td>username</td> <td><input type="text" id="username" name="username" value="<?php if (isset($_GET['username'])) { echo $_GET['username']; } ?>"><span style="color:red"> <?php if(isset($_GET['username'])&&($_GET['username']=="") ) echo "please enter username" ;?></span></td> </tr> <tr> …

Member Avatar for simplypixie
0
97
Member Avatar for RobotFX

Well, I hope this is the right forum, first of all. Here's my issue: I have a lot of images stored in subfolders like this example: [I]/Stallone/photos[/I] or [I]/Aguilera/photos[/I]. I'd like to move all the images from the [I]photos[/I] folders one folder up, if possible. I'm hoping maybe there's a …

Member Avatar for RobotFX
0
113
Member Avatar for semor7

can u help me plz people with this problem? i have 2 checl boxes bol1 and bol2 and i stored a record after ticking one of them and now i want to make a function to retrive what i stored in the access data base in check boxs as well …

Member Avatar for Pgmer
0
117
Member Avatar for sridhar.selva

hi, i m doing a program now. in which i need to get ascii values like SOH, NUL etc from the serial port. i m getting the values as string. i don know how to process the ascii values to obtain the original values back. example my data is SOH …

Member Avatar for sridhar.selva
0
240
Member Avatar for webmedia

My sms gateway save message data in log(MSSQL) in Hex code, like this: 0046003A0062006F006B0040007700650062006D0065006400690061002E0070006C These are Unicode message (16 bits per characters) Each 4 characters is AsciiHex representation of a character (in hex): For example: “0046” = 46hex = ‘F’ “003A” = 3Ahex = ‘:’ how can I convert this …

Member Avatar for webmedia
0
720
Member Avatar for versatile36
Member Avatar for newbie1234

I want to encrypt my 128 bit string using AES encryption. example 128 bit string = "A#$RFDE%t^&jhy*i" with 128 bit key = "CDF$#%Tgfvb^%&$C" [url]http://www.cryptopp.com/[/url] Is here any help to encryption. I gone through crypto++ library. But it seem tough to understand.

Member Avatar for raptr_dflo
0
252
Member Avatar for vanesh

I already input grades for the first student and the all grade information will save in the database. but when i'm trying to input grades for the other student i can't save the grade but there is no error shown. [CODE]Private Sub cmdSave_Click() On Error Resume Next If Val(txtcount.Text) = …

Member Avatar for Jx_Man
0
124
Member Avatar for razamughal67

Hello everybody i want to get recycle bin all files and folders in a list box using visual basic 6.0 please help me to solve this problem

Member Avatar for Jx_Man
0
383
Member Avatar for roshu10

hi friends,,,,, i am doing an gaming project in vb.net 2008.. my problem is i wrote code to play the video in button click,, so codes after the video playing code in button click must stop for 5 seconds.... how to do it???? i cant use threading.thread.sleep(5000) if i use …

Member Avatar for Gé48
0
157
Member Avatar for zhouy

This is my matrix. I want to solve C,D and E <uploaded> Can anyone give me the sample codes to solve C, D and E in VB.Net? Answers are C=0.4857143, D=0.0000000 and E=-0.1428571 (manual calculation) Thanks!

Member Avatar for zhouy
0
1K

The End.