Voting
Hey Guys,I'd like to create a somewhat of a secure voting system where in a page we have about 5 to 10 pictures but in order to vote for one of the pictures you need to enter a "Voting code" once you...
View Articlefinding and replacing keywords in large body's of text
Hey all, this is my first post here. I am not new to php (but I am newer to the OO aspect of php). I am working on a script that will find certain words or phrases in large text files. I guess the...
View ArticleHashing Error
Hi All, I'm trying to establish a change password script but the SHA256 hash is giving me issues. I get "An error has occured and your password was not reset."; however, when I go to check the DB,...
View ArticleWanted - an efficient method of searching for duplicates in an array of strings
I have an array containing the users input of 14 strings, I want to search this array to find duplicates, but I'm not sure how to go about it efficiently... there isn't already a function that does...
View ArticleWhy are variables lost from this multy-dimensional array?
I'f I do a var_dump after taking in the array from the foreach statement then all of the variables are present. However, by the time the variables go through the switch statement and we run the first...
View Articlephp array and foreach loop
I have this array: <?php $continents=array("Asia"=>array("Bangladesh","India","Pakistan"), "Europe"=>array("England","France"),...
View Articlecreate links on a page.
I am looking to see if there is a way that I can create links via html or php I have a year range say 1940-2013. instead of creating a ton of <a href> in html can I simply set the range and have...
View ArticleSearch database and display
Hi I am trying the code below and managed to display a unique record. But, if I found more than one record, how can I display them by lines. Also if possible, how can I insert a link in everyline to go...
View Articletotal newbie cant get head around contact form
hi all!, im trying to set up a website for myself using a free template from os templates.. the contact form code is .. <div id="contact" class="clear" ><br=""> <h2>Contact...
View ArticlePassing get variables through https:// ssl secured url
Hey, I'm trying to pass get variables through an https ssl secured url to generate xml data so I can parse it and I'm not sure how to get it working. I have the following code, I have the url set up...
View ArticlePHP Show a Text box for each row and update all with 1 submit button?
Hi! I am still stuck on this problem, I can't give up on it... but there is no other way around it... What I am trying to do is this: Display the name/image of the row AND a text box underneath it......
View ArticleDownload Code Error In PHP? Need Help
Hello Guys, I am learning PHP and tried to create a simple php upload and download script connecting to mysql databse. I used uid() to generate a special id for each file and stored it the database....
View Articleresize image before caching
This script will load an image (jpg, gif or png) and then save a PNG local copy for caching. I'm trying to find a way to resize the image to 300x300 before saving it as a PNG. I tried to use the...
View ArticleRTMP->PHP Parse Help
I'm having a slight issue via a php script which connects to an rtmp server running flashcoms community chat 7 software upon receiving a message this code is initiated static function...
View Articleis this set up right?
is this code setup right? // Get cURL resource $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt($curl, CURLOPT_URL, $request_url); curl_setopt($curl,...
View ArticleUnexpected << where I have my <<<_END construct
Hey guys, probably a nub question, but here it goes: Why am I getting the following error with my following code? Everything seems in place to me, I've looked it over a thousand times: ERROR:...
View ArticleUndefined offset or null errors
Hi, I am trying to make a code which will count the number of fields are in the column,fetch all of them,store in an array and place them in the menu options that were created by a loop allocated by...
View ArticleSQL Warnings in my PHP code
Hi everybody, Please can someone check the snippet of code below and say why it generates a warning as "Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in...
View ArticleFinding the last row of the mysql table.
Hi all ! another simple mysql query to which i never found any satisfactory answer so far. I have a table with four fields. id is auto generated and increases as the table is filled. So i fill the...
View ArticleDate format
Hi, I have some doubts as date format is displayed is 2013-07-25 yy/mm/dd, as it is in database. 1-How/is it possible to format dd/mm/yy in database ? 2-How to format dd/mm/yy in HTML. 3- Is it...
View Article