64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for bigredaltoid

Hi guys and sorry if this is the wrong forum. I am messing around with visual studio and trying to make a picturebox move around on a form when a user clicks a directional button on the form. I am able to move the picturebox any direction I want by …

Member Avatar for bigredaltoid
0
252
Member Avatar for terence193

I am trying to make a function that rounds number.. I declared the function above the main and voided it Then I recalled the function in the program and listed the variables needed in brackets and then I wrote the function I can't work out what is wrong. [ICODE]#include<stdio.h> #include<math.h> …

Member Avatar for panpwintphyu.loo
0
240
Member Avatar for SimonIoa

Does anyone sees any error in this? I tried everything, google it and still getting the same results, even when i replace the $uid with the number of the id still the same. I have two columns friend_one and friend_two and i want to show results where neither column has …

Member Avatar for SimonIoa
0
317
Member Avatar for iConqueror

Here is a piece of C++ code that seems very peculiar. For some strange reason, sorting the data miraculously makes the code almost six times faster: #include <algorithm> #include <ctime> #include <iostream> int main() { // Generate data const unsigned arraySize = 32768; int data[arraySize]; for (unsigned c = 0; …

Member Avatar for ~s.o.s~
1
371
Member Avatar for showman13

I need to create a table to track page visits to landing pages on a website based on the page name / the member ID / the Year / the Month and maintain the count of visits based on each unique combination Basically, I think I can create a table …

Member Avatar for cereal
0
330
Member Avatar for ravi142

Hello Everyone. I have make Form with use of set_value('Name'); in codeigniter but In Input type Textarea not given value. **Code:** <?php $last_goals = ''; if($this->session->userdata('user_from') == 'log') //After login value come From db { $last_goals = $getdesired[0]->ds_goals; } else { $last_goals = set_value('career_goals'); // without login this value come …

Member Avatar for ravi142
0
3K
Member Avatar for Vikram_2

Hello all, I have a Hindi Text file, from which i want to access the maximum repeated words and other similar operations. I went through many articles which help in accessing English text files. But i need to use the same operations on the Hindi text file, i am not …

Member Avatar for Gribouillis
0
2K
Member Avatar for Tess James

I need to copy only some selected rows from a table and insert these rows into another table (having the same structure) in another database. Is it possible?

Member Avatar for guruparthi
0
6K
Member Avatar for hriti

hello everyone i have a problem when i upload a song it will not save to a folder if i upload image then its working well but for song upload its working not well my code is: <?php include("include/commonfunction.php"); checkLogin(); $mode=$_REQUEST['mode']; $tableName="songs "; $idFieldName ="id"; $pid=$_GET['pid']; $song_url=$_REQUEST["song_url"]; $thumbnail=$_REQUEST["thumbnail"]; include("include/tophead.php"); include("fckeditor/fckeditor.php"); …

Member Avatar for almostbob
0
226
Member Avatar for Sammys.Man

hi guys, i wonder if someone could help, i am teaching myself with tutorials and online books etc PHP, ive played around in it before, but due to time i couldn't get into it. now im going headlong into it. anyway moving on, the problem i have is, i have …

Member Avatar for Sammys.Man
0
210
Member Avatar for developer707

Hello to everyone, I am trying to get a some values from the database. My issue is that I want some results stored into a variable to be exactly 25 caracteres long. When the result($title) is > 25 caracters long there is no problem with this substr($title, 0, 24), but …

Member Avatar for developer707
0
1K
Member Avatar for Jake2025

Greetings guys, I am barely new to php and i have incoming presentation from a company and they asked me to build some basic website using sublime text 2. here's my problem i don't have any clue on how to display result from php to a web browser. In notepad++ …

Member Avatar for Jake2025
0
286
Member Avatar for Priti_P

