Undefined variable error message when running code
hello guys, when i run the code below, i get the following error message - Undefined variable: prod_id in C:\wamp\www\buysmart_site\my_list.php on line 50 <?php session_start(); include...
View ArticleAlways Display Child Pages on Parent Pages and Child Pages PHP MySQL
I have a problem with my code. What is the best way to display all sub pages for a parent page regardless of whether or not you are viewing the parent or child pages? If a different parent is chosen,...
View Articleplz help with explode.
i have a text file that contant user name n pass in this format. user111111,pass 1111111111,1111 2222222222,2222 3333333333,3333 4444444444,4444 5555555555,5555 6666666666,6666 7777777777,7777...
View Articleadd products to database by user_id
i have a table tblretailer and a tbllogin. when a retailer registers a user_id is generated in the tbllogin and role of 'retailer' assigned. when a retailer logs in, his session starts. he can add,...
View ArticleReading a file without uploading it
I have a script to split video files into chunks and and write each chunk to a separate file, and another one to reassemble the files. What I can't figure out is how to read the file 1 chunk at a time...
View ArticleCreating a sign up form for a conference
The program MUST use functions to calculate the cost of the conference, and to calculate the cost of meals. The functions should return the calculated costs back to the main program. I am trying to...
View ArticleRock Solid Registration System?
Hi,We peoples help on here I have built a website and I have businesses registering which I am delighted with. However a number of companies are not completing their profiles.I dont know if this is...
View ArticleCANT UNDERSTAND WHY THIS ISN'T WORKING
okay so I'm struggling to find what the issue is here the form tags are okay as this is one submit of many in a tournament update form where each match there is two submits for teams and two for scores...
View ArticleArray error - only writing 1st item in array
Hi, I got this script. I need to create a large amount of multiple files in the designated directory. However the script only creates the first item in the array. Where am I going wrong? <?php //...
View ArticlePHP Form Issue to MYSQL
Hey guys i have got some PHP Code that i use its for an order page. When i place an order on my form it gets the Customer Information. But when i try to put an order in for the checkbox items it only...
View Article$objComport not working
Hi, I'm wondering if someone could help please. I've been trawling the net and looking through forums. I'm having trouble with $objComport = new COM ( "AxSerial.ComPort" ); I get this responce...
View ArticleKeep checkbox checked after submit refresh
I am creating a clothing website and say for a color on the sidebar I want to be able to submit a form with 'onClick' that will refresh the page, which it already does but to keep the checkbox checked...
View ArticlePopulating table rows with data
Hello, I have a table and I want to only echo a table row when it is populated with data and not the entire table like it is now but I am having a bit of a struggle. Is it even possible to echo just a...
View ArticlePHP Session time?
Hi, I just have a quick question to ask which I can't find an answer to. Is there a way to set a session time for the "start_session" because everytime I log in, it doesn't keep my session for that...
View ArticleGetting results of second page?
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $page = curl_exec($ch); As you can see, I want CURL to follow any redirects a website throws at me. And I...
View ArticleTic Tack Toe game help
I have the code working well but it does not always work when there is a tie, could someone help me to figure out my bug? <?php $winner = 'n'; $box = array('','','','','','','','',''); if...
View ArticleArray to Variable
My php code is currently separated from my html, at least as much as possible without using a framework or template system. I am echoing out $result['title'] in my html, is there an easy way to convert...
View ArticleAdd html code to php variable
Hi all I want to create a simple html select menu from an array like: <select> <option value="">Red</option> <option value="">Green</option> <option...
View ArticleProject File Structure Layout
I want to develop a basic Management Information System using PHP/MySQL/Bootstrap. Since the project is required within a short time frame, I want to outsource different developers to work on different...
View ArticleYour Account Session Expired! Please Login Again.
i am using this code for cookies. $cookie = tempnam("/coki", "CURLCOOKIE"); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); steel geting Your Account Session Expired! Please Login Again. is their any...
View Article