64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for SQLpower

Hello, folks. I do have another issue here, haha. My Cancel script is not working, is not returning the tickets back to the database after I cancel them. I got completely wrong here, some help would be really appreciated. [CODE] <?php session_start(); $tickets = ['tickets']; //$tickets = $_SESSION['tickets']; //$id = …

Member Avatar for Biiim
0
2K
Member Avatar for ahspats

i have to write a program, in which i have to make pointer to point to the character, where it last occured in a string. For example: String: Lord of the rings Character: r Pointer points to the last 'r' in the string, that is in the word 'rings'. If …

Member Avatar for yasin.uohyd
0
215
Member Avatar for zaatlob

I want to loop through directory and process the files in them. I do this with the following code. for (root, subdirectories, files) in os.walk(dirDialoog.GetPath()): for file in files: My problem is that the files processed 2 times. I tried the next code, but in that way the files weren't …

Member Avatar for vegaseat
0
253
Member Avatar for tukky

Hey guys, I'm doing a project for university and i have hit a wall. I have a gridview that is connected to a database as shown below: [url]http://i40.tinypic.com/fys9i.jpg[/url] (menu is incomplete) I want a drop down box that is populated with the type of food such as (pizzas, burgers etc …

Member Avatar for tukky
0
149
Member Avatar for al41007

Hey! for a school project, came to me the following question: the libopenmetaverse is more directed to any of the components of the MVC (model, view, controller) or apply to any of them? someone can help me with this? thanks

Member Avatar for al41007
0
203
Member Avatar for jemz

Hi, Can i ask something?is it possible to make a batch file or something like a script that when i clicked on it, it will open the the command prompt and directly goes to the path that i desire.with out anymore using the command CD D:/my folder Thank you in …

Member Avatar for harinath_2007
0
306
Member Avatar for bibiki

hey there, as part of my application, I build an array of arrays. So, what I have is this: [CODE] $mainArray = array(); $mainArray = $somearray;//as built with results from a query $mainArray = $someOtherArray;//built same as above //I want to iterate: foreach($mainArray as $array) { foreach($array as $dataArray) { …

Member Avatar for bibiki
0
112
Member Avatar for spowel4

I need to pass close to 100 variables between pages and I'm not sure of the best way to do it. Any suggestions?

Member Avatar for jstfsklh211
0
144
Member Avatar for adil_bashir

hello everyone, I have implemented RSA algorithm in java but now i am asked to determine the time for encrypting variable length messages(plain text). As an example, i have to find the time in which input message of length 3 will get encrypted, similarly the time in which input message …

Member Avatar for DavidKroukamp
0
262
Member Avatar for SQLpower

Hello, folks. I am facing a really annoying problem here. Well, basically I want my page to check if the user is an admin or not. Whenever I log in and try to access that page i am recieving the error message "You are not admin, leave" [CODE] <?php session_start(); …

Member Avatar for bibiki
0
236
Member Avatar for Cosa

