199,114 Archived Topics
Remove Filter ![]() | |
Binary search tree not working, when it should. Any idea what am i doing wrong. any help would be much appreciated. this is the error: Exception in thread "main" java.lang.Error: Unresolved compilation problems: The method iprint(Node1) in the type BST is not applicable for the arguments () The method preprint(Node1) … | |
I wrote a modify password file, but unfortunately, the MySQL query is throwing error: Warning: mysql_query() expects at most 2 parameters, 3 given in admin\modify-password.php on line 40 This is the PHP code: if (mysql_query("UPDATE admin SET hash = ? WHERE admin_id = ?", crypt($_POST["newpassword"]), $_SESSION["admin_id"]) === false) I modified … | |
Hello ! How can I change my sorting function called bubblesort, so that it uses a dynamic stack. Now I've done and funcion can work properly, but is using list, because I intercede for the next item and in stack i have access only to the top. Data for stacks … | |
I have mysql database with two tables.categories and products. **categories** 1. id 2. parent_id 3. category_name 4. image 5. status **products** 1. id 2. category_id 3. product_name 4. product_description 5. image 6. status **Question** Using php code how to go to the products page after the n level categories? Below … ![]() | |
Hi there, Routing is not working in codeigniter hostgator shared hosting. When i login www.doamain.com/admin this redirects to www.domain.com am using below in my config.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically … | |
Hello good morning...I need help on how print the heart beside each other here is the code.. #include <stdio.h> #include<stdlib.h> #include<Windows.h> int heart() { int i, j; for(i=10/2; i<=10; i+=2) { for(j=1; j<10-i; j+=2) { printf(" "); } for(j=1; j<=i; j++) { printf("*"); } for(j=1; j<=10-i; j++) { printf(" "); … | |
i am new to queue..can somebody help me on this.im stuck at selction 2,3 and 4 #include <iostream> #include <queue> // Queue STL #include <time.h> using namespace std; int displayMenu() { int menu; cout <<"\t\tQueue Numbering System"<< endl; cout <<"`````````````````````````````````"<< endl; cout <<"1. Generate queue number"<< endl; cout <<"2. Get … | |
Hello , i am new in adroid programing , and i need some help and info D: I create an activity with a log in "user" and "pass" and takes the user to the welcome activity, the log in works perfect but when i close the app , and re … | |
I'm thinking of a idea but don't know where to start, hoping I can get some input. What would the best language be to program images in layers. Let's say a mountain with the sky behind it then animate the clouds moving. Any ideas or thoughts. Maybe a possible reference? … Programming | |
Hi, i am working on a database application in java and converting it from console to GUI, to do so i am using ucanacces driver and connecting it to my access database and creating queries using sql(NOT ALLOWED TO USE ANY OTHER METHOD) and want to perform the basic database … | |
I'm pretty good with Java but I would like to learn to create interesting things with C++ or C. At the moment I have to ask: Why do all of these IDE's and libraries make it so damn difficult to set up an environment for programming? Personally I believe programming … | |
I have a form where I save the data in a cookie with localStorage. This all works fine, but If clear (just deleting with backspace) the value of an input field or textarea so that the placeholder text shows up again and I refresh or come back at the page, … | |
I've been using this without issue for ages..... and now it isnt outputing the info... I get a blank table like it's trying to work but not displaying it... <?php include('dataentry/update-connect2.php'); $sql="SELECT * FROM photos Order by stageno asc"; $result=mysql_query($sql); ?> <table width="670" border="0" cellspacing="1" cellpadding="0"> <tr> <td> <div id="table-wrapper"> … ![]() | |
What is the tech stack of houzz.com and Etsy? We want to build a similar application with millions of images and users, high traffic.... basically we want the base on LAMP(php) and what else we can add? Of course hosting will be EC2, S3 and Cloudfront but what else we … | |
hi im following a tutorial for a block system and i have the following error i cannot fathom if anyone can help be must appreciated heres the error msg: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given in /home/public_html/php_parsers/block_system.php on line 32 and heres the code in question // … | |
this is my code in firstpage <?php require 'dataconnection.php'; $res = mysql_query("select * from questions where category_id=$category ORDER BY RAND() LIMIT 20") or die(mysql_error()); $rows = mysql_num_rows($res); echo $rows; $i=1; while($result=mysql_fetch_assoc($res)){ if($i==1){?> <div id='question<?php echo $i;?>' class='cont'> <p class='questions' id="qname<?php echo $i;?>"> <?php echo $i?>.<?php echo $result['Question'];?></p> <input type="radio" value="A" … ![]() | |
Can anyone give me the full sample code to Send email from one requested email to multiple emails in php ![]() | |
After you have the appropriate infix to postfix expression how would you do the math with the expression? I'm having difficulty programming it. // Operator supported: +,-,*,/,%,^,(,) // Operands supported: all single character operands #include<stdio.h> #include<conio.h> #include<ctype.h> #define MAX 50 typedef struct stack { int data[MAX]; int top; }stack; int … | |
Greetings. I would like to ask for help. Our teacher ask us to make these messages move vertically. "Merry Christmas""and" "Happy new year". I just dont know where to start..but my idea is that I will be using the for loop.Would that be possible?? | |
Quick help, I can't seem to think right now, and I need to add these array values into a single total value for each array key. Importantly the total value. Array ( [0] => Array ( [sub_total] => 1000 [total_tax] => 82.5 [total] => 1087.5 ) [1] => Array ( … | |
<html> <head> <title>Help Me</title> <html lang="en"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> </head> <body><br><br> <center> <h1> Additon</h1><br> <form action="" method="post"> <label>Enter Num1:</label> <input type="text" name="num1" /><br> <label>Enter Num2:</label> <input type="text" name="num2" /><br><br> </form> <div class="container"> <!-- Trigger the modal with a button --> … Programming css-bootstrap html-css php | |
Hello and how are you? I am trying to fix the nested loop called the clock to go from 0:0:0 to 12:59:59 but I am keep getting infinite loops of 0:0:0 on mars/mips Here is what I have: .data str2: .asciiz ":" space: .asciiz "\n" .text main: li $t0, 0 … | |
I am making a multiple choice quiz in vb with the questions and answers stored in an access database. When trying to display the question and answers on my labels, they don't change. Here is my code: Imports System.Data.OleDb Public Class Football_Questions Dim con As New OleDbConnection Private Sub Football_Questions_Load(sender … | |
I am trying to iterate through a string and save the characters in a character array. It iterates perfectly and prints the characters but when I try to save the characters in the Array or in a List, it gives me NullPointerException. Can anyone point out the mistake I am … | |
I am trying to upload folders to comboBox 1 from the directory, and then at selection from comboBox 1 to comboBox2. I have below code, I am getting error when I make selection from comboBox 1 as direcory doesnot exists at bin/debug path of the project. private void Form1_Load(object sender, … Programming | |
Hello, I am trying to create shortcodes in an easy way for my cms I am successfull to create and replace the shortcode with the content but what if there will be 2 shortcodes placed within the content I am confused to replace it if there are 2 shortcodes can … | |
i developed a quiz app in php. i want to store selected radio button values into session array and post them to next page and dispaly in the second page. here is my first page code.int this i get the data from db and populate here.i want to send this … ![]() | |
so i am working on this table that have buttons combobox and checkbox... i did all of that and i am left whit one this i button that can add a icon in IMAGE column in the same row her is my main private JTable tb; private String[] comboData = … | |
Hi I m currently working on windows application that is loading electoral roll pdf file. What I m trying to do is to get the data as per Sr. No., Epic No., Name, Father's / Husbands Name, Age, Sex, House No. and pincode. Data is available in 3 columns and … | |
Hi guys, need some help on a star rating system i am working on. The issue is that i have multiple star rating on a single page but if i click on a star for another field, it will highlight all the previous unlighted stars too. Not sure how to … | |
Hello, I'm trying to create a data area within an .exe file. Then I will open the .exe file and scan it for the data area. When the data area is found, I will write some data to this data area and write the .exe file back to disk. I … | |
ok guys.... i have a multiple choice scenario to deal with.... my problem is in the division....both my random numbers have been declared as integers.. this caused the problem of the answer being truncated and only the whole number portion being displayed... i tried to cast one as a double … Programming java | |
I have a username and password for a external website. I want to have a link from my webste to log in to that site without giving username and password to my users. How can I achieve that. I tried lke this but failed. If any one can rectify this … | |
I'm trying hard with displaying details from a selected option in a drop down list for my project. I have a drop down list which is populated from a MYSQLi query. I want the user to select an option and the values associated pulled from the database and displayed to … | |
Greetings, I read about database normalization and I knew that there are 8 normal forms to follow. I understand the 3 first normal forms, however, I did not understand the other 5 normal forms and they are: 1- BCNF - Boyce-Codd Normal Form 2- 4NF 3- 5NF 4- ONF - … | |
Hi today i noticed that this program [below] wont print the correct value and it always print 0.00000 #include <stdio.h> #include <stdlib.h> int main() { float S; int n; scanf("%d" , &n); S=1/n; printf ("%f", S); return 0; but when i asked my teacher he said you should make it … | |
Hi, I am working of a PDF to image converstion. I found ghostscriptsharp which is a c# wrapper written for ghostscript. I used it and developed my application. Most thing if not all worked fine when i was testing with my console application. After I integrated it into the webapp … | |
hello world i would like to know to print on terminal a message with color and backround without external library i find this on internet and it works pretty fine but i would like to coloriza backround too!! #include <stdio.h> #define ANSI_COLOR_RED "\x1b[31m" #define ANSI_COLOR_GREEN "\x1b[32m" #define ANSI_COLOR_YELLOW "\x1b[33m" #define … | |
Hi everyone, am trying to display report based on quarter ie Quarter1,Quarter2 etc. However,after keying in record for Quarter2, the report below does not display Quarter2 record but still Quarter1 record. Please advise how to make the report display Quarter2 record if the current month is Jun etc. Thanks a … | |
developed an admin panel in which users can add products from there and I put fields over there as size and color for the dresses dresses sizes and color would be more then 1 so I made 2 more tables in the database named prod_size and prod_color here is the … ![]() | |
I'm getting the following error message, while inserting data into a MySQL database table: Sorry, an error occurred while inserting data into the database. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?, … | |
how is this front end combination for a php web application? BackboneJS, RequireJS, Bootstrap, HTML5, jQuery & AngularJS for Front End Will these help me load pages and images load at supersonic? ![]() | |
i have a problem with ASP.NET. IN Asp.net i designed a code such that all controls i generate in a dynamic manner line in page_load event i generate one Button also attaching click event with this when it clicks two more buttons are created dynamically.also i attached click event with … | |
I want to make a button when you click it one time it will say "Stop" and when you click it a second time it will say "Start" and I'm new to visual studio and C# so it's taking time to research. So if anyone could help I would be … | |
Currently working on jQuery datepicker and jquery clone with my current code where i can able to add years for all the rows but when i am trying to add the months for example from date - 01/01/2000 to date 12/01/2000 it the message should come as 0 years and … | |
Just a quick question here for VB.NET developing with Visual Studio. I have an existing project (Project A) and I want to use portions of it as a foundation for another related project (Project B). How can I safely copy Project A to another location, rip out unnecessary forms, code, … | |
I am trying to upload folders to comboBox 1 from the directory, and then at selection from comboBox 1 to comboBox2. I have below code, I am getting error when I make selection from comboBox 1 as "Unbable to cast object of the type system.string to system.Io.DirectoryInfo { private void … Programming | |
Hello I am currently building a login form using HTML/PHP/Codeigniter, and would like to add some visual effects, like for example, if a user enters the username, either a tick or a cross is added beside the field when the user moves to the "password" field for example, and the … ![]() | |
Random Number File Writer: Write a program that writes a series of random numbers to a file. Each random umber should be in range of 1 through 500. The application should let user specify how many numbers the file will hold. Which I have. __author__ = 'Preston Howard' # Random … Programming python | |
Hi, am trying to display the filename after upload but can't display, instead error message "There are no files in the database" is displayed. Please advise. Thanks. <?php // Connect to the database $dbLink = new mysqli('localhost','user','','pq'); if(mysqli_connect_errno()) { die("MySQL connection failed: ". mysqli_connect_error()); } // Get the ID // … ![]() |
The End.