Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
41% Quality Score
Upvotes Received
6
Posts with Upvotes
5
Upvoting Members
6
Downvotes Received
9
Posts with Downvotes
8
Downvoting Members
8
9 Commented Posts
0 Endorsements
Ranked #1K
~13.2K People Reached
Favorite Tags
Member Avatar for shahai.ali

hi i have a following form in html: `<form action="upload_file.php" method="post" enctype="multipart/form-data"> File Name: <input type="file" name="file" id="file" /> <br /> <input type="submit" name="submit" value="Submit" /> </form>` and here is my `upload_file.php` if (($_FILES["file"]["type"] != "file/XML")) { echo "Invalid file type"; } else { echo 'file is uploaded'; } it …

Member Avatar for Robert1995
0
282
Member Avatar for doha786

in my home.php file i hv defined one path as javascript variable like below: <?php $path= "http://localhost/tiffany/" ?> <script type="text/javascript" src="<?php echo $path; ?>js/manuals.js"></script> <script type="text/javascript" > var templateUrl = '<?php echo $path; ?>'; </script> & in my 'manuals.js' file i have included someother js files adding with that variable: …

Member Avatar for doha786
0
263
Member Avatar for mhaselip

hi, im trying to write a mysql query to join tables. I basically i have the following tables: tblwinners = table that shows all the winners PK reward_id customer_id tbluser = table that holds all the user accounts PK customer_id tblcompleterewards = completed rewards PK reward_id tblrewards = holds a …

Member Avatar for mhaselip
0
218
Member Avatar for cussel

