199,114 Archived Topics
Remove Filter ![]() | |
hi I wrote php code do.php [CODE]<?php session_start(); ob_start(); $salladim = $_SESSION['salla']; $salladin = isset($_GET['url'])?$_GET['url']:'' ; if(!in_array($salladin,$salladim)) { header( 'refresh: 1; url='.$_SERVER['HTTP_REFERER'].'' ); echo '<h2>Hazirlaniyor...</h2>'; exit(); } [/CODE] file.php [CODE]<?php session_start(); function kodsalla($uzunluk) { $karakterler = "0123456789"."ABCDEFGHIJKLMNOPQRSTUVWXYZ"; $kod = ""; while(strlen($kod) < $uzunluk) { $kod .= substr($karakterler, (rand() % strlen($karakterler)), … | |
Hi In my new project i have to give an option to convert an english text to chinese.Can any one help me to do this. Thank you | |
Hello guys Am currently implementing a web form in html, and at first I was thinking to submit it to paypal for processing payments, however now my client wants to be able to use credit card and bank transfer (direct debit I suppose), How can I do this, or does … | |
My table gets its information from a Mysql database online. I'm not sure which would be quicker to retrieve the row that contains the information specified. EG. table1 Name________Age John_________5 Joe__________20 At this moment i have a while loop that looks for john and gives me the row. But is … | |
[CODE] int x; while(cin>>x) { cout<<"Yes"<<endl; } int y; while(cin>>y) { cout<<"Yes again"<<endl; } [/CODE] What I expected to happen is,that as long as I entered a number for x(in line 2)that block should be run and "Yes" must be printed. To get out of the 1st while loop I … | |
Hey, i have in my last Thread resolve the Problem of the read of logfile(Csv,ASCII),and represent it in Datagrid.([url]http://www.daniweb.com/software-development/csharp/threads/367737/1582018#post1582018),now[/url] i want to take those value from my Datagrid,and make a Graphic with help of Zedgraph .Did somebody already work with Datagrid and Zedgraph ???? Thx in advance | |
Hi everyone! I have a problem updating my table named 'friend'. This is where I save my friend requests and updates it when a user accepts the request. My problem is when I accept a request, only one query updates. Separately, they work. But when I try to use the … | |
Hi guys, I am creating a window application in vb.net that need to use sql server database. I want to install this application to client machine without installing sql server so that my application can still connect to a database is there any way for this ? | |
can anyone help me? i have a problem in converting a 1,000,000.00 number to words i always get result 1 MILLION THOUSAND PESOS ONLY which is wrong. it should be 1 MILLION PESOS ONLY here is my code [CODE]Public Function ConvertMoneyToText(ByVal value As String) As String value = value.Replace(",", "").Replace("$", … | |
Hi I would like to get simple code on reading and writing into excel files using console application in vb.net. | |
Hello, i am trying to create a php script that offers the following functions... wardrobe.php?friend=FRIENDNAME wardrobe.php?hash=HASHTAG but i dont want you to be able to use both at the same time, please could you help improve my code to become more stable, add error checking and also offer this feature … | |
Hi i am new to PHP, Can anyone fix this problem to me. i am writing a code to change password where i have already encoded a password and stored in database. and in a new changepassword form i have to do two things one is to get the oldpassword … | |
Hello everyone, I have c++ function whose the only argument is an array. Also I have a matrix. How can I pass say third column of this matrix as a array into the function without creating a mediated array in the loop. Is there c++ analogue of M(:,3) existing in … | |
I need to create 14 javascript Ajax objects and assign properties and events to them. Since most of the code is just being repeated, I'd like to do the whole thing in a loop using an array for the object names. This is a portion of the code as it … | |
Hey there, i have created a dll that creates timesignatures, the source code is as follows... [CODE]#include "timestamp.h" BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) { return TRUE; } DLL_EXPORT char* CreateTimestamp(void) { time_t now; struct tm *ts; static char buf[80]; now = time(0); ts = localtime(&now); strftime(buf, … | |
I have this code which do some matrix operation. It can be run on Microsoft Visual c++ 6.0 but i got problem when run it using Dev C++ 4.9.9.2.. it says, [COLOR="Red"]main must return and int[/COLOR] Can somebody help me? [CODE]// FDduct.cpp , finite difference. method. for duct #include <stdlib.h> … | |
I've been playing around with c++ a bit, and made a "encrypt"-"decrypt" thing. Just basically taking the int value of the letters and adding x to them - becomming a new character/letter. This is the code where it asks the user for an input: [CODE] void decryptonise() { string text2; … | |
Hi, Does anyone give me some suggestion? When I close the form, but some process is still running.I don't know how to handle this kind of situation. What I want to do is that stop all processes first and then close form automatically. [CODE]Private Sub Command1_Click() 'Do process 1 Call … | |
Hi Im a first time poster.(please be gentle XD) I'm hoping someone can help me. I just would like to ask if - aside from datagridviews and manually drawing tables- there is another way to draw data onto a page, in tabular form? The problem is that the data I … | |
I am trying to create a download link that will support all browsers here is the code [CODE]<a href="\\servername\blah\folder\myzip.zip > downlod zip </a>[/CODE] It works in IE but chrom doesn't react to it and firefox adds the current url to the begining of the path can anyone help thank you … | |
Hello! I'm having problem with getting the checkbox state of a selected row inside table. I don't know if there is any specific function to determinate which row is selected so I've thought of the following... when the row is selected, style(background color) is applied to the tr element, so … | |
[CODE] $doc=new DOMDocument(); $doc->loadHTML($str); $doc->getElementById("MainTable")->getAttribute("id");[/CODE] Displays the error Fatal error: Call to a member function getAttribute() on a non-object Oh and $str is the HTML of a page :p D: Am I doing something wrong? :o | |
Hello, this is my first post on DaniWeb so I hope you'll go easy on me ,and my english.I'm working on a implementation of the AES algorithm in python;my app is supposed to encrypt the contents of files, and it does, yet it is kind of slow.I've optimized the code … | |
Hi Guys, Need a bit of advice, I developing a GUI of a system which was designed as a console application. With few options in visual studio like windows forms (VB.NET), MFC and wxwidgets am not sure as to what would be appropriate to use and plus I have very … | |
I am a newbie and hope that someone can help. I have a <cfform that adds and updates records. I have 3 <cfselect statements that are dynamic. I user the selected attribute to display the current value if this is an update. The first one works fine. The 2nd and … | |
I keep getting this error: error: unable to find vcvarsall.bat What is vcvarsall.batand why do I need it? I'm new to programming. Please explain as simply as possible!! Thanks! | |
| |
Greetings, I've got a working flex/bison parser that I would like to run from an exe file. However, I can't find the knowledge to achieve that. Do I need to create a C file, with an exec function to call the files? If so, what files do I call in … | |
I need to retrieve a HTML file from an external site ([url]http://example.com/page.html[/url]) and parse it. Parsing it is fine, however I can't seem to find a way to retrieve the file given this: [LIST] [*]Cannot use cURL [*]Must work on PHP 4.3.9+ [*]Must retrieve the file as a HTTP request … | |
Can anyone help me with external direct merge sorting? Here is my code [code=cpp] #include<iostream> #include<conio.h> #include<stdio.h> using namespace std; int GetKey(char infoLine[30]) //Getting sorting key { char temps[30]; strcpy(temps,infoLine); return atoi(strtok(temps," ")); //returns first number in a line } void DirectMerge(char fileName[20]) { FILE* FTS; //file wich will be … | |
0 down vote favorite I am a programmer for winforms and asp.net. A new-comer to WPF application development. I wish to thank in advance for any help rendered to my query, I am working on a application for Banking. My job profile is to develop reusable usercontrols for the application. … | |
![]() | Hi everyone. I am having trouble with a jQuery comment system. Here is the code. [code] <?php $page = 'View Support Ticket'; include 'header.php'; $view_hash = clean($_GET['view_hash']); $ticket_query = sprintf("SELECT * FROM support WHERE view_hash='%s'", $view_hash); $ticket_query = mysql_query($ticket_query); $ticket = mysql_fetch_assoc($ticket_query); $ticket_num = mysql_num_rows($ticket_query); ?> <!-- start #page --> … |
Hi im looking to create a structured string in c++ the structure would be simular to a guid or uuid but programatically without using the guid apis, could you help me acheive this Thanks, Nathaniel Blackburn | |
Hi, I am using sha1 for a registration form like this: [CODE] if($_POST['pass1']==$_POST['pass2']){ $password = sha1(mysqli_real_escape_string($connection, $_POST['pass1'])); } // This inserts an encrypted row in the DB, and works fine [/CODE] When i want to log in, well I cant login..This is the script: [CODE] $email = mysqli_real_escape_string($connection, $_POST['email']); $password … | |
My program is having an error on the following lines w/ red font. It says invalid types 'int[int]' for array subscript... pls help I'm not sure how to solve this. [COLOR="Green"]*********This is actually how my program works********* Read in a line of text and output the number of words in … | |
For those of you who have noticed the missing JLS, here's a [URL="http://jls3.ru/j3TOC.html"]mirror [/URL]that I found (through Stack Overflow). I'd like very much to know where it's gone, if anyone has any good information... | |
Im trying to implement a btree. I don't have any error in compiling, but when I run my code I have some weird runtime error. It says something like: MALLOC c:3096: sYsmalloc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size … | |
Hi, I've created an application using VB.net windows application, but now i want to invoke it only from command prompt by giving inputs and outputs. How can i give inputs and get outputs to windows application in command-prompt. My windows application takes file as input and it process and makes … | |
I'm very new to programming and was wondering why I am receiving a warning. "Function Checkbox doesnt return a value on all code paths. A null reference exception could occur at runtime when the result is used" I then want to execute this function through button.click event: CheckBox.ExecuteNonQuery() [CODE]Function CheckBox() … | |
Hi, I have a php array as the following format array([4]=>6 [8]=>12 [3]=>5) and I would like to add 6+12+5 The problem I have is that neither number of array cells nor array_keys are known. Thanks a lot | |
Hey everyone, I was wondering if someone could give me a push in the right direction. I'm trying to do Monte Carlo simulations on a certain statistical distribution. Monte carlo simulations requires hundreds and thousands of iterations to be run. The problem that I have is I need to save … | |
Hi, How can i convert this xml file into target xml using xslt. I tried everything, but i am not able to put the subquestions inside the corresponding questions. Please help even the logic. INPUT XML: [CODE]<?xml version="1.0" encoding="UTF-8"?> <tables> <table> <tr> <tc> <data> This is the title of the … | |
Hi. I've created an email system where people can sign up and receive emails. I want to make a link that says: "Trouble viewing email? View online!" or something like that. I've made it so that the email sent to people is saved to a database, and then it will … | |
Hi all, I am new in C programming, currently learning about linked list. I know that there is a lot of examples about linked list, but I decided to write my own code, to make me more understand. I managed to build a linked list, insert a new node after … | |
I want to write regular expression for [URL="http://www.servicesonclick.com/products.php?brandid=27&pname=Acer"]http://www.servicesonclick.com/products.php?brandid=27&pname=Acer[/URL] that redirects to [URL="http://www.servicesonclick.com/Acer"]http://www.servicesonclick.com/Acer[/URL] [B]and[/B] similar to [URL="http://www.servicesonclick.com/products.php?brandid=29&pname=Gigabyte"]http://www.servicesonclick.com/products.php?brandid=29&pname=Gigabyte[/URL] also redirects to [URL="http://www.servicesonclick.com/Gigabyte"]http://www.servicesonclick.com/Gigabyte[/URL] and so on | |
hey....can anyone tell me a flowchart which when takes input as 0..displays 1 and vice versa..WITHOUT USING CONDITIONAL STATEMENT???? | |
Hi experts., Can anybody help me out how to upload multiple files using php..? I need to select multiple files at the same time and when click to upload, it should upload all files at once..? Can we do that..? Help me...! Thanks, Dragonbaki ![]() | |
Hey, I'm working on a project where we have to stream files from a server app to clients. I have it all working nicely, but we have a special client type that cannot save files to HDD, not even temporarily. I can get the byte stream from server to this … | |
I know this is a stupid question, but how can I get the value $mail out of this function? [CODE] function Email() { $the_name = $_SESSION[$this->GetLoginSessionVar()]; $profil_query="SELECT * FROM $this->tablename WHERE username='$the_name'"; $resultate_profil=mysql_query($profil_query); $resultat=mysql_fetch_array($resultate_profil); $mail = $resultat['email']; } echo $mail; [/CODE] Thanks. | |
I'll prob post this thread in a couple places because of all the things it is and what its capable of...anything for help right? anyhow, here is my problem. I finally got Fallout: New Vegas, works fine but not for long, as soon as i go to start a game, … ![]() |
The End.