I am having trouble devising a method to multiply 2 matricies that are formed by dynamic one dimensional arrays, for this case i just used matrix1 and matrix2 To access elements that are on rows 0 to n-1 in either matrix i have to use this method: ((rows - 1) …

Member Avatar for kabultanha
0
4K
Member Avatar for poojavb

Hello Friends, I have got confused with one topic Scenario is such that.... I need to browse a file and copy the file from one location to another.... I am done with the file copying but I need to add the list of all files present under that folder in …

Member Avatar for M.Waqas Aslam
0
548
Member Avatar for ak47carbon

<?php ob_start(); ?> <?php include("connection.php"); //this makes the time in the past to destroy the cookie $aa=$_COOKIE['md']; $bb=$_COOKIE['li']; $h1=$_COOKIE['h']; $m1=$_COOKIE['m']; date_default_timezone_set('GMT'); if (date_default_timezone_get()) { 'date_default_timezone_set: ' . date_default_timezone_get() . '<br />'; date("l, F d, Y h:i" ,time()) .'<br />'; $date_str = date("l, F d, Y h:i" ,time()); //ex:from database $date …

Member Avatar for pritaeas
0
161
Member Avatar for anita_86

Hi all.I found this code on a forum to confirm that the user wants to delete the record from database and that the link has not pressed accidently.But it is not deleting the record even after pressing ok.This is may be because the id is not passed properly. Can anyone …

Member Avatar for anita_86
0
173
Member Avatar for replic

Hello everyone, assuming i want to write some values into my database of choice i found two ways to do this. [CODE] my $sql = "INSERT INTO table (foo, bar, foobar) VALUES (?, ?, ?)"; my $sth = $dbh->prepare($sql); foreach(sort keys %hash) { $sth->execute($_, $hash{$_}, $some_other_value); } [/CODE] as opposed …

Member Avatar for replic
0
1K
Member Avatar for walid86

i have a form, with a few text box's, and a background image, when i click the button to produce the pdf it often creates this Parameter is not valid exception (argumentException was unhandled).. [ICODE] Bitmap back = iDMS.Properties.Resources.corporateLetterHeadPage1; back.SetResolution(300, 300); <------ error is here.. [/ICODE] the image is not …

Member Avatar for walid86
0
471
Member Avatar for ozzyx123

I need a program which counts the pages of all the pdf files in a directory. i found this scrpit which is supposet to do exactly that, but when i try to run it it just doesnt work for me it outputs nothing. i dont really know what to change …

Member Avatar for TrustyTony
0
883
Member Avatar for Cameronsmith63

So now that im using excel 2010 and saving data in .xlsx format, I have a problem doing something very simple, like reading the file and trying to run a simple sql command on it... [CODE]SqlConnection con = new SqlConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Download Report Sheets\Schedule List\SoftwareDownload_OS732_20120306.xlsx;Extended Properties=Excel 12.0 Xml;HDR=YES"); SqlDataAdapter da = …

Member Avatar for Cameronsmith63
0
135
Member Avatar for feblioz

[code=php] <div id="user-bar"> <div id="user-options"> <div class="notification-container"> <img src="media/gear-faded.png"> </div> <div class="notification-container"> <img src="media/courses-faded.png"> </div> <div class="notification-container"> <img src="media/chat-faded.png"> </div> </div> <span class="profile-container"> <img src="https://openlearning-cdn.s3.amazonaws.com/feblioz-avatar-24-ts1330811171.jpg" alt="" border="0" class="profile-image" align="absmiddle" width="24" height="24" id="myAvatar24"> <span>feblioz</span> </span> </div> [/code] do you know how to make all the images to be in a line?

Member Avatar for karthik_ppts
0
136
Member Avatar for horizondesai

Hi everyone, I am new to RichTextBox control in VB6 I wanted to select the entire line/row in the RichTextBox, where currently the cursor is. How should I do it ? The code should be paste in command button 'cmdSelect' Thanks in advance :)

Member Avatar for horizondesai
0
3K
Member Avatar for morthea

[COLOR="red"][COLOR="red"]can anyone pls help me im still an IT student, and we have this case study Pizza Delivery system which the user can choose and check all the text box of the pizza size [/COLOR][/COLOR] [CODE]<INPUT TYPE=checkbox NAME="pica10" VALUE="S">10" Php300 <INPUT TYPE=checkbox NAME="pica14" VALUE="M">14" Php450 <INPUT TYPE=checkbox NAME="pica18" VALUE="L">18" Php650 …

Member Avatar for morthea
0
284
Member Avatar for Zay

Hello; can any 1 explain to me how to find the miniumum spanning tree for a graph ? see this graph as an example :

Member Avatar for Dmitry74
0
186
Member Avatar for vizz

[CODE] <div id="navcontainer"> <ul id="navlist"> <li><a href="#" id="current">Item one</a></li> <li><a href="#">Item two</a></li> <li><a href="#">Item three</a></li> <li><a href="#">Item four</a></li> <li><a href="#">Item five</a></li> </ul> </div> [/CODE] This is my code for menus. How to hide "Item two, three, four, five", If "Item one" is clicked (using jquery)?

Member Avatar for stbuchok
0
108
Member Avatar for karthikprs

I am trying to extract the number in the string "(c) 2010 Elsevier Ltd" from a PDF document . I found that the textsearch method of PDFtron package would help me find the string as stated in the example code: [CODE]import pdftron.Common.PDFNetException; import pdftron.PDF.*; import pdftron.SDF.SDFDoc; // This sample illustrates …

