Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
87% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
2 Commented Posts
0 Endorsements
Ranked #2K
~62.3K People Reached
Favorite Tags
Member Avatar for ivan3510

Hi! I want to convert numbers to letters, in this way: A=0, B=1, C=2... Z=25, AA=26,AB=27 etc (something like the names of columns in MS Excel). How to do that? Thanks a lot!

Member Avatar for SAbadshah
0
12K
Member Avatar for mrhankey

hi guys, i have a site which is protected using php and stored username and passwords in mysql database. is there a script which will protect a directory and run off the mysql database username and password as opposed to just a standard htaccess file? help urgently need for this …

Member Avatar for Renu_5
0
5K
Member Avatar for ivan3510

Hi! This is just an easy example of class inheritance. But, why does Sphere(Circle& K):Circle(K){} work? What does Circle(K) mean? Thanks! #include<iostream> #define PI 3.14159 using namespace std; class Circle { protected: float r; public: Circle(){} Circle(float r):r(r){} float circumference() {return 2*r*PI;} float area() {return r*r*PI;} }; class Sphere: public …

Member Avatar for basit_3
0
157
Member Avatar for ivan3510

Hi! So, as the name of this discussion says, I have some jquery code. And sometimes some parts of them don't work, sometimes they do work. The page is made for conjugating verbs, which is done with php, and this isn't a problem. Here is the code: $(document).ready(function(){ function conjugate() …

Member Avatar for Airshow
0
960
Member Avatar for ivan3510

Hi! So, I made this code #include<iostream> #include<cstdlib> #include<pthread.h> using namespace std; const int m=6; const int n=5; const int s=5; const int r=8; const int num_thrd=3; class data{ public: int* A; int* B; int* C; int start; }; void* multiply(void* pod) { data* P=(data*)pod; for(int i=P->start;i<m;i+=num_thrd) { for(int j=0;j<r;j++) …

Member Avatar for ivan3510
1
211
Member Avatar for ivan3510

Hi! A task was to solve a problem using threads (sum up two arrays), but so that you have a global const which will represent number of threads you want to use. Somehow, this doesn't work, and Im not sure if this is correct way to do it. Thanks for …

Member Avatar for ivan3510
0
4K
Member Avatar for ivan3510

Hi! I have this code and getting this problem: undefined reference to 'vtable for Triangle'. Thanks for your help! #include<iostream> using namespace std; class Point { public: float x,y; Point(){} Point(float x,float y):x(x),y(y){}; Point operator=(Point &X); }; Point Point::operator=(Point &X) { this->x=X.x; this->y=X.y; return *this; } class Figure { public: …

Member Avatar for ivan3510
0
4K
Member Avatar for ivan3510

Hi! I have this code, classes with matrices, overloading operator etc (this is just one part, I reduced it from original). #include<iostream> using namespace std; class matrix { protected: float* M; size_t m,n; public: matrix(){} matrix(size_t m,size_t n); matrix(const matrix& A); ~matrix(); matrix& operator=(const matrix& A); matrix operator+(const matrix& A) …

Member Avatar for mike_2000_17
0
326
Member Avatar for ivan3510

Hi! This is just an example code: #include<iostream> using namespace std; int& example() { int a=5; return &a; } int main() { cout << example(); } But I'm getting this error: Error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'int\*'

Member Avatar for ivan3510
0
201
Member Avatar for FALL3N

I could probably/def read a text file with javascript by embedding some ruby in there but I want to know how to do it with javascript. My code follows: [CODE] <HTML> <HEAD> <TITLE>"Text File"</TITLE> <SCRIPT LANGUAGE = JAVASCRIPT> function handleFile() { var myFile = document.getElementById('txtF') var fileContents = System.IO.File.ReadAllLines(myFile); document.form1.textfield.value=fileContents; …

Member Avatar for L0st
0
18K
Member Avatar for mani2604

Hi everyone... Well i do have a mysql query in one php page(php_1) & I want to submit the variables to the query in different php page(php_2) via form action but how am I supposed to do it without redirecting to php_1.. All I need is to post the data …

Member Avatar for Bachu
0
3K
Member Avatar for ivan3510

Hi all! I have this code. Everything works fine except "setTimeout..." function. It's supposed to repeat this function every second (and change the age). Can someone, anyone, help me? Thanks a lot! [CODE]<script type="text/javascript"> function parseDate(input){ var parts = input.match(/(\d+)/g); return new Date(parts[0],parts[1]-1,parts[2],parts[3],parts[4]); } function calculate(){ var date = new …

Member Avatar for ivan3510
0
121
Member Avatar for davy_yg

Hi, I have this codes: (index.html) [CODE] <body> <div id="wrapper"> <?php include('includes/header.php'); ?> <div id="nav"> <a href="#">Home</a> <a href="#">About</a> <a href="#">Portfolio</a> <a href="#">Contact</a> </div> <!-- end #nav --> [/CODE] I wonder why <?php include('includes/header.php'); ?> does not works. In other words, the codes that I have place in header.php does …

Member Avatar for azeem786
0
2K
Member Avatar for Jeroen van Zijp

I'm trying to make a Menu manager in PHP + SQL. My goal is to save every menu item and where it should link to in a seperate row. Every row has an internal identifier column called 'menu_id'. I also want to add a function to be able to add …

Member Avatar for diafol
0
188
Member Avatar for Farhad.idrees

Hi i want to echo session but it gives error...code is [CODE] session_start(); if(isset($_GET['P_Price'])) { $_SESSION['Price'] = $_SESSION['Price']+ $_GET['P_Price']; $_SESSION['Items']++; " <div class=\"shopping_cart\"> <div class=\"cart_title\">Shopping cart</div> <div class=\"cart_details\">Items echo $_SESSION['Items']; <br /> /// this line has error <span class=\"border_cart\"></span> Total: <span class=\"price\">echo $_SESSION['Price']; </span> ////this line has error also </div> …

Member Avatar for mamdouh ramadan
0
111
Member Avatar for abhinav bagora

Hello to Everyone, I m involving in social networking website in php.Can anybody help me for building add friend system in php?

Member Avatar for cereal
0
148
Member Avatar for ivan3510

Hi! I want to check if some file on some other server exists. I have this code (but something is wrong with it): [CODE]<?php $notworking=array(); $false=0; $link="http://uploads.mp3songurls.com/"; $files=glob("genre/*.xml"); foreach($files as $file){ $xml=new SimpleXMLElement($file,null,true); foreach($xml as $info){ if(fopen($link.$info->link.".mp3","r")==false){ $false++; $notworking[$false]=$info->name." => ".$info->author; } } } if($false>0){ $file=fopen("notworking.txt","w"); for($i=1;$i<=$false;$i++){ fwrite($file,$notworking[$i]."\r\n"); } fclose($file); …

Member Avatar for ivan3510
0
209
Member Avatar for Cap'nKirk

Hi, a bit of a long title to this thread, I know, just trying to make it obvious. lol Anyhow, I am building a Twitter widget for my own website and have got really stuck on one aspect of it, namely the 'source' i.e. which application the 'user' used to …

Member Avatar for Cap'nKirk
0
177
Member Avatar for ivan3510

Hi! This is my problem. If I write letter č or ć in textarea, and then if I use php to check if there in textarea is letter č or ć, it doesn't work, here's code: [CODE] <?php if($_POST['sub']){ $tekst=$_POST['tekst']; $array=array("&#x010D"); //& # x 010D iz unicode for č, i …

Member Avatar for ivan3510
0
258
Member Avatar for cgull

Hello, As much as I try I can't totally understand how to use preg_match. I have downloaded an open source system from the internet that I want to use, but they use ergei in their code. When I change it to preg_match I get all kinds of errors. Can someone …

Member Avatar for cgull
0
140
Member Avatar for pinar747

Hello, I am trying to make a very simple form about the courses students have taught in the past. if there is more than on course they taught I want to make an "Add More Button" so that the form reappears. Kinda like the fields sections in PHPMyAdmin interface. The …

Member Avatar for ivan3510
0
157
Member Avatar for Mapper99

What is the best approach to merge(join) XML data?: File#1: [CODE] <users> <user> <name>Mark</name> <id>100</id> </user> <user> <name>Fred</name> <id>100</id> </user> </users> [/CODE] File#2: [CODE] <users> <user> <id>100</id> <lat>50</lat> <lon>122</lon> </user> </users> [/CODE] Desired output (only keep records where a match is found): [CODE] <users> <user> <id>100</id> <lat>50</lat> <lon>122</lon> <name>Mark</name> </user> …

Member Avatar for ivan3510
0
111
Member Avatar for masterjiraya

you may download [URL="https://skydrive.live.com/embedicon.aspx/.Public/CLC.zip?cid=3e21e1e16478087a&sc=documents"]this[/URL] to see the whole thesis program. I'm more for now on functionality than design interface. this about a problem on the get_value.php to the receipt.php the problem: I can get now the value using session functions but the problem is.... the list of checked items from …

Member Avatar for ko ko
0
309
Member Avatar for mr guru

after designing a member area in my page i was now locked with this problem. i want each member, have his own data(like his own profile,his own messages etc) presented to him any time he is logged in. pls i will be very grateful if some one can help me

Member Avatar for ivan3510
0
88
Member Avatar for ivan3510

Hi! I could play 18 Wheels of Steel: Haulin, and then I've deleted it. After a while I've installed it but I can't play it. I click on the icon but nothing happens. Can somebody help me? Thanks a lot!

0
65
Member Avatar for ivan3510

Hi! How to create a website with cookies, but cookies will not be deleted (they will be on computer forever, except somebody delete it; I deleted the cookies one time, and then they have been automatically created (I didn't go to these sites)) So, how to create these two things? …

Member Avatar for MagicMedia
0
75
Member Avatar for ivan3510

Hi! Can somebody help me? I want to add text, but I can't. I saw some examples, but when I wrote them in my code, it returns error. Here's the code (Win32, directX, c++): [CODE] #include <Windows.h> #include <WindowsX.h> #include <d3d9.h> #include "D:\\Program Files\\Microsoft DirectX SDK (June 2010)\\Include\\d3dx9.h" //I don't …

0
84
Member Avatar for ivan3510

Hi! I have htaccess file with this: [CODE] deny from all [/CODE] When I open the directory, access is forbidden! But when I open some file, it doesn't work. Can somebody help me?

Member Avatar for ivan3510
0
93
Member Avatar for ivan3510

Hi! I'm getting these warnings: Warning: session_start() [function.session-start]: Node no longer exists in (file) on line 2 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at file:2) in file on line 2 Warning: Unknown: Node no longer exists in Unknown on line 0 I …

Member Avatar for Stefano Mtangoo
0
168
Member Avatar for ivan3510

Hi! I'm trying to send an email (automaticaly, when user register), but I don't get some different letters correct. Here's example code: [CODE] ... $message="Some message that contains č, ć, đ, ž, š"; //on the server, I can't write letters like č, ć etc.; I must write their code & …

Member Avatar for ivan3510
0
106