Add variable to an Object
Hi all This is following on from my previous questions. I'm creating an <select> menu from an array and adding it to a variable I'm also creating an Object. How can I add the select menu...
View ArticleDuplicate data showing from single variable
Hello, I am having a small issue which I think is just a simple problem but I can't seem to solve it. I have a small simple script that parses a text file of data sorts it through an array and creates...
View ArticleBlocking browser agent with PHP
Hey guys, I am trying to figure out a quick and easy way of blocking a certain type of browser agent from accessing my page. I would like to only block a visitor if they use a specific browser agent,...
View ArticleHow can I pass a CSS class style into a PHP function's parameter?
Hi guys, It's a simple question really (just getting used to php - actionscript 3.0 developer!) but I need to know how I can pass a CSS class into the arguments in a PHP function, then have it apply...
View ArticleMultiple item entry with edit and delete option
Help me with code for sales order in which one can add multiple item and can store it in database. Example. -------------------------------------------------------------------------------------------...
View Articlefire buttons not in check boxes that is my first problem
I have most of the components and it has the start page but I cant get the fire buttons on the grid, lots of other things to but I would like to start with that one…. please and thank you .. <?php...
View ArticleJoomla php coding help
Hi, Hoping someone can help me with a simple code change for my Joomla site. I have a line of php code set up to display a registered member's first name and last name on the profile page of my...
View ArticleSELECT and return to table
Very perplexed here...hopefully someone can shed some light on this. I have a page with a search text box on it...I want the user to enter some text and then click the search button and return records....
View ArticleWill doing "return" in a function automatically close any cURL...
$page = curl_exec($ch); if(curl_errno($ch) != 0){ return false; } curl_setopt($ch, CURLOPT_URL, '');...
View ArticleNeed help with IFELSE doing two things
HI, I am fairly new to PHP and I am working on a complicated ifelse statement. I am getting the first part of it to work (i.e. showing itemcode1 and itemvalue1, but I can't get it to echo the item...
View ArticleMultiple pages with multi cURL?
From the PHP manual page, it looks like you can only set the cURL options for all the handles you're including once. So it's like the multiple cURL sessions will only do what you told them to before...
View ArticleHelp with Function
I was given this function question for an interview. I don't think I'm interested in the job and therefore will not submit this, but I am curious how to answer this. Once I start something like this, I...
View ArticlePHP to Javascript
I have inserted some JSON data into mysql database. And would like to retrieve it to display it. However it must first pass through a script.. My question is how do I convert a php variable to a...
View ArticlePHP Arrays Help
I have a time array and a event array and i need the 2 to join, could i get some help. So basically the All the times need be there and if there is a match event then it shown and if not nothing. What...
View ArticleNeed help using the mail function
Hey, I am learning on how to use the mail function in PHP and have wrote one in PHP. Every time I try to execute it, I get an the message that says error. I have scanned through my code and...
View Articleseeing double
Can some one please explain to me why the following code echoes the results twice? <?php //includes: include('connections.php'); include('my_functions.php'); //select last...
View Articlesecond letter of a text field
I know the problem is here I cant understand what to put in there to get the value of the second character when something is typed into the text field also how could I acces the value of $str in my...
View ArticleCURLOPT_PROXY failing me?
(note: cURL is installed on my webhost) Useful cURL class I'm using: http://paste2.org/3weaghkm public function testNewProxies($file, $max_time = 5){ $proxies = file_get_contents($file);...
View ArticleMail Form Help
Hello everyone.. I know next to nothing about PHP but I'm trying to set up a mail form on a html web page. The code I've used should work, but for some reason the email wont send. When I hit send, the...
View ArticleWhile Loop Problem
So I'm working on a bit of code that is supose to grab information and then run a loop. I've written something like this in the past but for some reason I cannot get it to work propery. I know I'm most...
View Article