199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Majestics

I am new to php, i am creating a website which fetch data from mysql, if the data is more then 10 columns then i want to give a link page 1 , 2 , 3 , 4 (Like google) so user cant navigate through them.... How can i do …

Member Avatar for pritaeas
0
92
Member Avatar for kase20

Hi everyone. I wrote the following code: if the number entered is even ie if n=6 , the column of # should be at the 3rd column (ie 6/2) if the number is odd ie if the number is 9, then the column of # should be at the 5th …

Member Avatar for kase20
0
155
Member Avatar for cgull

Hello, I have a problem with an Ajax call on IE9. I have searched the internet and this forum for solutions for a few hours and can't find an answer. I have a coffee roastery site (developed with Codeigniter), where the users can order coffee bags online. The user selects …

Member Avatar for cgull
0
911
Member Avatar for Shadowalk3r

hey guyz .. i have made my first website comprising of ten websites i've tried saving it as a mht file but only the first page has been saved the other links seem not to loading i designed using adobe dreamweaver help me gain that knowledge.

Member Avatar for madelinekim
0
88
Member Avatar for dagtad

Hello there, I'm using mysql as a back end of my project and am using PHP for server side scripting. I want to insert a formatted text into my mysql table. How can I create a text field which accept a formatted text and save it to the database. Thank …

Member Avatar for pritaeas
0
123
Member Avatar for Dadkhah

HI guys I am need to connect my pc with the PLC on the Ethernet Connection and I don't know about socket programing, I have very search for this work and find any code in this site and usage then. but have a some problem. this is my usage code: …

Member Avatar for Dadkhah
0
216
Member Avatar for Khav