> hy guys,..how to make paging from array 3D? > first index[0] become first page next index[1]become second page and next index[2] become third page > example: Array ( [0] => Array page>>>1 ( [0] => Array ( [0] => aaa [1] => bbb ) [1] => Array ( [0] …

Member Avatar for Robert1995
0
170
Member Avatar for shiva.thapa

Hi, we have a page where we have our host status like up/down and many others. I just wanted to write a php scripts which finds the host up/down and only displays this in homepage. How can we perform this task.

Member Avatar for diafol
0
122
Member Avatar for ismael ahm@d

Hi Friends, I am trying to send a file via email and upload on a server as well, but unfortunately the file uploaded successfully while attachment sent to email there when i preview or download so it contained error, below following code is: <?php if(isset($_POST["Submit"])) { $to = "abc@gmail.com"; $subject= …

Member Avatar for urtrivedi
0
174
Member Avatar for shanboy

The upload html page i'm using <html> <head> <title> </title></head> <body> <form enctype="multipart/form-data" name="upload" action="upload.php" method="post"> <input name="file4upload" type="file"> </input> <br> <input name="submit" type="button" value="Upload File" > </form> </body> </html> php file code is given below (upload.php) <?php $target_path="upload/"; $target_path=$target_path.basename($_FILES['file4upload']['name']); if(move_uploaded_file($_FILES['file4upload']['tmp_name'],$target_path)) { echo " File ".basename($_FILES['file4upload']['name'])."has been uploaded"; } else …

Member Avatar for shanboy
0
269
Member Avatar for Robert1995

Hello everyone. I want to do this. I have a website for example www.rusuandreirobert.com . I want to create via PHP an email address 3rrgtbf@rusuandreirobert.com . I don't want to use this : http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass&quota=$equota Cheers, Robert

Member Avatar for pritaeas
0
57
Member Avatar for Transcendent

I have a code and I want to validate it before the submitting it. When I say before submitting it I mean that the form does not submit the information filled till everything is filled correctly. I was thinking of using the if statement but I believe if I do …

Member Avatar for almostbob
0
186
Member Avatar for hamedx

Hi, after reading the good topics and contents on disaster to resolve the problems in recent years finally its my chance to signup :) and be the one to ask: im working on a cms (not exactly) and stuck on menus and permissions. im wondering is there anyway the cms …

Member Avatar for Robert1995
0
96
Member Avatar for vizz

CREATE TABLE IF NOT EXISTS `users` ( `ID` mediumint(9) NOT NULL AUTO_INCREMENT, `username` varchar(60) DEFAULT NULL, `password` varchar(60) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; CREATE TABLE IF NOT EXISTS `chatmessage` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `from` varchar(250) NOT NULL, `to` varchar(250) NOT NULL, `message` …

Member Avatar for vizz
0
290
Member Avatar for me!

I wanna make the frontpage of a JOOMLA website look like a blog with the image to the left and the intro text to the right with a readmore link on the bottom. So far I got it, however the code below grabs the first image of the article and …

Member Avatar for me!
0
502
Member Avatar for cr7489

i have 2 methods to check if words appear within a piece of text, the method only checks for a word once but i want it to check more than once [CODE] while ($pos_words = mysql_fetch_assoc($pos)) { if (strpos($review_text, $pos_words['word']) !== FALSE) { $good++; } } //Get negative words and …

Member Avatar for diafol
0
229
Member Avatar for Robert1995

Hello, I have a problem :), like everybody else here :P. Ok so I need to update a wordpress plugin from 2.5 to 3.3.Did anybody else had to do something similar ? Any tips are welcome. Also books about wordpress plugin development would help a lot :).Worth to mention that …

Member Avatar for iamthwee
0
65
Member Avatar for mehrantahir

Hi everyone, First time i am going to work on the search.please help me how i make search in my site,the website is about the products,i want the user search for the products by city name, [B][U]Requirements [/U][/B] The simple search give result of the products in the selected city,the …

Member Avatar for rayidi
0
165
Member Avatar for Cup of Squirrel

Ok, time to get off my ass and learn C and C++. However, I'm having a bit of trouble finding a free compiler; I'm a newbie so it needs to have a friendly and explanatory GUI if possible. Just post name and/or link, thanks :D

Member Avatar for mslade
1
2K
Member Avatar for apple621

Write a function whose prototype is string NumberToName(int x); that returns the string of english name of each digit of number x. Using this function, write a main program that reads a positive integer number and prints the english name of each digit of that number in a single line …

Member Avatar for programing
0
125
Member Avatar for mmgoicochea

Hi everyone I m openning this theat because I want to see if any of you can help me... well lets see ... I got my full time back at work (after 2 years :o ) and Im worry about college because I do not have enough time to complete …

Member Avatar for mmgoicochea
0
445
Member Avatar for Robert1995

Heya , I was thinking of making a site opener application :). But I had a lots of problems . The next problem is facing this , it just crashes.:( [B]What do I want my program to do ?[/B] I want to assign a nickname for each of my favorite …

Member Avatar for Robert1995
0
200
Member Avatar for VERMUNDr

[CODE] #include <iostream> using namespace std; const int ROWS = 3; const int COLS = 3; //char matrix[3][3]; void showBoard(char[][3]); void pTurn(int&, int&); void checkPlayerWin(bool&, char[][3]); void checkCompWin(char[][3], bool&); void checkForBlock(char[][3], bool& ); char compRandomTurn(); void compWinCheck(); // Main // Main// Main // Main// Main // Main// Main// Main// Main …

Member Avatar for Robert1995
0
178
Member Avatar for Robert1995

Hello , I'm just amazed how strong php is , but i don't have an idea where to start , I mastered c++ at a command promp level + kinda average at visual c++ . If some1 could give me some sites or tutorials ? And is code igniter a …

Member Avatar for colweb
0
79
Member Avatar for tallygal

I have to utilize an array for a homework project. I want it to read a line from a file on my hard drive. However, the line starts with words and ends with numbers. I only need to utilize the numbers for a function that I want to pass a …

Member Avatar for WaltP
0
204
Member Avatar for Fenlevi

Hi guys,I was interesting,how to write a function,to determine the nearest square number that is equal or greater to the length of the string( for example 16 is the next square number after 13) I don't even know what is the mechanism of this function:-/

Member Avatar for Robert1995
0
95
Member Avatar for smitysmit

at the moment i have 2 answers to queations and the answers are 1,2,3 or 4 but i ow have to make it so the user has to put a work in like "Brazil" but i try to do the same as if the user puts "A" in and it …

Member Avatar for Robert1995
0
146
Member Avatar for angel19

hi, can anyone help me with my code, any help will be much appreciated. The design should follow object oriented principles and use the UML tools. It should be a board game based on a “Monopoly-style” board made of 36 squares. The game is for two players who first enter …

Member Avatar for mn.balakumar
0
3K
Member Avatar for myz068u

Hello I am newbie to C++ and I am testing my first loop using a switch statement. I want the loop to run nonstop until the user quits the program. [CODE] #include <iostream> using namespace std; int main() { char answ; cout << "Yes or No(y/n)" << endl; cin >> …

Member Avatar for mrnutty
0
100
Member Avatar for sjgman420

I dont even know where to start with this program. I have been really busy and he tells us what to do. If anyone could help with this it would be great. here is what it says to do ASSIGNMENT DESCRIPTION This program will simulate the card game WAR!. The …

Member Avatar for Freaky_Chris
0
869
Member Avatar for muzamal
Member Avatar for Darkwarrior_331

Hi there, i'm trying to make a program which translates a word from one language to another, using files (one file for each language) i'm using fgets, to read a line from the file and then comparing it to what the user entered, and strcomp() to see if the words …

Member Avatar for mattjbond
0
138
Member Avatar for Pynolathgeen

Hello, I created a fully working progress bar for my 2D Game patcher. I have a question, Is it possible to have an Image painted on the progress bar? I know its possible in VB but I wanna try it in C++. I could find any results using Google. Thanks!

Member Avatar for Pynolathgeen
0
209