Member Avatar for karthikprs
0
3K
Member Avatar for Vkitor

Hi! I'm working on program with a lot of buttons and I would like to use For loop to make all of them instead of writing every each one of them. so, can anybody help me? here is example of code [CODE] import tkinter as tk def klik_1(): button1.config(image=s1) def …

Member Avatar for Gribouillis
0
23K
Member Avatar for divsok

[IMG]http://i.imgur.com/UfUjV.png[/IMG] there are more rows on the table and each row has a button.i need to the get first coloum value of each record by clicking the button..

Member Avatar for pritaeas
0
97
Member Avatar for poolet25

Well something is missing of me (again :P) and I need some help.. I am trying to get files for my database and load it into comboBox. But for some reason I get systax error.. As I mention into other post I am not familliar with VB so please check …

Member Avatar for M.Waqas Aslam
0
158
Member Avatar for Cyre

i have a dynamic table whose values came from the database. the user will select records from the table then save the result to another table. i have the following code: <?php echo "<form method='post' action='save_result.php'>"; $subjects="table1"; $connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath("data.mdb").";"; $conn=odbc_connect($connstr,'','') or die("connect error: …

Member Avatar for karthik_ppts
0
142
Member Avatar for bobgodwin

I'd like to get a list of folders that don't contain certain files. I'm using this to list directories & files: [code=php]$path = "media"; $dir_handle = @opendir($path) or die("Unable to open $path"); function list_dir($dir_handle,$path) { while (false !== ($file = readdir($dir_handle))) { $exclude = array(".","..","_player_thumbs","Thumbs.db"); $dir =$path.'/'.$file; if(is_dir($dir) && !in_array($file, …

Member Avatar for bobgodwin
0
243
Member Avatar for patrick1981

Hey fellows, I have three database tables AUCTIONS auction_id name description place date BIDDERS bidder_id firstname lastname email signupdate BIDS bid_id auction_id bidder_id biddate I want to create a drop down menu to select and display BIDDERS signed up for each AUCTIONS. I have coded the following in PHP to …

Member Avatar for karthik_ppts
0
6K
Member Avatar for nandosss

I need help creating a two dimensional array in mips assembly. I am new to this kind of programming and i do not know how to approach the problem. i have to create an array max size 20 by 20 and then fill it up with data entered by the …

Member Avatar for Ancient Dragon
0
4K
Member Avatar for Labdabeta

I understand that data on computers can be compressed (I see it all the time with zip files and jpegs) but I was wondering just how compression works. Thinking it through, if you data is represented by 1s and 0s then it can be corresponded 1 to 1 with a …

Member Avatar for Labdabeta
0
251
Member Avatar for SubProf

Hello, I have two forms where one is a login form and the other is the main form. The user enters their username and password and clicks the "login" button. The code in the login button validates the username and password and if correct opens the main form. The problem …

Member Avatar for EmporerHaki
0
190
Member Avatar for Zssffssz

My school has banned any system call (I even brought my own copy of command.com and cmd.exe) [B]but[/B] FreeDOS's FreeCOM still works (very well at that). Is there a way to make it that when I call the system function it makes the call to FreeCOM (Whitch will be bundled …

Member Avatar for Zssffssz
0
127
Member Avatar for htp367

Hi everyone, I want to create a simple GUI that prompts user to browse for a text file, read in that file and display them in the GUI as a list. Then it should allow user to select from that list. Once an element is selected, there should be a …

Member Avatar for NormR1
0
340
Member Avatar for toimelin

Hello I have a problem with a part of my binary heap i am building for my a* (pathfinding) project. The program crashes on this line with debug assertion failed message, expression: (_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)): [code=c++]Comparable temp = theHeapsArray[hole];[/code] I have tried creating my heap with integers and it worked. But when …

Member Avatar for toimelin
0
116
Member Avatar for lxXTaCoXxl

I'm having trouble calculating the Nth root of a given value. I don't understand what's going wrong in the algorithm, but the values are incredibly close. Only off by about 0.78891 for small values, and about 0.52 for larger ones. So any help with this is appreciated; I don't want …

Member Avatar for Momerath
0
159
Member Avatar for belber

