199,112 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Awah Mohamed

hi everyone i need your help i want to write a code that gets for me the latest 5 out puts here is my code [CODE] <?php $con = mysql_connect("localhost","awah","pass"); if(!$con) { echo "cant connect to db".mysql_error(); } $select = mysql_select_db("awah_admin"); if(!$select) { echo "cant select db ".mysql_error(); } $query …

Member Avatar for Awah Mohamed
0
86
Member Avatar for ninja_girl

I have searched the forum and Google but there was nothing that would give me a clue what's wrong with my code. I'm just starting PHP and I'm trying a few things. :) I have a page with login. Logging in works wonderfully, storing sessions with username does too. However, …

Member Avatar for ninja_girl
0
308
Member Avatar for vedro-compota
Member Avatar for vedro-compota
0
84
Member Avatar for Randophera

Hi, I'm kinda new here, and I've only been programming for 6 or 8 months, so please forgive me if I sound like a total noob or an idiot with programming. I've been trying to code for my school assignment two AIs that are supposed to navigate around a maze. …

Member Avatar for ChrisKelso
0
309
Member Avatar for rossie queen

hi everyone, i have a problem in converting the c++ language to c language. can anyone help me to do this because i just learn programming. #include <stdio.h> void choosePlay(char); void playGame(int,int,int,int); void match(int[][4]); int r1,r2,c1,c2; char comma; int cards[4][4]={{1,3,2,4},{4,2,3,1},{5,7,6,8},{8,6,7,5}}; void main() { char click; char newcard; cout<<"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"; cout<<"@ @\n"; …

Member Avatar for gerard4143
0
355
Member Avatar for Cool&Awesome

