- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 6
- Posts with Upvotes
- 5
- Upvoting Members
- 6
- Downvotes Received
- 9
- Posts with Downvotes
- 8
- Downvoting Members
- 8
Re:
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 … |
|
Re:
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: … |
|
Re:
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 … |
|
Re:
> 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] … |
|
Re:
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. |
|
Re:
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= … |
|
Re:
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 … |
|
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"a=$equota Cheers, Robert |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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` … |
|
Re:
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 … |
|
Re:
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 … |
|
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 … |
|
Re:
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 … |
|
Re:
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 |
|
Re:
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 … |
|
Re:
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 … |
|
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 … |
|
Re:
[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 … |
|
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 … |
|
Re:
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 … |
|
Re:
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:-/ |
|
Re:
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 … |
|
Re:
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 … |
|
Re:
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 >> … |
|
Re:
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 … |
|
Re:
can sombody tell me binary addition in c++ |
|
Re:
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 … |
|
Re:
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! |