64,152 Solved Topics
Remove Filter ![]() | |
Dear user I write a file upload code in php, the code work's fine but it will upload the file 50kb to 60kb, when i try to upload more then 50kb to 60 kb file then the page stuck on loading. The problem is why it is not uploading more … | |
Am crating abit of code to save and add a menuitem to main menu but am having a small problem when reloading the saved lobby.dat file when its saved it should be save just click the lobby name is below **Support Group Lobby=56** but it keeps thinking the space is … | |
I was wondering if the following was possible with a query? If so, can someone give me an example query? I want to print a list of products, group them by color, and then have the totals at the end of each group. | Color | Product | ------------------- | … | |
![]() | Hello people, please have a look at following IMAGE.  What I Wish to achieve is extract the select item and display it into a messagebox or say do other actions. I want to extract that particular selected ITEM ..say E101. Thanks. |
So hopefully the title makes a little sense, but I'll explain a little more. Currently I am developing a program at work that is designed to query a SQL database for results. The code is meant to be stand alone, a single .exe that can be run on any machine. … | |
Hey everyone. First I'd like to say this is a great community and seeing as I've finally started attempting to learn PHP I decided I'd finally sign up for all of the current and future help I will need haha. Okay well I'm currently setting up a website for my … | |
A.o.e any one can hlp me i want to image store in data base but i have problem mentiond here : Undefined index: pics in C:\wamp\www\newform\image_store.php on line 7 what i do | |
Hi. this us what Im doing and its not working: test.php $(rclone).on("click", function(){ var event_id = $("#event").val(); var euser_id = $("#userid").val(); $.ajax({ type: "POST", url: "InputNames.php", data: "event_id="+event_id+"&euser_id="+euser_id, success: function(data){ var form = $("#input-names").html(); $(".form-inputs").html(form); } }); }); InputName.php: <?php $id = $_POST['event_id']; $userid = $_POST['euser_id']; require "connection.php"; $get = … | |
Please I tried comparing values in two arrays using in_array(). $friends[] contains all ids of my friends in the friends table while $membersarray[] contains ids of people in a team. What i'am trying to do here using in_array() is that I want only friends ids who are not part of … | |
Hi, I wrote the following program: #include <stdio.h> #include <stdlib.h> #define TRUE = 1; #define FALSE = 0; static int *arr; static int size=0; void createSet() { arr= (int *)malloc(sizeof(int)); size=0; }/*createSet function*/ void putInSet(int num) { int *temp; size++; temp=(int *)realloc(arr,size*sizeof(int)); if(temp!=NULL) { arr=temp; } else { printf("Insufficient amount … | |
I'm trying to write code in VBA in Excel that opens a desginated directory, finds all xls and xlsx files and then converts them to csv. I found two sets of code that do one or the other perfectly, but I can't make it work. I'm sure I'm just missing … | |
![]() | This is driving me mad, I'm sure I'm missing something. I save the £ sign into the database and it displays fine when I check the database, but when I print this out in a pdf it displays as £. I can't use modify headers because I'm previewing a pdf … ![]() |
i have build a project where wordpress themes can be purchased. Build with Codeigniter how to implement multiple coupons for a single Theme / Item for % discount. i need some help regarding database design. | |
I want to arrange numbers from highes to lowest ( you will input the numbers first e.g 1,2,3,4,5 ) and it will be 5,4,3,2,1 Thanks! | |
thank you all of you for the help i really appreciate it. i have a hopefully quick question, is this the correct syntax for adding an integer to a buffer: " add dword [userScore], 6 " or do i have to convert the userScore buffer to integer then add and … | |
I could use some assistance My final project in a python class is to calculate the distance between 2 lat/long points. My code is really just managing the input & output portions, while using existing code (properly credited) in a function to do the actual calculations. I've got it working … | |
Hello, I have some problem with php functions can anyone help me out with this <?php $db_host ="localhost"; $db_user ="my_cms"; $db_pass = "secret"; $db_name = "mypractice"; $connection = mysqli_connect($db_host, $db_user, $db_pass, $db_name); if(mysqli_connect_errno()) { die("SQL Connection Failed: " . mysqli_connect_error() . "(" . mysqli_connect_errno() . ")" ); } ?> did'nt … ![]() | |
please help!!!!! I wrote this program to calculate addtition and subtraction of two large numbers (maximum 100 digit) it won't work for minus numbers :( i know it have problems but i couldn't fix them,please help me for fixing this :) #include <stdio.h> #include <stdlib.h> int main() { int i,d=0,la,lb,max,ia,ib,ix,iy; … | |
Hi, I have a field that a user add's a curreny value to, on keyup I fire a Javascript function that checks the following but its not working at all... What I want it to do is... user add's say 10 On keyup the Javascript needs to add .00 to … | |
Hello friends, I am trying to work on a project that dynamically allocates memory when needed for a string array. I just keep getting memory faults when reallocating memory but can't find any thourough tutorials on realloc besides the man page. So basically, I malloc 201 character spaces in an … | |
hi everyone :) I want a new questions on Hash functions and graphs >>like what process can we do on it !! any code ideas ? because I have an exam (data structure) so I want to study new ideas thanks ^_^ | |
hello, plz assist in this: Assuming i have a sourcecode for example for developing a stock management system, how do i edit it to suite my problem? | |
Hey, I am working on a project that requires dynamic sub domains... for example user1.mydomain.com and user2.mydomain.com etc... But I am having some trouble... I have setup the wildcard A record and all of that is working fine. The problem is my application uses ajax and because the domain is … | |
I am doing this assignment in my Java class. I have never done any programming in my past so I am a complete beginner. I have typed up a program that will ask for employee name, the hourly rate, and the number of hours worked. The program needs to run … | |
I've been trying out the HTML5 <canvas> element, and cannot get it to work. here is my code: [CODE] <html> <head> <script type="text/javascript" > var canvas=document.getElementById("canvas"); var context=canvas.getContext('2d') context.fillRect(100,100,300,300); </script> </head> <body> <canvas width="500" height="500" id="canvas" /> </body> </html> [/CODE] The canvas is there (I confirmed this), but nothing is … | |
Hi. I am trying to make a script that will print out numbers in rapid succession after working a little with them. The script needs to write them in the console one after another (next line). The code works just fine when I do not utilize multi threading, but when … | |
Hi, I have the following htaccess file: <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [NC,OR] RewriteCond %{REQUEST_FILENAME} -d [NC] RewriteRule .* - [L] DirectoryIndex /index.php RewriteRule ^([^/.]*)$ $1/ [R] RewriteRule ^([^/.]*)/$ /$1.php [QSA] </IfModule> This works fine, if I put for example /legal/ it loads up … | |
please help how do i echo the images to display since its only displaying the code on the database table e.g image10.jpg. on line 60 thanx <?php $page_title="Products"; // to prevent undefined index notice $action = isset($_GET['action']) ? $_GET['action'] : ""; $product_id = isset($_GET['product_id']) ? $_GET['product_id'] : "1"; $name = … | |
My program compiles with no errors, but when I try to use it, the results do not show up and there is an error. Please help!!! import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.text.*; public class RetailSales extends JFrame { // declarations Color black = new Color(0, 0, 0); Color … | |
Hi. I'm making a program somewhat like Siri except through text boxes not voice command. On my form FormMain I have two text boxes named TextBoxInput and TextBoxConversation. I also have two buttons named ButtonStart and ButtonEnd. Here is my entire code for FormMain so far: Public Class FormMain Dim … | |
I need to write a program like this Sample output: Please enter a number(Less than 8 digits): 1203021 There are 2 zero (0) in this number I dont know how to write a formula to count the 0 inside number please teach me. | |
Hello, When I'm using the 'open' function how should I specifiy the directory ? I'm getting an IOError and bit of confused! I'm not sure if my script is wrong or I've problems with specifying the directory. input = open('New.txt', 'r') text = input.read() wordlist = text.split() wordfreq = [wordlist.count(p) … | |
Can someone please! Fix this for me? My program : loop reads 10 double numbers after that inserts them into an array list. after that print MAx and MIn And AVg THIS MY PROGRAM WHY I CAN NOT MAKE COMPILE Fix this for me : import java.util.Scanner; import java.util.ArrayList; import … | |
Hello everyone! Is there a way in VBA to find a file name that has an unknown portion to it? Let me explain: Our computer system is UNIX based. It is creating a text file for us that uses the date, the hour, minutes and seconds that the file was … | |
Am using GetProgrammDir to get my application folder and it works but I need more control over it were I can select folders inside or outside of my program say there 2 folders Data and Items data will store exe and items will store information txt but the data will … | |
I have this snippet below, I'm trying to query if a cast is online or not (That part works when I take it outside the while loop) but then in the while loop run through until I find an online cast and then keep it there. If I remove the … | |
if corrct this code it will come of the list in the datagridview in VB from access this my code: Private Sub ComboBoxadm_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBoxadm.SelectedIndexChanged Dim conn As New System.Data.OleDb.OleDbConnection() conn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\temp\Database1.accdb" If conn.State = ConnectionState.Open Then conn.Close() conn.Open() Dim sql … | |
There are a lot of examples demonstrating how to connect to ms sql database from windows form application using Visual Studio Professional (right-clicking on the project name -> "Add" ->"new item" -> "LocalDatabase" -> give a name with .sdf extension to the newly created database - > and so on … | |
I am trying to do a check to see if a student meets the prerequisite before they can register for a course section. CourseSecID = 27 (ID of the course section the student wants to register for.) What I am doing is querying the student's acad cred records to see … | |
Hello, I'm trying to script a Caesar cipher with the key, I find this exercise too much for me at this moment! I just can't come up with an algorith to get this done. Please advise. key = {'a':'n', 'b':'o', 'c':'p', 'd':'q', 'e':'r', 'f':'s', 'g':'t', 'h':'u', 'i':'v', 'j':'w', 'k':'x', 'l':'y', … | |
python function that creates automatically a dropdown year selector (that is a "select" element poulated with all years starting from current and dating back to a given year)? I don't need day/month (otherwise i'd have used the datepicker), i just need the year! Thanks in advance | |
don't work this: bg_fon2 = PhotoImage(file='2.GIF') from tkinter import* import random root = Tk() root.geometry("896x626") canv = Canvas(root, height = 626, width = 896) bg_fon = PhotoImage(file='fon.GIF') canv.create_image(0,0,image=bg_fon,anchor='nw') class Fish: image = 0 coor = 0 direct = 0 real_img = 0 obj = 0 canv = 0 def fiish1(): … | |
hii I have a list having m1 m2 m3........ m922 and in each there are a1 a2 a3 a4 are there like m1=a1 a2 a3 a4 a5 a6 m2=a1 a2 a3 a4 a5 a6 m3=a1 a3 a5 a7 a8 a2 etc and i want this as m1=a1 a2 a3 a4 … | |
Is this considered good form when writing cross-platform code? #! /usr/bin/env python3 And how about this? if __name__ == "__main__": main() I've reviewed some recent sample snippets and not all of them use the shebang and the conditional main call, so I wasn't sure whether that is still considered good … | |
Hi, I am a newby and am surprised I made it this far. My program is a TicTacToe program. I am having troubles with checking the validity of each move. I have tried multiple things, but could not figure it out. If someone could help point me in the right … | |
This is what I have so far :/ #include <iostream> using namespace std; int main() { int i; for (i = 1; i <= 12; i++) { cout << i; if ((i = 4) && (i = 9)){ cout << " \n"; } else { cout << endl; } } … | |
Hello everyone I can export texblock.text and label.text to word. But there is no styling found back in the word document For example the background-color won't export. I use this as a conformation document. How can you also export the style of the form and can you export a table … | |
i'm making table reservations scheduling table with PHP and Mysql. i'm stuck on one thing, dont know how to check every cell i must print,which will indicate a reservation, with every column,which will indicate hours. Can anyone give me an idea ? i will get my reservation info from database … | |
![]() | Good evening I've been working on creating a basic admin panel in order to allow a friend to edit the content of her own website. The data is stored in a database, and the plan is to allow her to edit/add content to the database. I've previously used this successfully … |
Hi guys Just started to get into Python so this site seems liek a gtreat resource for hints and tips. Nice to meet you all. Ben |
The End.