199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nikki_2

can you pls help me for this , " write a program that will accept 3 row and 1 column integer number compare the value of x,y,z.

Member Avatar for Schol-R-LEA
0
132
Member Avatar for PsychicTide

Hey guys, this seems to be a thorn in my side. I've been working on scraping a website which uses aspx and has eventvalidation/viewstate inputs. Every other scraping experiment I've made was not this difficult. Maybe one of you geniuses here at Daniweb has an idea of how to solve …

Member Avatar for PsychicTide
0
907
Member Avatar for jd3189

Hello everyone, I need to create a program that checks to see if a word or phrase is a palindrome. A palindrome if you are not familiar is a word or phrase that reads the same forwards and backwards like racecar, disregarding punctuation, case, and spaces (basically, any non-alphabetic characters. …

Member Avatar for DaveAmour
0
391
Member Avatar for Transcendent
Member Avatar for jay.barnes

What's wrong with this? $db = new mysqli("DBserver","username","password","database"); if ($db->connect_error) { die('Connect Error ('.$db->connect_errno.')'.$db->connect_error); class registerInvitedUser { protected $formdata = array(); protected $connection; protected $execute; protected $results; protected $response_code = ""; protected $response_msg = ""; public function __construct($db) { $this->connection = $db; } $this->execute = $this->connection->query("UPDATE `users` SET acctstatus= 'A' …

Member Avatar for jay.barnes
0
353
Member Avatar for lps

Actually, I am having problem with the wordpress lightbox plugin: Fancybox where it don't work. Therefore, I tried to change to jquery pirobox instead. But I having problem of add the custom rel and class to the link image. I refered [URL="http://wordpress.org/support/topic/add-relxyz-to-gallery-link"]http://wordpress.org/support/topic/add-relxyz-to-gallery-link[/URL] and tried without success moreover I want to …

Member Avatar for lps
0
305
Member Avatar for lps

I currently wish to write a query to duplicate data in database while modifying one column. First of all, my database structure: table code CURCD NOT NULL VARCHAR2(3) CODE NOT NULL VARCHAR2(2) ITEM NUMBER(1) DSCPT VARCHAR2(20) The unique idx is the curcd,code,item. What I wish to achieve is duplicate data …

Member Avatar for lps
0
305
Member Avatar for SoMa_2

I have this code to add row to my table function addRow(tableID){ var table=document.getElementById(tableID); var rowCount=table.rows.length; var row=table.insertRow(rowCount); var colCount=table.rows[0].cells.length; var cell1=row.insertCell(0); cell1.innerHTML= rowCount+1; for(var i=0;i<colCount;i++){ var newcell=row.insertCell(i+1); newcell.innerHTML=table.rows[0].cells[i+1].innerHTML; }} and this for AJAX function function CLO() { var a=document.getElementById("keyword").value; var b=document.getElementById("chapter").value; if (a == ""&& b == "") { …

Member Avatar for lps
0
375
Member Avatar for evandrosiqueira

I work for a small company made up of a salesman, a graphic artist, and an engineer. The engineer writes and maintains all of his own software to run a network of interactive kiosks around the globe. As artist, I use his tools to maintain and update the network content. …

Member Avatar for diafol
0
1K
Member Avatar for jay.barnes

Hi all I'm trying to set my mysqli connection to my database as outlined in http://php.net/manual/en/mysqli.quickstart.connections.php , with one difference - I'm trying to put my connection parameters in an include file outside of my root folder, to try to secure my DB password. $mysqli = new mysqli("DBServer", "DBUsername", "DBPassword", …

Member Avatar for jay.barnes
0
267
Member Avatar for 家宁

Hi everyone, I am currently making a game in python. The objective of the game is to guess out the number within 6 guesses. I want to make a window that also involves graphics inside. I want to let the program have a box where you can enter in the …

Member Avatar for woooee
0
289
Member Avatar for kxjakkk

I'm trying to make a program that removes all occurences of a specified string from a text file. I'm having trouble with tying in everything to make it work, so that the user is prompted to enter a string. This is what I've got: import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; …

Member Avatar for JamesCherrill
0
458
Member Avatar for Abdul_32

#include <iostream> using namespace std; float read_input() { float x[5],a, b ,c, d ,e ; cout<<"enter 5 numbers:"<<endl; for (int i=0; i<5; i++) { cin>>x[i]; } a=x[0]; b=x[1]; c=x[2]; d=x[3]; e=x[4]; cout<<"a="<<a<<endl; cout<<"b="<<b<<endl; cout<<"c="<<c<<endl; cout<<"d="<<d<<endl; cout<<"e="<<e<<endl; } float calculate_average() { int total=0 ,avg; { total += float read_input( a,b , …

Member Avatar for deceptikon
0
2K
Member Avatar for wilsonchama

Hi everyone, I have been strugling wit the "INSERT INTO" statement. I intend to insert the items that are in a datagridview into An Access Database when a button is clicked. I am using VB.NET 2008 express and Microsoft acces 2007. At first, I tried to use the listview, but …

Member Avatar for wilsonchama
0
318
Member Avatar for vjkmr

a + b - c * d If the types of a, b, c, and d are int, long int, float, and double respectively, then the type of the expression is:

Member Avatar for deceptikon
0
94
Member Avatar for PulsarScript

Please,help to set the relational notations in database table.Would much appreceate the help. ![database.png](/attachments/large/4/7de31bb1f14ab6db9af54e4c91d912a7.png "align-center")

Member Avatar for diafol
0
136
Member Avatar for Niloofar24

Hello friends! I want the script when user clicks the Delete botton to delete that post, a confirm message appears and ask if the user is sure to delete that post or not, if the user clicks the cancel button, nothing happen but if clicks the ok button, then the …

Member Avatar for Niloofar24
0
4K
Member Avatar for scheppy

Ive made a java program to do automated tasks for a game. It takes screen shots with java.robot every 250 milliseconds. The program is working great, but it will always crash at around the 30min mark Im running this program on my mac, and this is the crash report that …

Member Avatar for scheppy
0
983
Member Avatar for vishnus

Hello everyone, this is my first post in the community. Im doing my 3rd year in Software Engineering. We have a semester project coming up. We are 3 people in one team. I am looking for a good project idea which can be implemented by us in a time frame …

Member Avatar for Future Engr.
0
3K
Member Avatar for Niloofar24

hi:) I want the script to check the db table to see if there is the same username as what the user has submit with the register form, then stop the script from registering, but if the user has submited a new username, then registering. I think the script should …

Member Avatar for Niloofar24
0
400
Member Avatar for it@61@sec

I have generated an image for my VU+ Solo2 after following the instructions on the following URL: http://blog.videgro.net/2013/05/how-to-compile-software-for-vu-plus/. This works OK if I use standard C-code (as in the example in the URL), but when I try to compile C++-code I get errors which seems to originate from using the …

Member Avatar for it@61@sec
0
2K
Member Avatar for Niloofar24

Hello! I have a little problem with a For Loop, this is a For Loop in my script: $last_id = $conn->lastInsertId(); for($a = $last_id ; $a > 0 ; $a--){ code.... } But it doesn't work because of `($a = $last_id ;`, the variable $a can't be set to the …

Member Avatar for Niloofar24
0
878
Member Avatar for collin_ola

Hey! Firstly, here's the code: for (Row row : sheetToSearch) { for (Cell cell : row) { if(cell.toString().equals("Oladimeji")){ System.out.println("Found Oladimeji!!"); break; } else { System.out.println("Oladimeji not found...."); } } } What this does is search through the an excel spreadsheet, looking for a name (which happens to be my surname!). …

Member Avatar for rubberman
0
142
Member Avatar for bamun

hi, I m using vb.net 2008 & mysql. i need to save array in 2 different datafield in the same database table. For eg: let consider dim n(10) as array & D1 as 1st data field, D2 as 2nd datafield now i need to save n(1) on D1 and n(2) …

Member Avatar for Reverend Jim
0
274
Member Avatar for collin_ola

Hey, I am trying to make use of the apache POI in my Java project in Eclipse. I previously tried using jxl but what I wanted to do didn't seem so simple with it. With jxl, all I had to do was import a jar. I don't seem to be …

Member Avatar for collin_ola
0
315
Member Avatar for Sequeira

Hi , i need a sample code for Export data from MS-SQL to Notepad.txt using vb.net in Pipe line format this is my sample table data ID Name Address 1 Meenu Meenuhouse 2 Ammu MeenuHouse 3 Chinnu Meenuhouse i need output like 1|Meenu|Meenuhouse 2|Ammu|Meenuhouse 3|Chinnu|Meenuhouse Can any one help me …

Member Avatar for Sequeira
0
4K
Member Avatar for ramsiva

I am loading images from folder but problem is first loading div after storing images. Because of this problem i have to increase loading time div. <script type="text/javascript"> $(function() { $("#snap").click(function() { $("#myweb").load("webcamsnap.php") }) }) </script>

Member Avatar for ramsiva
0
171
Member Avatar for markdean1989

Hi guys! Just needing a little of your help here. I have been looking for a free IDE where I can program in C++ for the past months now after messing up my MSVS 2013 for Desktop. I found Netbeans to be a nice alternative. But I am having some …

Member Avatar for markdean1989
0
203
Member Avatar for seanj1992

hi everyone, i am doing a pizza ordering Gui. i am stuck on 2 things, i am trying to get the receipt string to store the items that are checked. they are multiplying when they are displaying. the second is displaying the string in the jtext area, any help woud …

Member Avatar for Traevel
0
187
Member Avatar for Derorim

Hello I'm new to this and I'd love some help here ,could anyone show me how to check if input is string so it doesn't crash if I enter a let's say a number instead. and other improvements are welcome as well. A big piece of the code is below, …

Member Avatar for Derorim
0
193
Member Avatar for toxicandy

I have a form which pushes data to this page: <?php session_start(); if(!isset($_SESSION['sess_user_id']) || (trim($_SESSION['sess_user_id']) == '')) { header("location: login.php"); exit(); } if($_SESSION['sess_status'] < 0){ header("location: sorry.php"); exit(); } $tz = new DateTimeZone('America/Chicago'); $age = new DateTime(filter_input(INPUT_POST, 'dob', FILTER_SANITIZE_STRING)); $checked = filter_input(INPUT_POST, 'minor', FILTER_SANITIZE_STRING); $now = new DateTime('NOW'); $y = …

0
88
Member Avatar for sahar.97

I want to rotate k top element of array for example: k = 2 array before rotate --> 3 , 4 , 2 array after rotate ---> 3 , 2 , 4 int[] temp = new int[k]; for (int i = 0; i < k; i++) { if(this.stack[i]!= null){ temp[i] …

Member Avatar for stultuske
0
233
Member Avatar for anandhachandru

This my code someone say were i missed it OAuthRsaSha1Signer rsaSigner = new OAuthRsaSha1Signer(); com.google.gdata.client.authn.oauth.OAuthParameters params = new com.google.gdata.client.authn.oauth.OAuthParameters(); params.setOAuthConsumerKey(oauthconsumerkey); params.setOAuthNonce(Util.getNonce()); params.setOAuthTimestamp(Util.getTimestamp()); params.setOAuthSignatureMethod("RSA-SHA1"); params.setOAuthType(com.google.gdata.client.authn.oauth.OAuthParameters.OAuthType.TWO_LEGGED_OAUTH); params.addCustomBaseParameter("oauth_version", "1.0"); rsaSigner.setPrivateKey(privKey); String method = "GET"; if (body != null && body.length() > 0) { method = "POST"; MessageDigest digest = MessageDigest.getInstance("SHA-1"); digest.reset(); byte[] hash …

Member Avatar for Ewald Horn
0
341
Member Avatar for JasonWung

I have page where I display thumbnails of different image albums/categories and I try to make it when user click on the thumb to open modal with all images loaded from this category. The problem is that is seems I can't understand it very well how exactly will happen this. …

Member Avatar for diafol
0
4K
Member Avatar for adnan_6

Dear programmers, I want to implement English language feature in the following application http://www.codeproject.com/Articles/714651/Desktop-Sharing-using-RDP-APIs-and-Socket . I followed this http://stackoverflow.com/questions/12929934/same-resource-identifier-in-different-language-sections-in-an-rc-file-why-is-it post and https://msdn.microsoft.com/en-us/goglobal/bb688160.aspx Now my peer.rc file code is // // Peer.RC2 - Microsoft Visual C++ 不会直接编辑的资源 // #ifdef string ID IDS_ENUMSTRTEST #error Microsoft Visual C++ #endif //APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // 在此处添加手动编辑的资源... …

Member Avatar for adnan_6
0
317
Member Avatar for hiteshkumar_P

Public Class Form1 Private Function getCrc16(b() As Byte, nLen As Integer) As UInt16 {&H0, &H1189, &H2312, &H329B, &H4624, &H57AD, &H6536, &H74BF, _ &H8C48, &H9DC1, &HAF5A, &HBED3, &HCA6C, &HDBE5, &HE97E, &HF8F7, _ &H1081, &H108, &H3393, &H221A, &H56A5, &H472C, &H75B7, &H643E, _ &H9CC9, &H8D40, &HBFDB, &HAE52, &HDAED, &HCB64, &HF9FF, &HE876, _ &H2102, …

Member Avatar for hiteshkumar_P
0
501
Member Avatar for Vivek_13

<?php $query = mysql_query("select * from `tbl_student`"); while($data = mysql_fetch_array($query)) { $output[] = array ($data[0],$data[1],$data[2],$data[3], '<select class="form-control select1" id="'.$data[0].'"> <option 'if(----){'selected'}'>asd</option> <option >dasd</option> <option>asd</option> </select>'); } echo json_encode($output); ?> <!--here code of if() throw error-->

Member Avatar for Vivek_13
0
463
Member Avatar for mark_jason

I have a problem with Eclipse when i try to start emulator it says: Starting emulator for AVD 'Nexus_5_API_21_x86' emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable. CPU acceleration status: HAX kernel module is not installed! I tried to instal HAXM …

Member Avatar for peter_budo
0
298
Member Avatar for satheeshakira

I am used codegniter 1.7.1 older version for my real estate stie and it is working fine in local host xamp server. But when i uploaded in to server, the site not working , showing error as "Fatal error: Cannot redeclare class Locale in /application/libraries/Locale.php on line 12" pls help …

Member Avatar for Walid_1
0
1K
Member Avatar for bolfescu

Hy i'm having a problem with my php excell, i'm having two rows in mydb, but he export only one row from db, if i will insert the thrd row in db it will show me always two.... this is the code require_once 'Classes/PHPExcel.php'; $objPHPExcel = new PHPExcel(); // Set …

Member Avatar for bolfescu
0
161
Member Avatar for ramsiva

In my project i have a problem is: Without clicking browse button we have to get name using <input type="file"> any body help me to clear this one <img src="<?php echo $image; ?>" style="width:190px; height:150px;" /> <input type="file" name="userfile" id="userfile" value="<?php echo "Penguins.jpg"; ?>"> i am not getting the userfile

Member Avatar for cereal
0
197
Member Avatar for JerrimePatient

What is the `advantage` and `disadvantage` of the two loops? I don't know their `deferrences` to `each other`. the truth is I don't know where will I use the `for loop` or the `foreach loop`.

Member Avatar for deceptikon
0
374
Member Avatar for fireburner29

Hi, How to make visible directory using htaccess? am using this in my htaccess. am getting below error. Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think …

Member Avatar for diafol
0
355
Member Avatar for AleMonteiro

Good night dani people. I'm current developing a project that needs an web API to list all directories and files, and also provide a method to search by name. I already got it working with Sytem.IO.DirectoryInfo at real time. //Folders foreach (DirectoryInfo info in _dirInfo.GetDirectories()) { } //and files IEnumerable<FileInfo> …

Member Avatar for AleMonteiro
0
229
Member Avatar for d_randhawa

case "remove": if(!empty($_SESSION["cart_item"])) { foreach($_SESSION["cart_item"] as $k => $v) { if($_GET["id"] == $k) { unset($_SESSION["cart_item"][$k]); } if(empty($_SESSION["cart_item"])) { unset($_SESSION["cart_item"]); } } header("location:cart.php"); } break; i m tring to delet item from session array for a shoping cart my function work ehrn i add singel value in cart but when i …

Member Avatar for d_randhawa
0
2K
Member Avatar for riwakawd

On my controller I have a variable called 'name' => $child['name'], for my drop down menu. The problem I am having is that in the child dropdown menu it still shows parent name. I am trying to make it so if parent_id name is equal 0 then will not show …

Member Avatar for riwakawd
0
184
Member Avatar for OldDeveloper01

This is the scenario. I have a defaultimage in an 'images' folder. When someone registers it creates a directory like so: mkdir("../users/$new_userid/images",0755); Each time someone registers i want also the defualtimage to be copied to the new users directory, so they then have an image to start off with. Thanks …

Member Avatar for ramsiva
0
3K
Member Avatar for zakn
Member Avatar for Shushan_1

Hello Friends. I am working in a Java assignment and I am seriously in need of a help. Since I am new to programming, I need an assist. The program which I have to do has the following specifications: Scanners should be used compalsarily The green grocer has asked you …

Member Avatar for JerrimePatient
0
3K
Member Avatar for samuelz

Hello everyone, i have the code below, it works fine but whenever i insert a student number that does not exist in the table, the rest of the textboxes will keep displaying data from the previous existing entry. This happens even when the i delete everything in the student number …

Member Avatar for samuelz
0
2K

The End.