Hi Everybody, I'm posting this after 10 hours of trial and error, hope someone has an idea... What I'm trying to do is make thumbs out of numerous images, and it works for a small number of images (a few) but for anything more max_execution_time is exceeded (and i cannot …

Member Avatar for Cool&Awesome
0
88
Member Avatar for mayank.dyl
Member Avatar for mayank.dyl
0
113
Member Avatar for ceyesuma

Hello Could help me get the right MySQL on my computer. I had it installed but it was a couple years ago. My cp crashed. I can't remeber how or what to install. All I have left is the script I used. I was running the command window one. that …

Member Avatar for smantscheff
0
148
Member Avatar for iraqi4life

There is text file with information held on it, with average rainfall per month. 1914,50.9,87,115.8,32.3,47.1,56.6,97.1,63.9,48.1,62.4,110.3,190.8 1914 being the year and the average rainfall follow it. The year goes up to 2008. I created a enumeration which has Jan-Dec (months) And I need to create a class which will store the …

Member Avatar for iraqi4life
0
183
Member Avatar for RobBobSmith

Hello all, I'm having trouble with making a 2d vector array class. Would anyone have time to help with a couple of questions? I think my problem is with overloading (). I notice that this: [CODE]template <typename T> T& Array2d<T>::operator() ( int x, int y) { if( x >= rows …

Member Avatar for RobBobSmith
0
190
Member Avatar for BigBang5

#include <iostream> #include <cmath> using namespace std; int main () { int numMonths; double balance; double numBalance; float rate; double totDeposited = 0.0 ; double totWithdrawn = 0.0 ; double mthlyInterRate = 0.0; double totInterest = 0.0; cout << " Enter the initial balance ===> "; cin >> balance; cout …

Member Avatar for SgtMe
0
166
Member Avatar for Boshkash

pla, i need asource code writen in c# to detect the caller id on my modem and then print in atextbox, file, ....etc. just i want the source code to can get the caller id thank u very much

Member Avatar for leecorp
0
956
Member Avatar for jpknoob

I'm having trouble displaying results when i connect to 2 databases. My connection script seems to be working fine and returns no errors; [CODE]$connect1 = mysql_connect("localhost","user","pass", true); $connect2 = mysql_connect("localhost","user","pass", true); $db_selected = mysql_select_db("database1", $connect1); $db_selected = mysql_select_db("database2", $connect2);[/CODE] When i run the queries, however, I'm only managing to get …

Member Avatar for jpknoob
0
116
Member Avatar for Ace1.0.1.

I just want modify the program below to print + or - minus after the letter grade based on the last digit. [CODE]// Chapter 6 - Exercise 1 // A professor generates letter grades using /* 0 - 60 F 67 - 70 D 71 - 80 C 81 - …

Member Avatar for SgtMe
0
152
Member Avatar for daneuchar

Hello every i have been coding in php for sometime and knew about frameworks like zend cake etc. but my real confusion starts here, is it better to write codes without framework or is it better to write code using frameworks.:?::confused:

Member Avatar for daneuchar
0
132
Member Avatar for bookmark

Hi, I'm having a problem with this program. When I choose an option, all the program does is output three random numbers with letters in them. Do any of you know what my problem is? Any help is appreciated. Thanks for taking the time to read my program. - bookmark. …

Member Avatar for bookmark
0
135
Member Avatar for h0neydip

Ok so i have this login form with session and cookies, how can i redirect the user to another page if the user fails to login after three attempts, and hitting the submit button at anytime is an attempt,does using SESSION come into play here?, your help is greatly appreciated.

Member Avatar for sudeepjd
0
467
Member Avatar for tendaimare

'A way to connect to SQL with VB.Net using Classes 'This must be a class on its own Imports System Imports System.IO Imports System.Data Imports System.Data.SqlClient Imports System.Web Public Class frmConn Public Shared Function ConnSQL() As SqlConnection Dim connectionString As String Dim cnn As SqlConnection connectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\App_Data\test_db.mdf;Integrated Security=True;Connect …

Member Avatar for AndreRet
0
2K
Member Avatar for gikonyo

am writing an sql statement that can change the username and password but it is not working this is the code on line 19 $sql = "UPDATE login SET username= newusername('$_POST['newusername']'),password=newpassword('$_POST['newpassword']) WHERE username = '$_POST['username']',password='$_POST['password']"; this is the error Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in …

Member Avatar for gikonyo
0
116
Member Avatar for filmPC

1.In the Java API, the String class and all numeric wrapper classes (Number, Integer, Float...) are immutable. Name 3 other classes in the Java API whose objects are immutable. Give an example of creating a new object from each class. 2. Name 3 classes in the Java API whose objects …

Member Avatar for apines
0
144
Member Avatar for TrustyTony

This code is giving minimal change from real Python class to JavaMonster with every method having setter and getter not following the PEP8 naming but capitalizedWordsFormat. When instrunctor turns his head or if you put the code in your library, you can simply remove the setter/getter lines.

0
261
Member Avatar for nk28

Hey all I am trying to make GUI windows using Tkinter and have got stucked. Its exactly like an installation setup where you move to new windows . I have been unable to understand how to create multiple application windows in Tkinter. I want that according to user input I …

Member Avatar for SgtMe
0
801
Member Avatar for floatingDivs

Hi Daniweb, I've got a question regarding what I call "dynamic URL rewriting" -- which is probably the wrong term -- and need some help. OK, so basically, I know how to rewrite the URL for static pages (i.e. have "localhost/index.php" also work as "localhost/index". However, let's say I have …

Member Avatar for kb0000
0
189
Member Avatar for pixelss

Hello, i'm learning object -oriented programming, I was told to create a program that once the class had been designed, to create an object of the class and prompt the user to enter the name, type, and age of his or her pet. The data should be stored in the …

Member Avatar for SgtMe
0
906
Member Avatar for gikonyo

am getting this error after executing the select query. Notice: Undefined index: unit8_code in C:\wamp\www\ELIZA\viewresults.php on line 129 the following is line 129 $unit8_code=$row['unit8_code']; please help to troubleshoot

Member Avatar for gikonyo
0
67
Member Avatar for Nathaniel10

This is part of my Wumpus Hunt program. Suggestions were to clean up the main() part of the program by creating functions. I am working on that and ran into this difficulty (for me). The functions that relate to the rooms of the game need to return an array. I …

Member Avatar for arshad115
0
232
Member Avatar for Mubusher

sir i am having a Visual Studio 2008 but it not install with crystal report when i open add new item-> its didnot contain Crystal Report how can i add crystal report and make crystal reports in visual studio 2008 how i install crystal report with visual studio 2008 only …

Member Avatar for Luc001
0
582
Member Avatar for ankit.pandey3

<?php $dbc=mysqli_connect('localhost','root','','nog') or die('Not Connected'); $query="select * from registration"; $result=mysqli_query($dbc,$query) or die('Not Connect'); if ($result) { // create a new form and then put the results // indto a table. echo "<html> <body>"; echo "<form method='post' action='approve.php'>"; echo "<table cellspacing='0' cellpadding='15'> <th width='15%'>User Id</th> <th width='55%'>Name</th> <th width='15%'>Age</th> <th width='15%'>Blood …

Member Avatar for ankit.pandey3
0
1K
Member Avatar for fritzgarcia_29

I have dtpker1 and dtpker2 to choose from the date and I want to display in Listview. the problem with this code is that it cannot display dates from the listview. Please help me with the right syntax plzzzzzzzz.........:) Thank you so much!![code]Option Explicit Dim rs As New Recordset Dim …

Member Avatar for AndreRet
0
2K
Member Avatar for Sunshineserene

Hi all, I'm actually equating a 2D array from a class to another class. I call it using method call. However, it seems like the 2D array is empty after I equate it to another 2D array in another class. May I know where is the problem? [CODE]import java.io.*; import …

Member Avatar for apines
0
242
Member Avatar for realproskater

So i need help doing this project and heres what i have to do for the program i left some comments on what my code does etc, please help. Write a program to compute the square root of a number. DO NOT USE any math libraries in this program. You …

Member Avatar for mtbs1826
0
688
Member Avatar for sharadkmittal

I have a gridview, with first column as checkbox. I also have a checkbox "Select All", which select/de-selects all checkboxes in the first column of Grid. But when after selecting-deselecting the grid checkbox through "Select All" checkbox, I selects few checkboxes in gridview and see the result of the checked …

Member Avatar for Luc001
0
1K
Member Avatar for nikita.chandra

Hi! please help me for how can i scroll through database using JDBC on a jsp page. if i m creating 4 buttons say First,Last,Next,Previous. First button will take me to the first record of the database. Last button will take me to the last record of the database. Next …

Member Avatar for peter_budo
0
104
Member Avatar for edwardlee2708

Help I'm looking to find a fix for webapps running on a tomcat with IIS6 running on it too. Why am I getting this message. HTTP Status 500 - ________________________________________ type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception …

Member Avatar for peter_budo
0
356
Member Avatar for ashishvijayata

hello friends, can i change the port of oracle 10.i am using tomcat 6.0 and both are using same port 8080.so how could i use oracle with tomcat in windows 7.Reply plz.

Member Avatar for peter_budo
0
92
Member Avatar for Lightslei

My task was to create a program that would copy a file. Ok, didn't look too hard using the textbook and class notes, heavily borrowing from the textbook. However these 2 errors have me stumped. invalid instruction operands segment, group, or register expected. The first one refers to this: mov …

Member Avatar for low_coder
0
86
Member Avatar for mayank.dyl

Please provide some links to good downloadable e-books for JSP. This collection may be helpful to all the jsp community.And please keep on adding as you comes to know about some good ones. Thanks a lot !!

Member Avatar for peter_budo
0
110
Member Avatar for neo_31591

hey guys... my database consists of questions...for a quiz....i need to read the question so that its displayed into the JLabel... [CODE=JAVA] //package Proj; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*; class Testpage extends JFrame implements ActionListener { public static String usr; JMenuBar mbr; JMenu File,Help; JPanel p1,p2; JLabel …

Member Avatar for neo_31591
0
2K
Member Avatar for youlichika

I have 3 divs. I want distribution them random (when refresh the windows, three divs' position will be changed) I think Math random() can solve this problem, but how to do that? Thanks. [CODE]<div id="div1">...</div> <div id="div2">...</div> <div id="div3">...</div> <script> Math.floor(Math.random()*3)+1; ... </script>[/CODE]

Member Avatar for youlichika
0
193
Member Avatar for niths

hello all, i need multiple upload at once for my site.that should be a very similar to this [url]http://demo.element-it.com/Examples/multipow/index.htm[/url] 1.simple upload (click on that) i tried this but it is trial version. so can any one suggest me if there are any other like this and that should be freeware... …

Member Avatar for Cool&Awesome
0
120
Member Avatar for mashhype

Hi I am new to C. I'm taking an operating systems class right now and I have a project that requires me to create a set of semaphores. The command line takes in: filename ropt NS value1 value2 value3...valueNS Where argv0 is the filename Argv1 is the option to remove …

Member Avatar for apines
0
79
Member Avatar for cwarn23

Hi, I'm writing a large program but require Multithreading for this software. I've searched the web for just over an hour and now is just after midnight but still can't find anything simple. The only thing I saw that came close to what I need was at [URL="http://www.computersciencelab.com/MultithreadingTut1.htm"]http://www.computersciencelab.com/MultithreadingTut1.htm[/URL] but I …

Member Avatar for Ancient Dragon
0
728
Member Avatar for erum

can u correct the error Parser Error Message: Type 'System.Web.UI.UpdatePanel' does not have a public property named 'table'. i have following code [CODE]Public Partial Class WebForm1 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Protected Sub RadioButtonList1_SelectedIndexChanged(ByVal sender As Object, ByVal e …

Member Avatar for erum
0
260
Member Avatar for Joey_Brown

Hello I hava a question regarding assembly. How could I take a number from register and find out how many hundreds, tens and ones it has. For example a number 412 has 4 hundreds 1 dozens i 2ones. Ive tried with looping a sub with a BRMI branch, but the …

Member Avatar for low_coder
0
113
Member Avatar for tKc

i have my program outputting a number grid that is nxn. i have it using a 2d array to output my grid but the issue im having is that when the user wants to input a number that is in the nxn grid, the value is not being replaced by …

Member Avatar for WaltP
0
226
Member Avatar for Kingcoder210

I need to know how can I make trial(demo) version of my program. Normally people use date & time to do it. But if user will change his system date I guess it will not work. I need to know the best way of making trial version which will work …

Member Avatar for low_coder
0
238
Member Avatar for jnick12

Can anybody tell what I need to do to make this program restart after it finishes without having to exit? Some kind of loop or something...??? [CODE]#include <iostream> using namespace std; int main () { double operand1, operand2; double sum, difference, quotient; char choice; cout << "\n\nBASIC CALCULATOR\n" << "a. …

Member Avatar for WaltP
0
1K
Member Avatar for prabhakarn

I just downloaded a socialengine script. it works fine with my local WAMP server. but when i get it online i get the[B]" Autosuggest is already set!"[/B] in every page. and every page contains two duplicate of the same page (ie., two header and two footer) but the site works …

Member Avatar for prabhakarn
0
101
Member Avatar for jnick12

How do I validate that the input from the user is a number and nothing else within each case? [CODE]#include <iostream> #include <cstdlib> #include <iomanip> #include <limits> using namespace std; int main () { double operand1, operand2; double sum, difference, quotient; int exit = 1; char choice; while (exit == …

Member Avatar for WaltP
0
1K
Member Avatar for tastyTreeHUGGER

I am writing a calendar in C. I'm still very new to the language. I think i wrote most of the functions/algorithms correctly (it would be nice if you guys could check for any errors too). Now I'm having a tough time printing the calendar out In a correct format. …

Member Avatar for tastyTreeHUGGER
0
304

The End.