199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MatthewYeend

I'm getting two errors detailed below: Notice: Undefined index: username in C:\wamp\www\member.php on line 8 Call Stack # Time Memory Function Location 1 0.0006 131808 {main}( ) ...\member.php:0 ( ! ) Notice: Undefined index: passwd in C:\wamp\www\member.php on line 9 Call Stack # Time Memory Function Location 1 0.0006 131808 …

Member Avatar for MatthewYeend
0
383
Member Avatar for Amaina

I have this code session_start(); $username = $_SESSION['username']; function getUserRole($username, $roleid){ $con=dbConnect(); $query="select * from user inner join userrole on user.id = userrole.userid inner join role on role.id = userrole.roleid where username = $username"; $sql=$con->prepare($query); $sql->bindValue(':username',$username); $sql->bindValue(':roleid',$roleid); $sql->execute(); $row = $sql->fetch(); $username = $row['username']; $roleid = $row['roleid']; if($row > 0){ …

Member Avatar for diafol
0
2K
Member Avatar for Kayla_1

HELP! I've been working on this assignment for a while and can't get it to work. It's supposed to pull contact info from a text file, and then return it. Every time I try to run it , it returns "no entry found" no matter what. HELP! #Declare constants lastname …

Member Avatar for woooee
0
920
Member Avatar for Aeonix

I think this is called "foreign key" and "local key" ? I have a table `users`, these users have `rank`. It's an `int`. There is a table named `rank`, this table has field where hexadecimal string is placed `FF0000`. Is there a way to `SELECT * FROM users` and `SELECT …

Member Avatar for Aeonix
0
453
Member Avatar for TheFearful

Hey everyone, I have a question about a database design that I have right now. The template I was given from someone is the first attached that you will see. I looked at it and figured that the database design of that is not the best, so I decided to …

Member Avatar for TheFearful
0
344
Member Avatar for karlcunanan

Good Day VB.net Geniuses! I'm just wondering if there are still any other free reporting tool that can be use for Visual Basic 2010 Express edition since Crystal Reports is not working for Express edition :( I only have a simple MS Access Database :)

Member Avatar for psychi_beavis
0
3K
Member Avatar for Papa_Don

Hi Group, I've imported an existing form into a new project that I'm creating (using Visual Studio 2015 Express/VB.net). When displaying the "Design" version (the user interface), it looks like a plain form and doesn't resemble the actual form in the original program. As per the directions, I added the …

Member Avatar for Minimalist
0
5K
Member Avatar for Nisa_1

I want to make game that looks like Rocket Mania, it almost done but something was wrong with the TriggerExit. and now i and my team was stuck and dont know how to continue this game. Maybe same of you guys please help us to make this game out?

Member Avatar for Nisa_1
0
324
Member Avatar for daniel955

Hi I am a beginner in game programming and would like to make a rocketmania clone using opengl, the display and interaction part is done. I also have a classes named gameboard and tiles with their properties. but I am having problems on game logic, where the fuel flows into …

Member Avatar for Nisa_1
0
538
Member Avatar for KushMishra

Hi, I am developing a WPF application in which I need to call `MouseLeftButtonDown` event in a single `DataGridTextColumn`. For that I wrote some xaml code as :- <DataGridTextColumn x:Name="myAge" Header="Age" Binding="{Binding Age, Mode=TwoWay}" IsReadOnly="True" Width="*"> <DataGridTextColumn.CellStyle> <Style TargetType="DataGridCell"> <EventSetter Event="MouseLeftButtonDown" Handler="{Binding MyAgeCommand}" /> </Style> </DataGridTextColumn.CellStyle> </DataGridTextColumn> But I am …

Member Avatar for Alex_45
0
8K
Member Avatar for cproger

I am writing a code for a user to choose numbers in a progress bar. For some reason the progress bar does not fill up or empty when the int progress is not exact. For example: The progress bar value is 5 at the moment. The user chooses 250 Million …

Member Avatar for cproger
0
252
Member Avatar for mailtosarach

Hi all, I want to write a program in python to capture memory and cpu readings of a process which is running on linux server and save the readings in a tabular format to any .doc or .csv file. Got to know that 'top' command would give the cpu and …

Member Avatar for Gribouillis
0
311
Member Avatar for James_43

Hi all, Submitting forms to PHP is easy with Ajax. But what if I wanted to design my website to allow for JS-free web browsers? If I call a PHP file with Ajax, I might get an error message in return to dynamically add to the page, but if I …

Member Avatar for jacks009
0
235
Member Avatar for AntonyRayan

Hi, I have a page for sending SMS by selecting anyone organization, By selecting organization, it will calculate how many customers are there to send SMS, It will display the SMS Count along with all managers names using JQUERY AJAX. For counting this value,it takes so much time in online, …

Member Avatar for jacks009
0
201
Member Avatar for Ankit_22

Can anyone help me out with this program import java.util.Scanner; public class Quadratic { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Enter three coefficients for a quadratic equation: "); double a = sc.nextDouble(); double b = sc.nextDouble(); double c = sc.nextDouble(); if (a == 0.0) System.out.println("Error: …

Programming java
Member Avatar for JamesCherrill
0
424
Member Avatar for phphp

Sir, please help me to locate the error, if user not found or wrong user name password etc then all codes work fine but when I enter correct user name and password then no result. <?php session_start(); require_once("includes/connect.php"); require_once("includes/functions.php"); if(isset($_POST['login'])) { $muser=clean($_POST['username']); $mpass=clean($_POST['password']); if(empty($muser)) { echo ('<script type="text/javascript">alert("User name must …

Member Avatar for PsychicTide
0
345
Member Avatar for ramsiva

I have multidimensional array that include department and category. Based on the selecting department and category, i need to search names. below is my code $shop = array( array( "emp_name" => "ramu", "department_name" => "cse", "Number" => 15 ), array( "emp_name" => "ramesh", "department_name" => "eee", "Number" => "56", ), …

Member Avatar for radow
0
715
Member Avatar for Brian_18

Hi, this was my previous post https://www.daniweb.com/programming/software-development/threads/504670/need-help-with-a-java-program-that-will-indent-code-from-another-java-file#post2204763 I heard it would make more sense if I put all the code on one line and worked on it from there. I already have code that will indent properly, but I need code that will properly separate the text in Code.java This …

Member Avatar for JamesCherrill
0
453
Member Avatar for screenedcreamy

How to copy folders from one system to another within the network. We would need to provide username pwd for authentication to establish connection. Is it possible to achieve this using java?

Member Avatar for JamesCherrill
0
190
Member Avatar for mcroni

hi everyone, i am currently creating an app in android and i used a package from kivy garden;androidtabs but i want to open another screen but it doesnt seem to work from kivy.app import App from kivy.uix.boxlayout import BoxLayout from kivy.uix.button import Button from kivy.uix.textinput import TextInput from kivy.uix.floatlayout import …

0
184
Member Avatar for Mayukh_1

I have inputs in the form like below Data: 01 18 01 23 45 67 89 AB CD EF FE DC BA 98 76 54 32 10 01 23 45 67 89 AB CD EF 02 18 67 89 AB CD EF FE DC BA 98 76 54 32 10 …

Member Avatar for Gribouillis
0
343
Member Avatar for tapuwa2002

Hi guys I was hoping you could help I would like to add 10000 records in mysql db.All once with after running a single php script. in one of the fields should generate 10000 rand generated numbers. Any suggests would really help. I was thinking of a for loop. [CODE] …

Member Avatar for cereal
0
3K
Member Avatar for Hilal2009

I made a simple complain management system in VB.NET, but I want to display daily, weekly, monthly and annual reports at any time when it will be required. The only hardness I'm suffering here is to get let's say the specific date just after the past 24hrs, past 7 days …

Member Avatar for ddanbe
0
783
Member Avatar for xuexue

Hi! I have two tables. Table 1 - fields are: no, referenceno, date, marine Table 2 - fields are: no, referenceno, controlno, date What I would like to do is to retrieve the field **controlno** from table 2 when field **marine** in table 1 = "Y". Coding: SELECT NO, REFERENCENO, …

Member Avatar for xuexue
0
234
Member Avatar for Ani_1

I'm trying to write a method that returns a sub lists and each containin the max value of strigns from a larger list. I'm using iterator and backtrack recursion to achieve this, however - I'm not familiar with backtrack recursion. Any suggestions on how to make this work. Or if …

Programming java
Member Avatar for AssertNull
0
292
Member Avatar for ramsiva

any body help me to convert php multi dimensional array to php multi dimensional array format $data = array( array( "emp_name" => "ramu", "department_name" => "cse", "Number" => 15 ), array( "emp_name" => "ramesh", "department_name" => "eee", "Number" => "56", ), array( "emp_name" => "ravi", "department_name" => "it", "Number" => …

Member Avatar for PsychicTide
0
440
Member Avatar for TheFearful

Hey everyone, I have a question. I have a web app where you have a table that will either update, delete, or add a user. The update works great but the delete is weird. It deletes just fine, but I ask for a confirmation first before the action is completed. …

Member Avatar for TheFearful
0
386
Member Avatar for RudyM

Hi all, I would like to replace new lines with "<BR>" in a text file. I'm executing the following line in Powershell: `[regex]::Replace((Get-Content "testfile.txt"), "\.``n", ".<BR>", "Singleline")` The contents of testfile.txt: Some text here for paragraph one. More text for paragraph two.

Member Avatar for RudyM
0
402
Member Avatar for Aeonix

I'm trying to do something, but it doesn't work out, the primary suspect is incorrect query, but I don't know whether it's correct or not. I could try running it in phpMyAdmin, but then I don't know how these are escaped. The result is: `array(5) { ["current_field"]=> NULL ["field_count"]=> NULL …

Member Avatar for RudyM
0
249
Member Avatar for Brian_18

Hi, so I'm trying to create a Java program that will read a Java file that is incorrectly formated and properly indent and format it. This is what I have so far. import java.io.*; import java.util.*; public class Project3 { public static int SPACES = 0; public static void main(String[] …

Member Avatar for JamesCherrill
0
3K
Member Avatar for zeinc

How to write a C++ program doing the following : a series of names with no blank characters and displays the number of the names having more than ten charaters. the name must not exceed 25 characters and the series ends when the user enters the word "end".

Member Avatar for AssertNull
0
216
Member Avatar for Wyatt_1

Hello Everyone, I am new to c# and am trying to use Open XML to pull data from a SQL server into a spreadsheet. I followed some examples I found online but had to alter them to fit the test scenario I have set up and have run into an …

Member Avatar for tinstaafl
0
1K
Member Avatar for phphp

Sir I have these codes <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> <title>Stock</title> <style type="text/css"> html { overflow: auto; } body { font-family: Georgia, "Times New Roman", Times, serif; } #container { position: absolute; margin: …

Member Avatar for diafol
0
100
Member Avatar for Hari_11

How to handle org.springframework.web.multipart.MaxUploadSizeExceededException in spring 4 am uploading a file in java it will accept only 2omb but i have uploaded 30mb its giving org.springframework.web.multipart.MaxUploadSizeExceededException how to handle in spring 4 How to handle org.springframework.web.multipart.MaxUploadSizeExceededException in spring 4 am uploading a file in java it will accept only 2omb …

0
299
Member Avatar for mridul.ahuja

I'm using selenium with firefox to load a webpage. The page uses ajax to load new content on clicking the Display More Results button. However when I try to find this button and simulate a click, it gives the following Stacktrace error. Can anyone tell me what I'm doing wrong …

Programming python web-browser
0
405
Member Avatar for SoftBa

Hi, I need simple VB6 application to delete some temporary files inside specific folder. This is my code and I can't make it work for current user - please Help. Private Sub Command1_Click() Dim fso As New Scripting.FileSystemObject fso.DeleteFolder "C:\Users\user\test", True fso.DeleteFolder "C:\Users\user\test2", True fso.DeleteFolder userprofile & "\newfolder", True Unload …

Member Avatar for SoftBa
0
751
Member Avatar for makaijohn9

Suppose if I am working out with a simple basic coding to write a C# program for odd even number. But I am stuck at the step as to how i can re-enter input while i am converting a string into integer at one place.

Programming c c#
Member Avatar for makaijohn9
0
108
Member Avatar for Ani_1

I'm working on an Anagram Finder program. One of the methods I'm writing introduces the concept of **recursive backtracking** which I'm completely new to. I'm hoping to get some suggestions of how this works/how to make it work. I'm trying to implement recursive backtracking in order to display a list …

Programming display java seo
0
300
Member Avatar for Nathan_6

Hi everyone. I was reading some source code and I cam across the line `cout << "\nu converted to upper case is " << static_cast<char> ( toupper('u') ) << endl;` Why would the programmer use static_cast<char> in conjunction with toupper to print 'U' instead of just typing `cout << "\nu …

Member Avatar for Nathan_6
0
570
Member Avatar for imso

Assuming my second byte in hex is a representation of the message length, how can I dynamically adjust the length of the message the user can key into the textbox based on the hex value of the second byte? Message Byte entries into textbox: xx **xx** xx xx xx xx …

0
202
Member Avatar for bass_57bc

i scan my invoice and i had 5 column item_no ,descrption ,qty,unit price, total Amount and ihave 20 rows i need to trans rows to excel file or .txt i need to help to make programm by vb.net or asp.net : scan the invoice then send data rows to table …

Member Avatar for rproffitt
0
352
Member Avatar for Usman_9

#include<iostream> #include<stack> using namespace std; struct node #include<iostream> #include<stack> using namespace std; struct node { int data; node *left; node *right; }; class usman { private: node *root,*leaf; int count; public: usman(); //~usman(); bool input(); void call(); void preorder(); void postorder(); }; usman::usman() { root=leaf=NULL; count=0; } bool usman::input() { …

Member Avatar for rubberman
0
202
Member Avatar for Usman_9

hy ,i make binary tree,the input of binary tree in correct.but issues traversing of binary tree using stack ,because the result of traversing is wrong .please solve this issues. #include<iostream> #include<stack> using namespace std; struct node { int data; node *left; node *right; }; class usman { private: node *root,*leaf; …

Member Avatar for rubberman
0
195
Member Avatar for Nether_1

Okay so I'm writing a code for a game and the way its currently programmed is the main menu is contained within a large function that references another function, and so on. Not too complicated. But (as you'll see with the code below) I have all the essential variables set …

Member Avatar for Gribouillis
0
375
Member Avatar for Mr.M

Hi Dw. I'm deeply in need of your help, I'm having a problem that is giving me a very serious problem with my code. My program is a multithreaded program and its a TCP/IP based application. Client has no problem, only a server that is being so weid to me …

Member Avatar for Mr.M
0
512
Member Avatar for Amaina

I know this is very basic but i am not able to get the fuction return a string. Instead it is returning the value 1. Below is the code: <?php function getUserRole($username, $roleid){ include "data.php"; $con=dbConnect(); $query="select * from user inner join userrole on user.id = userrole.userid inner join role …

Member Avatar for elisajames
0
298
Member Avatar for miss zuzu

Hi, I want to translate text from one language(eg, malay) to other languages(eg, english) in java/jsp . How to do this. Help me please. urgent! Thanks

Member Avatar for sr.mohan06
0
1K
Member Avatar for brunoccs

Given the following C code: `B[8] = A[i - j]` Assuming B = $s7, A = $s6, i = $s3 and j = $s4 What would the assembly code be? sub $s3, $s3, $s4 # i - j sll $s3, $s3, 2 # multiply the offset by 4 add $s3, …

Member Avatar for Ánh
0
2K
Member Avatar for jsj1411

My code here suppose to grab list of injection string from table:* injection_text*, column: *injection_code* and inject it at the tail of the URL's crawled by my program, the URL's crawled are stored table: *pages_crawl*. my program suppose to display the result of the injection. the purpose of this program …

Member Avatar for hielo
0
470
Member Avatar for Bobonoinc

My program draws numerous rectangles in a JPanel; the location, dimensions and colors are determined by a random number generator. I want to save the panel contents as a jpg. I believe this requires converting the panel contents to a buffered image using something like this: BufferedImage awtImage = new …

Member Avatar for Bobonoinc
0
286

The End.