Hello Guys , I want to create a script that convert a text file or Nfo file to an image(format is .PNG). What it does is simply load the txt and output it as an image Here is my code: <?php if(isset($_FILES['image'])){ $errors = array(); $allowed_ext = array('txt'); $file_name = …

Member Avatar for Khav
0
313
Member Avatar for trishtren

Hello, Iv been trying to work through some issues on binary output recently. But im having problems understanding the conversion process in java when using two's complement. I dont understand why System.out.println(Integer.toBinaryString(-11700)); Prints out 11111111111111111101001001001100. Shoudlnt -11700 only be 15 bits long? When i calculate it by hand and invert …

Member Avatar for JamesCherrill
0
166
Member Avatar for 47pirates

I'm trying to print the necessary values in the predefined document for an example, in a Bill name in the left side and date on top right. I already had that documents with empty name and dates . how can i print the name and date to corresponding location in …

Member Avatar for 47pirates
0
145
Member Avatar for bettybarnes

Hello guys, I'm trying to make a list of students grade using array. My question is, how am I going to do this? **OUTPUT:** Lea 94 Morgan 85 Jenny 92 Harold 75 I've tried a bit to program, please do check my code. public class StudentScoreArray { public static void …

Member Avatar for Vs5193
0
99
Member Avatar for 68thorby68

I understand a select list will display the options in which they are received, however I am compiling my select list and options from a number of PHP/mysql queries and am at a lost as to how I could achive the ordering via the php/mysql route. $all_zones=('a,b'); // foreach($all_zones as …

Member Avatar for 68thorby68
0
172
Member Avatar for showman13

Good Morning All, This is a question I touched on previously, but don't think I presented what I really need to do. I need to get this accomplished ASAP, and really have no clue how to go about it. Would even be willing to pay someone else if they have …

Member Avatar for coolest_987
0
1K
Member Avatar for Viped

Hi, could some one look over my code I by myself dont get where the flaw is. It should paint 1 cube at a time but now it runs all the code through and paints all at once. package net.viped; import java.awt.Color; import java.awt.Graphics; import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import javax.swing.JFrame; …

Member Avatar for JamesCherrill
0
966
Member Avatar for matanc244

Hi i am Trying to delete a page from my site cms and something is not working . the code is: <?php $con = mysql_connect("localhost","matanc_cmd","123123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("matanc_cms", $con); $id = (int) $_POST['id']; mysql_query("DELETE FROM content WHERE id='$id'"); mysql_close($con); // if successfully …

Member Avatar for pritaeas
0
130
Member Avatar for Code_Geek

I have a problem with the following code.Please help me out #include<stdio.h> #include<iostream> #include<conio.h> #include<winsock.h> #include<winsock2.h> #include<fstream> #include<windows.h> #define WIN32_MEAN_AND_LEAN #include <sys/types.h> #include <streambuf> #include<string.h> using namespace std; int main() { int length; char *buffer; const int iReqWinsockVer = 2; WSADATA wsaData; if (WSAStartup(MAKEWORD(iReqWinsockVer,0),&wsaData)==0) { if (LOBYTE(wsaData.wVersion) >= iReqWinsockVer) { …

Member Avatar for triumphost
0
411
Member Avatar for maurices5000

I'm just trying to get a bit more understanding about what seems to be to me a contradiction in the C# Pro book i bought. The book says >In simple terms,** a process is a running program**. However, formally speaking, a process is an operating system level concept used to …

0
139
Member Avatar for crankyslap

I only just noticed that doing something like this is wrong; int thrdcount = 0; while (thrdcount < 4) { Thread t = new Thread(() => { dowork(thrdcount); //Start the threadWorker }); t.Start(); thrdcount++; //Increase the thread count } Because the loop can end up finishing so fast that all …

Member Avatar for skatamatic
0
382
Member Avatar for skran

HELP ME plzzz! I try to make my datagridview rows change colour depending on value on a row cell. I ve tryed everything i found on the web but nothing.. plz help Last I tryed this one: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellformatting.aspx but stil nothing :(

Member Avatar for poojavb
0
1K
Member Avatar for hszforu

I think the following code should print 26 but it's printing 62 instead. public class gjh { public static void main(String[] args) { int x = 2; x += ++x * ++x * ++x; System.out.println(x); } } So how is this possible?

Member Avatar for hszforu
0
109
Member Avatar for vijayram

hi, i have menubar.click menubar content load the particular url in this page. $(document).ready(function(){ $('#menubar li a').click(function(e){ e.preventDefault(); $('#userpersonal').load("http://localhost/user/web/personal/index"); }); }); what is the problem in my code. plz help me

Member Avatar for jadein2
0
381
Member Avatar for Commando123

hi guys i am puting this query in my querybuilder in the table adapter but i need to make the query only return the transaction done today!! i dont know the syntax to get the cuurent date today. this query should work in the tableadapter query configuration wizard!!! SELECT Trans_ID, …

Member Avatar for TnTinMN
0
156
Member Avatar for taigi100

Hello, I am trying to make an OpenGL Hearts game ( like the one from windows 7 or such) but I expected some problems. First I will show you the code that iv done untill now : Card.h: #ifndef Card_H #define Card_H //#include <GL/glut.h> //#include <SOIL.h> #include <stdlib.h> class Card …

0
120
Member Avatar for sushy27

I am new to php and I am trying to write the cross tab query for mysql using PHP. I constantly keep getting errors like PHP Parse error: syntax error, unexpected T_STRING in /home/sushvedula/cross.php on line 5 Kindly help. This is my code. <?php $db->Connect('localhost','root','********','pack_00001'); for($i=0;$i<5;$i++) for($j=0;$j<24;$j++) select timestamp, group_concat(if(module=$i …

Member Avatar for diafol
0
453
Member Avatar for jancho1911

Hi!!! I am making a program that is supose to use Naive bayes classifier to classify text from few categories. This is the best i can do to explain, here is what i have done so far: import math d=open('D.txt', 'r') di=open('kat1.txt', 'r') posleden = di.readlines() total = d.readlines() Di …

Member Avatar for callmerudy
0
215
Member Avatar for chris_j_haines

Hi I have had a client asking me to look at the image upload section of the site i have built for them: Here is the upload form code: <form enctype="multipart/form-data" action="processupload.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="100000000000" /> <center>Choose photo to upload: <input name="uploadedfile" type="file" /><br><br> <input type="submit" value="Go to …

Member Avatar for diafol
0
246
Member Avatar for prettyspinster

Hello, I am very new to python and have been going through all over the web to try to figure out my problem. I have small script that I would like to do something simple with. I have a number of files called soemthing like (myFile00.txt, myFile01.txt,...). Mainly this is …

Member Avatar for prettyspinster
0
123
Member Avatar for shean1488

Hi everybody, I'm trying to do a simple login for a web site, and everything looks fine except one thing, when I enter a name and a password for a superuser I got "403 Forbidden" error. here is my login.html: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> …

0
110
Member Avatar for prashanthmukund

I just came across this question. All the solutions given are in PERL for this question. I thought I can learn solving this in Python as I could learn many thing by solving this problem. But I am stuck. The question is: You are working at a grocery store which …

Member Avatar for TrustyTony
0
121
Member Avatar for mahdiyazdani

i create some login form and i put remember me check box below username and password field this is my login form code : <?php error_reporting(0); include "../db.php"; ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <title>IN ADMIN PANEL | Powered by Mahdi Yazdani</title> <link rel="shortcut icon" …

Member Avatar for mahdiyazdani
0
647
Member Avatar for G_S

Hello. I am working on a personal project. It's basically a program for changing specific tags from certain HTML files. So far, everything works. The GUI and the logic a work but I know the main function is wrong because it looks like this: def tag_remove(HTML_string): clean_HTML = a_string.replace('<b>', '').replace('<i>', …

Member Avatar for G_S
0
8K
Member Avatar for javedshaikm

Data from a XML sheet is converted to php array and I have tried to create a quiz format question with the below code, but it does't work. Not sure how to get it working for multiple questions... <?php function get_answer($input){ if ($input == ($att['ans']) ) {echo "Correct Answer . …

Member Avatar for diafol
0
178
Member Avatar for triumphost

I have a Two Test classes that use variadic templates but I made the constructors explicit so that the compiler doesn't convert anything and leave everything as it was. One class was Array and the other was called 2DArray. When I intialize 2DArray, the compiler was converting its arguments to …

Member Avatar for deceptikon
0
3K
Member Avatar for pete08

I have developed VB.NET 2005 application with .sdf database, but I have problem with inserting new records into databse from application. I have tried with MSDN example code, but failed. Can someone provide me with code for this one. Please... Pete

Member Avatar for Ailton Junior
0
110
Member Avatar for shammons1

All, I'm very new to java having done most of my scripting in Javascript and a little bit in other types of programs. I'm basically trying to obtain a script variable and compare it against a condition and return some println messages. Here is my code: String agentType[] = request.getParameterValues("Agent …

Member Avatar for JamesCherrill
0
1K
Member Avatar for TheWolverine

Hi all, I've browsed the net trying to find a paradigm to describe what I'm looking for but haven't been successful. So I'll try to explain it as succinctly as I can. Right now, for my PhD research, I've set out a few applications that take input files that have …

Member Avatar for TheWolverine
0
241
Member Avatar for godzab
Member Avatar for somwang

Dear all experts im now creating a rating system with php using mysql databse, im facing the problem about how to calculate rating!, ex. i have totalscore and numofvotes table, which function that we can use to calculate rating like, 7.4, 4.5 something like that thanks in advance

Member Avatar for maringtr
0
376
Member Avatar for bleedi

Hi guys and gals, I'm writing a file parser, which reads "source code -ish" text from files. The text is usually in this kind of format: Module: { Submodule: { Property: Value ... } Submodule: { } } Module: { Property: Value } I've written a simple but hazardous reader …

Member Avatar for Ketsuekiame
0
638
Member Avatar for wiliclip

Hello I am getting this error - even if object database is initialized in class that is in database.php and then included in session.php that gives an error. I've tested the thing in another script jok.php that is bellow and it works there. I've already lost 1 day on this …

Member Avatar for mmnnbbv
0
2K
Member Avatar for ashine80
Member Avatar for triumphost

I'm trying to test my copy con and move con as well as their assignment operators. It NEVER gets invoked :S Copy con gets invoked just fine but the assignment operators are never called and neither is the move constructor. How can I test it to make sure it works …

Member Avatar for mike_2000_17
0
276
Member Avatar for bulqr4eto

I need a BIG HELP, first I want to say Im REALLY BAD with PHP :D so basically I have a php script witch auto generate list of videos from a folder on my host with 1 media player http://img687.imageshack.us/img687/5915/snap20120703at155809.png - As you can see there are too many clips …

Member Avatar for diafol
0
172
Member Avatar for TheCollegeGuy

I have created MFC ActiveX project in VS 2010 using C++. I have added just one function "Add" to the project by clicking the Add method option in the menu that pops when you right click _DProjectname under ProjectnameLib in solution explorer. SHORT CSampleProgramActivex01Ctrl::Add(SHORT a, SHORT b) { AFX_MANAGE_STATE(AfxGetStaticModuleState()); // …

Member Avatar for TheCollegeGuy
0
387
Member Avatar for salah_saleh

Hi! when I try to run this code: struct Cand{ // 0 -> not a cand // 0.5 -> preCand // 1 -> cand float status; // Row position int PosX; // Col position int PosY; /* * and many other things * */ }; int rows = 1024; int …

Member Avatar for salah_saleh
0
3K
Member Avatar for MasterHacker110

I am writing a program that is suppose to read all the lines in a .ini file and then the program will configure the network connectivity. ex. ip = 128.123.156.46 then it would set the ip address to 128.123.156.46 i have tried this: while(getline(infile, TheBuffer)) { if(TheBuffer == "ip =") …

Member Avatar for MasterHacker110
0
255
Member Avatar for GlenRogers

In my applcation I have a JText field for entering a phone number. Is it possible to make it only accept numerical characters? Or should i wite a method to alert the user if they enter any other characters into it? Thanks

Member Avatar for GlenRogers
0
131
Member Avatar for hwoarang69

hi i am programming for about 4 years and i want to learn how to make a operating system. for ex window, mac or unix. And i am think of storing it on a disk. I have no idea how to get started. can any one tell me the steps? …

Member Avatar for Schol-R-LEA
0
247
Member Avatar for user543820

Hi! I have written this function in javascript. The problem I'm facing is that even when the text field in html form is empty, this function behaves as `alert("");`. It must display "Enter some text" in alert box. The function, however, works well when I enter "Hello" in the text …

Member Avatar for Troy III
0
203
Member Avatar for frivolous

hi, i made a music player it opens almost all the songs but while opening some songs it gives this error : A:/Chrome Downloads/Jhalla_Wallah_(Remix)_-_(MusicTub.Com).mp3 Error 277 for "open "A:Chrome DownloadsJhalla_Wallah_(Remix)_-_(MusicTub.Com).mp3" alias mp3_0.878022650438": A problem occurred in initializing MCI. Error 263 for "set mp3_0.878022650438 time format milliseconds": The specified device is …

Member Avatar for frivolous
0
5K
Member Avatar for JukesK

if i have roughly 25 identical tables is it possible to do the following SELECT tm_name, `tablename` as Activity from t1, t2 ,t3 where date = curdate or would it be better to add another column to the table thats hidden from the users and automatically populate with the tablename.

Member Avatar for ndeniche
0
248

The End.