64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for HankReardon

Hello, I have been having quite a bit of trouble with this one. Can someone please tell me how many swaps it would require to sort the following array? {2, 4, 6, 3, 7, 1} I tried putting my counter in a couple of places and neither one of them …

Member Avatar for HankReardon
0
2K
Member Avatar for chdboy

Hi, I'm adding day shift column where current month (I'm using datetimepicker for extracting month from it ) but getting this error Conversion failed when converting date and/or time from character string Here is the code Dim str10 As String = "Select COUNT(DayShift) FROM Attendance WHERE AttendanceStatus = 6 AND …

Member Avatar for chdboy
0
128
Member Avatar for CHOCHOCHO

Here are the errors Binary.cpp: In function `std::istream& operator>>(std::istream&, binary&)': Binary.cpp:24: error: `nodeType*binary::head_ptr' is private Binary.cpp:114: error: within this context Binary.cpp:24: error: `nodeType*binary::head_ptr' is private Binary.cpp:115: error: within this context Binary.cpp:115: error: call of overloaded `list_clear(nodeType*&)' is ambiguous Binary.cpp:28: note: candidates are: void list_clear(nodeType*&) Binary.cpp:56: note: void list_clear(nodeType*) Binary.cpp:24: error: …

Member Avatar for Banfa
0
181
Member Avatar for ngonix

Hi, i'm having a little problem with my php script. Here's the deal. I have 2 tables and I want to assign a post variable to a row in one table and then insert the id value of that table in another table. The script is as follows: clients.php <?php …

Member Avatar for ngonix
0
323
Member Avatar for masterfact18

!! i was trying to create a simple grading system but my project doesnt work it always shows the last if statement and ignore the other statement...please help here's my code...can someone please tell me what's wrong coz i dont know how to use if/elseif/else statement... newbie here...please help Private …

Member Avatar for tinstaafl
0
289
Member Avatar for masterfact18

hi everyone... my problem is i got 2 command button named command1 and command2..what i want to happen is when command2 is click the function of command1 will work... can someone please help me...

Member Avatar for masterfact18
0
237
Member Avatar for davy_yg

var_dump(explode(".", $data['image'])); $file[0] = explode(".", $data['image']); echo $file[0]; The result: array(2) { [0]=> string(6) "image2" [1]=> string(3) "jpg" } Array I am trying to store "image2" in $file, how? (exclude the jpg)

Member Avatar for radow
0
90
Member Avatar for azgold472

I have a reservation page at [Click Here](http://www.orlandosuvandtowncar.com/reservations/Reservations.php) I get the following error when submitting the form to email Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/orlandos/public_html/reservations/res1.php on line 55 Below is that coding any help would be great. the server is running php 5.2.17. <?php require_once "Mail.php"; // EDIT …

Member Avatar for Webville312
0
279
Member Avatar for siaosituimoloaublood

Well this is my problem..the code below is to display the grade that is associated with the points the user enters. Now, my problem is how can I have a message display an error message when the user enters a number above 500 or my array..any help is greatly appreciated. …

Member Avatar for Reverend Jim
0
131
Member Avatar for WDrago

All, I wonder if anyone has an opinion on this. What's better, this: // Diagonal checks if (board[0][0] == turn) { if (board[1][1] == turn) { if (board[2][2] == turn) { System.out.println(); System.out.println(turn + " IS THE WINNER!!!"); writeBoard(); return true; } } } Or this: // Diagonal checks if …

Member Avatar for WDrago
0
189
Member Avatar for Papa_Don

I'm trying to use the Import/Export Wizard to import data from an Excel File to the SQL Database. First, know that I'm trying to run it as an "Administrator". I've had issues because it wouldn't let me log in. So I'm trying it this way. I'm following the steps as …

Member Avatar for Papa_Don
0
254
Member Avatar for MasterHacker110

I have this email program but it doestn seem to work, the emaik never arive at the reciever, not even in his spam folder from email.mime.text import MIMEText from email.mime.application import MIMEApplication from email.mime.multipart import MIMEMultipart from smtplib import SMTP msg = MIMEMultipart() msg['Subject'] = 'Email From Python jajaja' msg['From'] …

Member Avatar for TrustyTony
0
181
Member Avatar for Papa_Don

Group, In the classes on VB I took were some training on creating Parent and Child Forms. What never was clearly explained is why we would need to use such related forms. I ask this as I'm now working on a group of forms that will be the "order entry" …

Member Avatar for Papa_Don
0
554
Member Avatar for while(!success)

Hi guys, I'm hoping you can help me find a more elegant solution to my query inside a foreach loop. Here is the loop in question: foreach (DataRow row in dt_blah.Rows) { SqlCommand sc = con.CreateCommand(); sc.CommandType = CommandType.Text; sc.CommandText = "select blah blah blah .. where S = @s1 …

Member Avatar for AleMonteiro
0
1K
Member Avatar for masterfact18

i would like to know hot to put a limited input in a textbox.. situation is like this i put a textbox in a form then what i would like to happen is to accept only 2 number and will not accept the following number that is being pressed...please help... …

Member Avatar for masterfact18
0
136
Member Avatar for CHOCHOCHO

These are the errors that i am getting J:Project 2Binary.cpp: In constructor `binary::binary()': J:Project 2Binary.cpp:37: error: no match for 'operator=' in '((binary*)this)->binary::head_ptr = 0' J:Project 2Binary.cpp:6: note: candidates are: nodeType& nodeType::operator=(const nodeType&) J:Project 2Binary.cpp: In copy constructor `binary::binary(const binary&)': J:Project 2Binary.cpp:43: error: invalid initialization of reference of type 'nodeType*&' from …

