64,152 Solved Topics
Remove Filter ![]() | |
i am trying to store image in folder and 2nd part is store image name in database. this works fine but the problem is that no matter how many images u upload, there is only one image in folder name 0.jpg. $sql = mysql_query("SELECT * FROM item WHERE image_user_name = … ![]() | |
Hello good day. I have a quick question is anyone able to assist me in saving a password file. I encrypted my password and so I want to save the salt and the encrypted password(which are byte arrays). I tried using a properties file, but I soon found out that … | |
If am writing a VB.Net module for a project I am working on and have decided to try out different ways of doing some things, without getting rid of the older code that worked. I am selecting between these methods by setting a `#Const` at the beginning of the Module … | |
I have this static block of code which is following Singleton design pattern. class Employee{ private static Employee emp; static { if (emp==null){ emp=new Employee(); } } public static Employee getEmployee(){ return emp; } } My doubt is if this code can be accessed by Mutiple threads concurrently and break … | |
{ conOOC.Open(); SqlCommand cmdDisplay = new SqlCommand("SELECT * FROM [Course] WHERE ([CourseID] = @id)", conOOC); cmdDisplay.Parameters.AddWithValue("@id", ddlCourseList.SelectedValue); SqlDataReader dtrDisplay = cmdDisplay.ExecuteReader(); while (dtrDisplay.Read()) { GridView1.DataSource = dtrDisplay; GridView1.DataBind(); } this one is depends on user select which items on the dropdownlist, once they have selected should display the gridview, but … | |
Hi there, I am just beginning to learn java right now, and have a real begeinner question. I ahve read that when you declare a float variable and ssigna value to it the number has to be followed by an "f". What I coudln't find out is why: `var floatNumber … | |
Hello! I've got a question here that has me scratching my head - I've got a table of IP addresses. Each octet has its own field (OCT1,OCT2,OCT3,OCT4). The first two octets are fixed, and will never change (so, the IP addresses on my table are between X.Y.0.0 and X.Y.255.255). As … | |
i'v 1 multidimensional array from where i just want to print where (parent==0) by counting. It suppose to provide me 2 value but when i write return method on line-32 it show me d 1st one & whn write on line-35 , it show me the last one. how can … | |
Hi guys...I'm new to python so I've no idea what I'm doing but I need to write a function that 1) asks the user how many strings they would like to input. 2)Stores the strings in a list 3) sorts the list 4) Displays the sorted list 5) Displays the … | |
<asp:TemplateField HeaderText="Interview Date"> <EditItemTemplate> <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> <ajax:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1"/> </EditItemTemplate> </asp:TemplateField> this gives me an error, when i click on EDIT button in gridview, even ajaxtools are installed and work when i use them simply, Could not find any resources appropriate for the specified culture or the neutral … | |
hi friends, here is my problem i'm designing a page with no. of checkboxes but not able to insert its value in mysql... here is my php code: **<?php $host="host"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="packtest"; // Database name $tbl_name="test"; // Table name // … | |
**I have a text file as below:** I have a text file as below: BRANCH :SARDAR BHILADWALA PARDI PEOPLE'S CO-OP. ,Head Office NODE : 9 BRANCH CODE : 1 RUN DATE :11/05/2009 USER : SNA REPORT ID :R048260 * AREA WISE MEMBER LISTING OF SHARE CUSTOMERS ** PAGE : … | |
I'm trying to compile a project using Code::Blocks with a MinGW compiler (Windows XP). I have included the correct library file from boost and set the right include path but it doesn't seem to make any difference. Here's the error. The impression I'm getting is PdfContentsGraph class is not initializing … | |
Hello, All ... I have an HTML file which contains pages of formated text, all within a <p> tag, which has an onclick call to a jscript function. This function gets mouse cursor position at the click event, then passes this position to elementFromPoint(pos.x,pos.y) to return my element object, which … | |
Hi, I'm manage how to find word in textbox. In textbox : "How i can be a good programer? How i achieve that?" If i want to search "How" then it should return 2 How words in text. Please Help. Thank You. | |
i am doing some machine program that our teacher. told us to do, i have figured out how to solve it, the first output is correct but the second one gives me an answer of 3.10752688172043, and the answer should be 3.75268817. here is my code... using System; using System.Collections.Generic; … | |
how to add multiple image in listview columns like ListViewItem.ListViewSubItem[] subItems; ListViewItem item = null; item = new ListViewItem(imageList1.Images[0].ToString(), _GroupName); subItems = new ListViewItem.ListViewSubItem[] { new ListViewItem.ListViewSubItem(item,imageList1.Images[1].ToString()), new ListViewItem.ListViewSubItem(item,imageList1.Images[2].ToString()), new ListViewItem.ListViewSubItem(item,_Row["Description"].ToString()), new ListViewItem.ListViewSubItem(item,imageList1.Images[3].ToString())}; item.SubItems.AddRange(subItems); ListView.Items.Add(item); how add to do that. dynamically. | |
i am having problem see, in gridview , i am displaying username, email and shortlist(checkbox), when i click on UPDATE button , then if checkbox has been ticked (selected) then it send email to person , (email address picked from same row) but i want to send interview time/date to … | |
![]() | I am reading data from a mysql database and displaying it on a web page for the user to make changes. One of the values that I am getting from the database is to be displayed in a Select tag: Manufacturer: <select name="Manufacturer" tabindex="1" > <option></option> <option>Aprilia</option> <option>BMW</option> <option>Moto Guzzi</option> … ![]() |
i am trying to store image in a folder and getting a error. it say undfine variable my clearly the variable is difined in html code(input type = file) Notice: Undefined index: image_file in C:\xampp\htdocs\E_COMMERCE\additem.php on line 82 line 82: move_uploaded_file($_FILES['image_file']['tmp_name'], "IMAGE/ITEMS/$image_name"); <input type ="file" name="image_file" id="image_file" class='file'/> //place image … | |
i got a problem to make a program where i should use arrays the problem is in the next part, even though all the for loops are the same in this array `results[4][5] = i; // problem here nothing gets stored` nothing gets stored, so when i run the program … | |
![]() | Hello Forum I'm learning more about Form Apps in VB.net and I encountered the error 'System.ObjectDisposedException', no matter what I do this error doesn't seem to want to stop. This error occurs in two stages all under the declaration of BBGO which is declared as graphics. This should be the … |
<?php if(isset($_POST['additem_button'])) $sub_category_p = isset($_POST['sub_category']); if($main_category_p == "Choose..."){ $main_category_p = ""; } echo "$main_category_p"; ?> <select name = 'main_category'> <option value="Choose one">Choose...</option> <option value="Apparel">Apparel</option> <option value="Home Decor">Home Deco</option> <option value="Beauty">Beauty</option> </select> it doesnt echo out any thing. no matter which option i chlice in select. | |
if(!$email_p) { $forgot_error .= "Error - Enter your email address"; } else if(preg_match( "/[a-zA-Z0-9-.+]+@[a-zA-Z0-9]+.[a-zA-Z]+/", $email_p) < 0) { $forgot_error .= "Invalid e-mail address"; } i want to make sure email that user enter is right format. but for some reason it never goes in else if statment. can some one … | |
Hello! I'm terribly confused about how to pass a simple integer that was read from my main() to another function (in the same file). I know this is a really silly issue, but searching on the internet is just making me more confused. Here's my code so far. #include <iostream> … ![]() | |
Hi, I have spent way to much time stuck on this with no clue how to do it. My program is a phone book directory. I'm writing a funciton that when the user enters a phone number to be deleted the program will delete that corresponding entries info. So it … | |
Hi I have been struggling with this for a while and cant find the answer, the code below shows my else if statement everything goes fine until using the else if statement and ' . $img . ' ends up being blank. It should be if field 4 is 0.00 … | |
i have tblScrutiny , COLUMNS: teamid name userid now confusion is that every team has many members, so how how would i mention them, like e.g i mention 1 member in teamid =1 , then in next row the teamid changes (identity=ON) , so how to mention 2nd member ? | |
How would I change the folder path in this? or what would be the best way? `(file_exists ($this->jam.'.txt'))` | |
Hi I am trying to join tables and fields and one of the tables had fields like field.field . So when I try to do a join it does not know the table field name as you end up with something like Table1.field.Name How do I get round this please … | |
Hi guys I need some help writing a program where I store information from a textfile into a parallel array. I need to be able to do a multiplication sum with the amount,and an if statement. Here is the textfile James 550 Quinton 410 Liam 120 Taylor 600 Jake 270 … | |
Hi All, I am trying to create an FTP application for file transfer in LAN. I want to list all available users with their IP's and user names, so that any persone can be found and FTP can be initiated. But I'm stuck at the start as i don't now … | |
Hello Community, I want to know if there is a way to make a program that will click a button on a webbrowser but the button does not have a name (name="") or id (id="") property it just has a class (class="") property and if there is a way is … | |
Hello again! Now i stucked with another little problem. I have a table: ID____Name______Age_______City 1_____Robert_____20_______London 2_____Fabio______31_______Rome 3_____Hans______35_______Berlin 5_____Josh_______25_______London Now i don't know how to get a city which has the most population in this table. With my code: SELECT City, COUNT(Name) AS Population_number FROM Person GROUP BY City; I get … | |
Hi, I have quite a large CSV file (Around 20,000 rows with about 20 columns) that I am trying to manipulate. Initially I am looking for a way to get out the first 10 or so records after they have been sorted in ascending order on one of the numeric … | |
Hi, I have 3 tables Description Item Transaction DeID Name IID Name DeID TranNo Type IID Date 1 Printer 1 Stylus T10 1 1 Repair 1 2 Monitor 2 HP 1 2 Repair 3 3 ViewSonic 2 I need to count how many printers, Monitors etc. are in Item and … | |
Hello buddies , I have no Idea what is subquery, every time I tried to link two tables in one sql query I failed here is the scenario I want: in this pic I have posts with "**user_id**" only I need to show the username which stored on another tables … | |
Hello Everybody, I just join today, and this is my first post. I know how pass and receive variables thru URL like [url]www.mysite.com/index.php?var1=ABC&var2=QWERTY[/url] This is OK but what i'd like to know if we can use something like this: [url]www.mysite.com?username[/url] or [url]www.mysite.com/username[/url] but username will change for every user. And … | |
Well, I have just written all of this code, and then made lots of edits, compiled and when I run it, I get STATUS_ACCESS_VIOLATION. And I can't work out where the error lies. It is a very basic Database program BTW. Here is the code: http://pastebin.com/jLktEL3C And here is the … | |
I made a test program to mess around with a feature I'm trying to put into my class project but I can't seem to figure out what I'm doing wrong. What I'm trying to do is to line up the numbers right of the decimal. this is my test source … | |
I want to know if this is correct for what they are asking. If I try to put 7.5% in the `int=` spot it errors. I am a newbie who doesn't quite understand it all. The commission rate in the firstmethod will be entered as a decimal value (for example, … | |
Hi, In Dialog based MFC code (VC++ 2012), I have two command buttons and 1 Text Box 1. Enquire 2. Start Once the user chooses ENQUIRE Button, I display msg in TextBox "Press START for the ....." In the Start Button code, I do the socket opening,accept functions etc while … | |
Ok So I have seen a few things.. But is there anything that goes into depth more but sort of squared away... From what it looks like if you develop something in mysqli - it will be faster mysql pdo - works with a bunch of other databases.. I found … | |
Hello guys! Please help me with a little problem. I have one table(Person) where are some values. My current syntax is: SELECT Status, COUNT(Name) AS Number FROM Person WHERE Status = 'Married'; Result: Status_________Number --------------------- Married__________3 But I want to get the result for each status. That would be something … | |
shader.vert: #version 120 varying vec3 position; varying vec3 normal; void main() { position = (vec3(gl_ModelViewMatrix*gl_Vertex)); //get the position of the vertex after translation, rotation, scaling normal = gl_NormalMatrix*gl_Normal; //get the normal direction, after translation, rotation, scaling gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; } shader.frag: #version 120 varying vec3 position; varying vec3 … | |
-->>Hello I hope all is well. -->>I'm trying to join or select some data from 5 tables by using the following join statement: SQL ="SELECT RegistrationTB.Christian_Name,RegistrationTB.Father_Name,RegistrationTB.Birth_Date," "BaptismTB.Date_Baptised,BaptismTB.Parish_Name,BaptismTB.Minister_Name," & _ "CommunionTB.Date_Communised,CommunionTB.Parish_Name," & _ "ConfirmationTB.LC_No,ConfirmationTB.Date_Confirmation,ConfirmationTB.Parish_Name,ConfirmationTB.Minister_Name," & _ "MarriageTB.LM_No,MarriageTB.Date_Married,MarriageTB.Parish_Name,MarriageTB.Mr_Name,MarriageTB.Mrs_Name,MarriageTB.Certificate_No,MarriageTB.Minister_Name " & _ "FROM RegistrationTB " & _ "INNER JOIN BaptismTB ON RegistrationTB.LB_No=BaptismTB.LB_No " … | |
i want to grab "DataValueField" of dropdownBox and want to use it in INSERT statement , so how ? i have already filled my Dropdownbox in grid view now want to get DataValueField and using it in insert statement , how ? | |
Hi.. i used Jquery in order to add date time picker calender in my site succesfully.. i just want to decrease size of calender because its showing big calender according to my form.. here is code and snapshop url http://tinypic.com/r/2ajzymx/6 <!--Calender Start--> <link rel="stylesheet" href="htp://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" /> t<script src="http://code.jquery.com/jquery-1.8.2.js"></script> <script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script> … | |
so i have two files index.php and footer.php. and i want to add a jquery script to my index.php. so i did this and it works fine: index.php <html> <body> <script type = "text/javascript" src = "JQUERY/jquery.js"></script> <?php include("include/footer.php"); ?> footer.php <script type = "text/javascript" src = "JQUERY/jquery.js"></script> </body> </html> … | |
here is what iam trying to do. there is a textfield. which has a watermark in it(js code). so it will say "Enter Username". so user will enter username in it but if somethig go wrong than it should save the value in textfield(php code). <input type="text" name="username" id="login_username" class="field" … |
The End.