due to something fishy , one of filenames has entered as Abhishek�_xyz.docx and it is not opening now. It says no file found. When I try to do rename it using 'mv'command, then it do not allow me by stating cp: cannot stat `Abhishek �_xyz.docx': No such file or directory …

Member Avatar for cereal
0
85
Member Avatar for lloydsbackyard

I have a date in a textbox .. $myDate ='06/30/2014' how do i convert it into this format..since this is the date format in the database.. $myDate ='2014-06-30' thanks..

Member Avatar for lloydsbackyard
0
126
Member Avatar for hafizfarooq

Hi, I am unable to check the checkboxes with database values. My table stores the data in below format. I want that when i load the form "useraccess.php" it check the access allowed ealier to the logged user and check the check boxes accordingly. uid = 1 allowaccess = New …

Member Avatar for hafizfarooq
0
205
Member Avatar for bolfescu

Hy i have this sql query.. how can i combine with the next one ?... this $sql = "select id,date,category,sum(q1) Total,sum(q2) Total2,sum(q3) Total3,sum(q4) Total4,sum(q5) Total5,sum(q6) Total6 from articles group by category order by id"; with $sql = "SELECT * FROM articles WHERE from_date >= '".mysql_real_escape_string($_REQUEST["from"])."' AND to_date <= '".mysql_real_escape_string($_REQUEST["to"])."'".$search_string.$search_city; as …

Member Avatar for urtrivedi
0
155
Member Avatar for dwlamb

I have the following snippet of function and call to another function for returning tabs to format code. public function makelinks ($urls_data) { ...code... $i = 5; $tabs = $this->echo_tabs($i); $output = "$tabs<ul class=\"url_list\">\n"; ...code... } public function echo_tabs($i){ $x = 0; $o = ''; for ($x;$x<$i;$x++) { $o .= …

Member Avatar for dwlamb
0
211
Member Avatar for jaspertan
Member Avatar for jaspertan
0
587
Member Avatar for kshahnazari

this might be a simple question so accept my appolegises , I am creating a 2 dimetional pointers to int and I want to release the memory at the end but I think I'm doing It all wrong and all of the memory isn't being relaesed. int **a; a = …

Member Avatar for rubberman
0
170
Member Avatar for kxjakkk

I need to make an object called Accounts that can be used as a banking system. It requires 3 inputs, first name, last name, and initial deposit and 4 member functions: withdraw, deposit, fee and interest. The fee is $20 a month if the amount in the account is less …

Member Avatar for Hiroshe
0
616
Member Avatar for david.roun.7

Ok, so this is cool. On my site, I learned how to create a simplified "wall" like facebook has... sort of. It's great for me to have done that because I am self taught with all of this. There is a problem, however. My <option> is not displaying the names …

Member Avatar for david.roun.7
0
126
Member Avatar for DeanMSands3

I'm trying to remember the name of a site - *pretty sure it was a wiki* - where you post different ways of writing the same program in different languages. I. E. writing "Hello World" or heap sorts in C, C++, Java, Haskell, etc. My google-fu is failing me, so …

Member Avatar for Hiroshe
0
273
Member Avatar for nufftalon

The uploaded file exceeds the upload_max_filesize directive in php.ini. I get that error. I have a hosting account with cpanel access, how can I avoid this problem from happening?

Member Avatar for nufftalon
0
117
Member Avatar for m1m6jbr

hello i have an attribute in 'users' table called RegNo which refer ro region number ... so i have to select users and display them according to their region number . here is my code <body> <ul id="nav"> <li class="heb"> <a href="parentUrl" >hebron</a> <li class="bet"> <a href="parentUrl" >ramallah</a> <?php include …

Member Avatar for m1m6jbr
0
285
Member Avatar for msnathan72

Ok so I have an Algorithim Verification assignment I need helpfiguring out this is my first time to daniweb and I have heard nothing but great feedback from my peers! I have to have in by Friday 12/5 Answer the following questions about the information in Appendix J: o What …

Member Avatar for rubberman
1
124
Member Avatar for iConqueror

I have been doing some exercises out of the Head First C# book and have just done this exercise where you write a complete sentence using a while loop. The book dosent explain how the while loop puts together the string. I am looking if someone could please explain the …

Member Avatar for iConqueror
0
293
Member Avatar for Rabastan

I need my program To detect the resolution of multiple monitors on a system. I have figured out to get the resolution of one monitor. Public Function ScreenResolution() As String Dim resX As Integer = Screen.PrimaryScreen.Bounds.Width Dim rexY As Integer = Screen.PrimaryScreen.Bounds.Height Return resX & " X " & resY …

Member Avatar for Rabastan
0
153
Member Avatar for bvowens

Hi I've been working on a joomla site on my local windoes vista computer using WAMPSERVER vrs2 and with apache. Something went wrong with apache and windows warned me and turned it off. Since then I can't use [url]http://localhost[/url] (or the shortcut on the wampserver menu 'localhost' to connect. However …

Member Avatar for samy.youssef.12
0
879
Member Avatar for Violet_82

HI guys, I wonder if you can help me understanding this please. Take the following code: // Fig. 14.23: ListFrame.java // JList that displays a list of colors. import java.awt.FlowLayout; import java.awt.Color; import javax.swing.JFrame; import javax.swing.JList; import javax.swing.JScrollPane; import javax.swing.event.ListSelectionListener; import javax.swing.event.ListSelectionEvent; import javax.swing.ListSelectionModel; public class ListFrame extends JFrame { …

Member Avatar for Violet_82
0
198
Member Avatar for JiThU89

Currently i'm doing a project in C# where i've to support multiple languages. What i decided to do is this: Create language xml files and put them in a folder ("langs"). Language file structure: [CODE] <Lang name="en" /> <!-- All forms --> <form id="mainform"> <item id="mnuFile" text="File" /> <item id="mnuFileNew" …

Member Avatar for doxa.paradoxa
0
569
Member Avatar for showman13

Good Evening, I'm trying to modify a function that I wrote a few months ago to work on a 2 dimensional array instead of the single dimension I have been using. My question is, before I start rewriting it only to find out that I can't do it... Can you …

Member Avatar for cereal
0
281
Member Avatar for behemothdave

My assignment is as follows: Create a higher/lower guessing game using a graphical user interface. allow users to keep guessing until they guess the number. Choose two colors for the game: one should be used to indicate that the value the users guessed is higher than the target; the other …

Member Avatar for TalhaMoazSarwar
0
2K
Member Avatar for krnaveen14

I've been trying to compare a string which is stored in two diffrent variables(but the content is same). I get the two same inputs from user.. package switchcasepgm; import java.util.Scanner; public class stringcomp { public static void main(String[] args) { Scanner getinp=new Scanner(System.in); System.out.println(); String sdr = getinp.nextLine(); System.out.println(); String …

Member Avatar for krnaveen14
0
149
Member Avatar for xuexue

Hi! I already established an iDB2Connection, now what I want to know, is how could I execute SQL Queries for INSERT, DELETE and UPDATE. I had tested the code already and it works. The code for count works; I get the total number of records. My question is that for …

Member Avatar for xuexue
0
943
Member Avatar for xuexue

Hi! My database is in AS/400 DB2 hence, I am using SQL. Here's my line of code for opening a connection. Dim str As String = "User ID=EDITH;Password=EDITH;Data Source=10.0.1.11;Initial Catalog=ictms;Integrated Security=True" Dim conn As SqlConnection = New SqlConnection(str) conn.Open() Now, I wanted to execute a delete query, however, I already …

Member Avatar for xuexue
0
2K
Member Avatar for nathan.pavlovsky

Hello programmers! I am having a function that has the user enter a name for an object, check if its valid, and return it if it is. I am getting the input via getline, but it seems that you have to press enter twice to make the input work. Here's …

Member Avatar for nathan.pavlovsky
0
2K
Member Avatar for kiail

Hello, currently I am trying to send a byte array to a wireless device I have setup on my network. I'm having issues however and it's not working properly. I can send data to it while I have it interfaced usb, but over the network has been unsuccesful. This is …

Member Avatar for kiail
0
327
Member Avatar for adishardis

Hi, I would like to loop the data-attribute to contain all column names and values from a mysql table. This is what it looks like today: while ($row = $result->fetch()) { echo "<div id='{$row['namn']}' data-column1='{$row['column1']}' data-column2='{$row['column2']}'... So some kind of magic :) loop inside there so I don't have to …

Member Avatar for adishardis
0
259
Member Avatar for guideseeq

What is the difference in: Set<Object> linksSet = new LinkedHashSet<Object>(); LinkedHashSet<Object> linksSet = new LinkedHashSet<Object>(); Actually, I want to create a Set, that would hold the objects in the same order, I insert into it. Many thanks for the help, in advance.

Member Avatar for guideseeq
1
243
Member Avatar for Rake$h

hi friend here soved code for textbox data display in Gridview <form id="form1" runat="server"> <asp:TextBox ID="txtAdd1" runat="server"></asp:TextBox> <asp:TextBox ID="txtAdd2" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="show in gridview" onclick="Button1_Click" /><br /> <asp:GridView ID="GridView1" runat="server"> <Columns> <asp:TemplateField HeaderText="Select"> <ItemTemplate> <asp:CheckBox ID="chkbox" runat="server"></asp:CheckBox> <br /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Remark"> <ItemTemplate> <asp:Label ID="lblremark" runat="server"></asp:Label> </ItemTemplate> …

0
115
Member Avatar for david.roun.7

So, when I run this code on xampp, it works and I can see the variables, without the header. <html> <head> </head> <body> <?php $user=""; $server=""; $db=""; $pass=""; $con=mysqli_connect($server,$user,$pass,$db); $id=$_POST['loginid']; $password=md5($_POST['password']); $result=mysqli_query($con,"SELECT * FROM passwords WHERE userid='$id' AND password='$password'"); session_start(); if($row=mysqli_fetch_array($result)){ require('../connect/registerdb.php'); $rresult=mysqli_query($rcon,"SELECT * FROM registration WHERE userid='$id'"); while($rrow=mysqli_fetch_array($rresult)){ $_SESSION['name']=$rrow['name']; …

Member Avatar for DJBirdi
0
324
Member Avatar for Namibnat

I am still trying to get a grasp on the php/mysql interaction. Why does something like this not work and without all the error catching, can one do something like this? [CODE] $result = mysql_query("SELECT * FROM stadium WHERE gametime = `$_z`;"); $row = mysql_fetch_row($result); $bababa[name] = $row[0]; $bababa[town] = …

Member Avatar for guruparthi
0
728
Member Avatar for suman_4

I was learning about the static class and static method.Then i came across the following line: Only one copy of static member exists regardless of any no of instance of a class. what does it actually mean? It is in the msdn document http://msdn.microsoft.com/en-us/library/79b3xss3.aspx achfcssswwws follows: A non-static class can …

Member Avatar for hericles
0
154
Member Avatar for PM312

There is no **"Microsoft Outlook 14.0 Object Library"** in my **visual studio 2008 reference COM** List how can i update it. Thanks

Member Avatar for PM312
0
1K
Member Avatar for rjusman90

<td>Upload your pic</td> <td><input type="file" name="1234" value=""></td> <?php $img =$_POST['1234']; $sql="UPDATE users SET FirstName='$FirstName' , LastName='$LastName', UserName='$UserName' $sql_pass,Email='$Email' , Gender='$Gender',PicUrl='$img' WHERE UserId='$User_ID'"; ?> want to save in image folder also

Member Avatar for david.roun.7
0
171
Member Avatar for mbowenitj

Hi guys, I've created a login form which works fine, i need assistance in comparing uppercase and lowercase input from a login form. Whenever the password is entered, the system has to compare uppercase and lowercase characters stored in the data..following is my code: 'Logic for login... Dim conn As …

Member Avatar for mbowenitj
0
2K
Member Avatar for jaspertan

here is my code. it only retrieve last inputted data. How can i populate all data in a htnl table. <html> <?php $id =new Register(); $test=Register::selecthey(); foreach($test as $t=>$sid){ } ?> <table> <thead> <tr> <th>Document ID</th> <th>Personnel ID</th> <th>Docs Name</th> <th>Docs Num</th> <th>Docs Date</th> <th>FileName</th> <th>Data</th> </tr> </thead> <tbody> <tr> …

Member Avatar for jaspertan
0
132
Member Avatar for iuessele

I am a total newbie to programming. I was hoping to learn how to write a program that prints out a string representation of a random card from a deck of playing cards. The programs should use either “A”, “2”, “3”, “4”, “5”, “6”, “7”, “8”, “9”, “10”, “J”, “Q”, …

Member Avatar for alexander.selin.7
0
13K
Member Avatar for masonketcham

This is my first time working with C++ and I have put together this program and came up with two errors and I am unsure what it is wanting me to do. The errors I got are: 1>c:\users\owner\documents\visual studio 2010\projects\week5\week5\passing_by_value.cpp(30): error C2064: term does not evaluate to a function taking …

Member Avatar for Ancient Dragon
0
213
Member Avatar for rjusman90

<?php include"header.php"; if(empty($_SESSION['UserName'])){ header("Location: http://localhost:1234/city"); exit;} $result = mysql_query("SELECT * FROM menu"); echo "<td><a href='http://localhost:1234/city/menu_update_insert.php'> <img src='images/create.png'>Add New Record</a> </td>"; echo "<table border='0'> <tr class='tableheader'> <th>PageName</th> <th>MenuName</th> <th>ParentMenuId</th> <th>LinkWidth</th> <th>OtherUrl</th> <th>Status</th> <th>CreatedDate</th> <th>OnMainMenu</th> <th>FooterMenu</th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr class='tablerow'>"; $rpId=$row['PageID']; $result1=mysql_query("SELECT * FROM page WHERE ID=$rpId "); …

Member Avatar for rpv_sen
0
265

The End.