Member Avatar for CHOCHOCHO
0
376
Member Avatar for murnesty

I have develop a functor array without class but fail to write a functor relate to class. Here is the code without class int returnOne (void) { int a = 0; a++; return 10; } int returnTwo (void) { int a = 0; a++; return 20; } typedef int (*functor2) …

Member Avatar for mrnutty
0
258
Member Avatar for abzy1991

Using SQL I have to SUM the total of each game but I can only select the games that have more than 10 scores in total . So `select GameNo,sum(goals) from tblGame, tblAthlete.` But I'm stuck on the 'where' bit.....`select GameNO where (sum(goals)>=10);` So not only do I have to …

Member Avatar for abzy1991
0
168
Member Avatar for eng442

It's been a long time since I don't post here, even forgot my username. Sorry if this is the wrong section. I can't get the $_POST['name'] values sent from an html form on my php file. I've seen lots of similar questions but nothing helped. I have lot's of includes …

Member Avatar for eng442
0
530
Member Avatar for turpentyne

I have several rollover images that resize, then return to original when moused over. When an image animates, its movements are sequential, not synchronous. It gets taller, then wider. I want these to happen at the same time. Any thoughts? Here's a snippet of my current animation: $(".square.one,#link_nest").mouseenter(function(){ if ($(".the-nest")[0]){ …