hey all, i wan't ask , how to connect sms gateway to vb6..??? and then i sen't sms with vb6... help plizzz...,

Member Avatar for belber
0
226
Member Avatar for ambinh

I need some help in 3 files of code from a check-out program that I am playing with. I think I forgot to declare some variable, and some weird syntax with semicolon. Text file contain the info: 4101 BRAEBURN_REG 1 0.99 101.5 4021 DELICIOUS_GDN_REG 1 0.89 94.2 4020 DELICIOUS_GLDN_LG 1 …

Member Avatar for ambinh
0
159
Member Avatar for Ctechnology24

can anybody help me how I can use four tables at the same time with different conditions to fetch records from my database? this is my sql code that im trying to modify because this is only for two tables: [CODE] <?php session_start(); if (isset($_SESSION['username'])) { include("database.php"); $username = $_SESSION['username']; …

Member Avatar for Ctechnology24
0
231
Member Avatar for veledrom

Hi, The code below always returns Fail although I send correct username and password. Can anyone spot what I do wrong? Thanks in advance [CODE]<?php $username = htmlspecialchars(trim($_POST['username'])); $password = htmlspecialchars(trim($_POST['password'])); if($username == 1 && $password == 1) { echo json_encode(array('result' => 'success', 'username' => 'myname'); } else { echo …

Member Avatar for AleMonteiro
0
141
Member Avatar for Leodumbi

Hi everybody, its Leo again I'm having some problems calculating the values for two diferent fiels of the datatable. it return " [COLOR="Red"]Object reference not set to an instance of an object[/COLOR]" this is How I feed the datatable [CODE] Dim daProd As New SqlDataAdapter Dim conProd As New SqlConnection …

Member Avatar for Mitja Bonca
0
124
Member Avatar for dlmagers

I am trying to put a 'Invalid' statement in my code and not sure how to do this. Could someone please help me with this? Thank you in advance. Here is my code: [code]#include <iostream> #include <iostream> #include <cctype> // is needed for toupper() #include <cstdlib> // is needed for …

Member Avatar for DeanMSands3
0
143
Member Avatar for Pravinrasal

hi, I have created one array in java script like this: obj.push({'key' :value1, 'key2' :value2}) and it is stored in database ,but problem is that when I am retrieving again back from database I am confusing to how to get array from database because it is stored in following format …

Member Avatar for stultuske
0
133
Member Avatar for arbazpathan

I have developed following web service in vs2008 but cannot resolve th following error System.Data.SqlClient.SqlException: Arithmetic overflow error converting varchar to data type numeric. here is my web service code using System; using System.Linq; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using System.Xml.Linq; using System.Data.SqlClient; using System.Data; using System.Configuration; [WebService(Namespace = …

Member Avatar for arbazpathan
0
516
Member Avatar for SAM2012

Hi, I have used this [CODE]#using <System.dll> using namespace System; using namespace System::Collections::Generic; using namespace System::Linq; SortedList<double, String^>^ slist = gcnew SortedList<double, String^>();[/CODE] in one program its working well. But Now when I pasted the same code with all given headers in second program its not being identified there. Errors …

Member Avatar for SAM2012
0
823
Member Avatar for arindam31

Hi, I have the a situation here . My motive : Hiding one panel and showing another. Whats Working :Layout wise , my app is behaving like i want it to . The Problem : After the I hide one panel and show another , the button in this panel …

Member Avatar for arindam31
0
192
Member Avatar for Matthew N.

I have a Java program, which launches a app, but before starting, it checks for the version.txt file, and if it doesn't exist, or there is a newer version available off my site, it downloads it. Well, not quite. I've got the part that checks for updates, and file existence, …

Member Avatar for DavidKroukamp
0
490
Member Avatar for cmps

I am trying to create an application that will: 1) ask the person to enter a number (ex: 321) 2) the application will display each number on a line ex:3 2 1 Rules: Don't use looping and don't use arrays Someone told me it could be done but I can't …

Member Avatar for cmps
0
126
Member Avatar for sharathg.satya

i am having a login page done in android using eclipse . now i want to extend the layout of the login page by setting a fieldset around that window.. (field set as in html.) can anyone help me please

Member Avatar for peter_budo
0
107

The End.