Tagged Questions
PHP is an open-source server-side scripting language widely used in web development. Use this tag for questions about PHP classes, methods, functions, syntax and use.
-1
votes
0answers
19 views
search process using select query
i am creating a search form that will allow the user to choose between 3 types of search that are :
by name
by specialization
by location
but i get three errors
Notice undefined index : ...
0
votes
1answer
10 views
simplifying a drop down form input for date: day month year <html>
There are 29+ days in a month, I am creating a form using select and option. But this means I will need 31 options for day, 12 for month and a bunch more for the year.
is there a better way to do ...
0
votes
1answer
5 views
Installing Alternative PHP Cache using PECL and Fink
I would like install the Alternative PHP Cache (APC) on my mac.
With PECL this is supposedly a rather painless operation.
All one needs to do is:
sudo pecl install apc
As others have reported on ...
0
votes
0answers
10 views
cUrl error: “Couldn't resolve host 'search.twitter.com' ”
When trying to connect to the Twitter api using cUrl and PHP, I get the following error:
Couldn't resolve host 'search.twitter.com'
Before it worked fine, and the request works in my browser. When ...
0
votes
1answer
16 views
Trying to set up a A-Z filter
Im trying to set a A-Z filter for a table database in PHP. Below I have provided the code I have been working with. In between the bars is the code that I am trying to use. For some reason its ...
0
votes
1answer
6 views
Change order in #_EVENTDATES
I'd like to show an event is happening over multiple days in a calendar. When I use #_EVENTDATES it puts the day first, then month. This may be "correct" but my clients want to see it in standard ...
0
votes
0answers
4 views
Fetch the attributes using PHP crawler
I am trying to fetch the name,address and location from crawling of a website . Its a single page and dont want any other thing other than this. I am using the below code.
<?php
include ...
0
votes
0answers
6 views
WooCommerce Add item to Order
I'm trying to add an item to an existent order but it's not working properly... Everytime I execute the code below it ads and empty item, any help?
woocommerce_add_order_item($Novo_PostId, $item);
...
1
vote
2answers
17 views
PHP dynamically created checkboxes with JQuery .toggle()
I have dynamically created an array of checkboxes in PHP for a form, but I don't want the Submit button to appear unless at least one checkbox is checked. Scouring the Internet most people who want ...
0
votes
0answers
6 views
how to see if a page on a pdf contains specific text
I want to programtically find all pages in a PDF that contain a certain substring and if they do then I want to replace that page with another PDF. Replacing that page isn't a problem - I can do so ...
1
vote
3answers
14 views
How to blend images using Photoshop 'darker color' blend mode?
I need to display user-uploaded logos on a background-image. The background of the logo's should be transparent.
The problem is that most users have no knowledge of how to make their images ...
0
votes
0answers
13 views
Can't Send SQL Server Database Mail Through PHP
I have a SQL Server procedure that does inserts and sends an e-mail to a recipient. The procedure works as expected inside of SSMS. When I call the procedure using the mssql wrapper in PHP
...
0
votes
2answers
37 views
How do I pull data from the my database using a php function
This is what I have in my main page:
$foo = new Foo();
$strQry=$foo->Client();
$user_data=mysql_fetch_object($user_res);
echo $user_data->clientid;
This is what I have in my class file:
...
0
votes
1answer
44 views
Why PHP ignores changes to an array?
I have very very strange problem with PHP. My code is as this:
$a = array('a' => 'b', 'c' => 'd');
$a['x'] = 'z';
var_dump($a);
/// result: array('a' => 'b', 'c' => 'd')
Does anyone see ...
0
votes
0answers
4 views
Getting an absolute PHP path for a file directory listing in Joomla 2.5
I'm trying to use a PHP script in conjunction with Flexslider in Joomla 2.5 to be able to autoload slideshows and thumbnail slider nav from a folder without having to code it out for each slideshow, ...