Member Avatar for turpentyne
0
87
Member Avatar for ahmzy

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Xml; using System.IO; namespace Enrolement { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { /* This part of my code imports the …

Member Avatar for ahmzy
0
1K
Member Avatar for jovstudios

Hello Guys I Have A Question.. I have a Table for My Daily Reports.. But I dont know to Show the Daily, Weekly, Monthly and Annual Reports. What Should I do?

Member Avatar for AndreRet
0
2K
Member Avatar for l.worboyz

I am trying to call two methods from another class which is linked to the current class i am working in. basically if it is a left-button click from the mouse, i want to call the addCounter method (of the myAbacus object). If it is a right button click, i …

Member Avatar for JamesCherrill
1
386
Member Avatar for pritaeas

I have a project that contains regular resources in `Properties\Resources.resx`. Next to that, I have a folder named `Scripts` containing files, marked as "Embedded Resource". When I do: var resourceNames = Assembly.GetExecutingAssembly().GetManifestResourceNames(); I get a list of resources, containing both. What I would like to have is a list of …

Member Avatar for Ketsuekiame
0
1K
Member Avatar for ceeandcee

I have a page on my site where I want to update only certain fields. There is a php form tht captures the data. Currently, when I update one field - it blanks out all the others. I want to be able to only update the one field and if …

Member Avatar for ceeandcee
0
141
Member Avatar for sundog1

Hi Guys, OK, i've been through nearly all the properties possible in VS2010 to try and find how to do this most basic of tasks. Look at Screenshot 25... This is how it shows at the moment. Now look at Screenshot 26... This is How I WANT it too look …

Member Avatar for Mike Askew
0
251
Member Avatar for Galbatorix

hello guys, i have an sql statement that is supposed to be returning data from two tables that i have joined. Here is the code below: sql = "SELECT rooms.roomID, rooms.roomNumber, rooms.roomStatus, " & _ "roomType.roomType, roomType.adultRate, roomType.childrenRate, roomType.roomTypeID FROM rooms " & _ "JOIN roomType on rooms.roomType = roomType.roomTypeID" …

Member Avatar for Galbatorix
0
805
Member Avatar for sundog1

Hi Guys, I have a Dataset which has been populated correctly now (after a bit of a blonde moment earlier). I've decided to go for a ComboBox Drop-Down option which currently is showing the "companyname" Column of the DataSet. However, How do I go about Getting Text boxes to To …

Member Avatar for sundog1
0
156
Member Avatar for trishtren

hello, Iv recently been working on a compiler, so far i have a fairly decent working lexical analyzer and token scanner. So i can break down the code into a series of tokens and analyze them for correct strucutre. I also understand how to generate x86 instructions. However im lost …

Member Avatar for trishtren
0
193
Member Avatar for kimangel

Hi experts, I have listview table but when I click or double click the row the data could be changed or edited? How could I disable it but still able to select every row? Many thanks! Kimangel

Member Avatar for kimangel
0
3K
Member Avatar for ehpratah

Hi to all i just cant get the grasp of what im trying to do basically i'm making a script that will higlight a certain **data(Date /time)** in my table if data < 3 min of current time.. ex $data="March 12, 2013, 16:18"; $current_time="March 12, 2013, 16:20" if($data< 3min of …

Member Avatar for ehpratah
0
216
Member Avatar for OsaMasw

Hello guys I mentioned earlier that I have installed mod_security module first everything was works fine until I've tried to upload large files my chmod for upload dirctory was 777 and when uploading file its ends with Internal Server Error I've changed the chmod of upload folder to 755 and …

Member Avatar for OsaMasw
0
2K
Member Avatar for joshl_1995

Hello Community, I'm trying to dynamically add a menuitem to my context menu and add a click handler but for some reason it won't add the handler what did a do wrong? Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click For Each Line In RichTextBox1.Lines Dim NewItem As …

Member Avatar for ghincelino
0
269
Member Avatar for Tko_1

Okay so i have this script that will upload and remane the file to image.png which works perfect. what i am trying to get is when uploaded number the image in order image1.png image2.png image3.png if (isset($_POST['submit'])) { $newext = '.png'; $filename = $_FILES["file"]["name"]; $file_basename = substr($filename, 0, strripos($filename, '.')); …

Member Avatar for Tko_1
0
165
Member Avatar for Papa_Don

Here we go again. I've installed SQL Server 2008. I can't seem to find my database I've created (and there are two tables so far) that were created through Visual Studio 2010 Express (I'm coding in VB). If it helps, I've determined that the database is a ".Net Framework Data …

Member Avatar for Papa_Don
0
205
Member Avatar for Motifaithed

Hi Guys, Can you give me an idea how to secure a login page after logout wherein when I click the back button of the browser it will not redirect the page in the last page viewed, I read a lot of thread and saying that its all about session, …

Member Avatar for Motifaithed
0
339
Member Avatar for ImZick

Hello I'm having Trouble here in my ms chart. ![6c6bbe39010ff302ee66367ce9439bba](/attachments/large/4/6c6bbe39010ff302ee66367ce9439bba.jpg "6c6bbe39010ff302ee66367ce9439bba") as you can see the chart in the right side the secondary axis i want it to be fixed in the line of the primary axis in the left side Public Sub Chart_BU_GP_vs_Target() With Chart_EBU_GP_vs_Target .Series.Clear() .Legends.Clear() .ChartAreas("ChartArea1").AxisX.MinorTickMark.Enabled = …

Member Avatar for TnTinMN
0
3K
Member Avatar for wlhj1

I am working with a tabbed form. On the first tab I have a datagridview with customers in it and a searching textbox. I have that working. On the second tab I am placing another datagridview with customer transactions and other data. The customer transaction table has a CustomerID Column …

Member Avatar for wlhj1
0
292
Member Avatar for Papa_Don

Hi group, After reviewing notes, I think I understand how to write the code to save data in the SQL Server. With that said, I want to understand the best way to arrange the data and upload it. My project is creating an order. I'll have the usual part number, …

Member Avatar for Papa_Don
0
136
Member Avatar for Aaron_JY

I was wondering if it was possible to create a temporary variable in C# that will be destroyed at the end of the function so I can use that variable name elsewhere in another function. Can anybody help me out?

Member Avatar for sepp2k
0
113
Member Avatar for XerX

Hi, I am having a problem overriding methods in a subclass when they contain private methods from the master class. The is the master: package blabla; public class Person { private String firstName; private String secondName; private String familyName; public Person() { firstName = ""; secondName = ""; familyName = …

Member Avatar for JamesCherrill
0
244
Member Avatar for UKnod

I have a warning that I can;t get rid of: Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated. I am pretty sure it is becasue I have not dimentioned the variable but how do you dimention an IO.memorystream. …

Member Avatar for UKnod
0
286
Member Avatar for officallysabbir

I have the following code which is in a class called customerModel. How do I call this method to another method inside another class called customerController? I am abit new to this and have been trying for ages but have had no luck. Please help thank you. public class customerModel{ …

Member Avatar for JamesCherrill
0
480
Member Avatar for jeremywduncan

I am trying this example from Byte of Python, Chapter 10. I can't seem to get this zip to work. I am not sure if the syntax for windows is written correctly or not. I have tried running from interpreter and as a script and both return Backup FAILED. Anyone …

Member Avatar for jeremywduncan
0
434
Member Avatar for tony75

**Reading two files?** I will be very grateful to get help about this script. Apython script which can be used to have a convenient format to print the bill in a store. Your script is reading two files: The first one is containing a list of lines and each line …

Member Avatar for tony75
0
345
Member Avatar for sundog1

Hi Guys... Putting together a Tiny little app which shows VPN Details for use 'In-House' but for some strange reason my DataSet won't fill? Can anyone spot the mistake? :S private void Form1_Load(object sender, EventArgs e) { //XML Load of Document. This loads the XML Document and the value of …

Member Avatar for sundog1
0
362
Member Avatar for deepak.fugo

Hi All, I have 5 product tables(product_table_1,product_table_2 and so on), category table and sub category table I need to get number of products mapped for each category. i.e count of products accross categories. Below are the table structure and the query which i have written, I need to optimize the …

Member Avatar for AleMonteiro
0
188
Member Avatar for davy_yg

Cek the following codes. It suppose to copy and paste the pictures - to folder photos/ . Yet, I haven't seen the message: "sucess copy file to photos" appears. only, "Data telah tersimpan" or "Successfully saving data to database". //Save Picture if (isset($_REQUEST['ok'])){ if (empty($_REQUEST['id'])) { $sqlstr = "INSERT INTO …

Member Avatar for davy_yg
0
635
Member Avatar for jovstudios

Hello Guys, I hav a Code For My Report in Daily .I don't know why there is nothing show the records. even though the Error not Popup. This is My code guys. Help Me Guys Dim rsReport1 As New ADODB.Recordset rsReport1.Open "Select purchase_date, BarCode, Price, ProductName, Quantity, TotalPrice From Dailyrecord …

Member Avatar for jovstudios
0
184
Member Avatar for joshl_1995

Hello Community, I need help using the ftp_nlist command, what i'm trying to do is look in a directory but the directory is two separate string (eg. "New folder") and it is saying there is nothing in there but there is i'm sure the problem is because the two separate …

Member Avatar for joshl_1995
0
582

The End.