Hi
I have a table with the following structure:
id int(11),
name varchar(250)
I have lots of records in the table but when I am trying to find a particluar record which has the following value on the name field:
Lorem ipsum d\'olor sit amet
The query is simply returning a blank recordset. I am not being able to figure out this weird...
I have a PHP script that keeps running in the background endlessly. It also keeps flush()ing debug messages. Is there a way to display those flushed messages within another HTML page?
...
public function create() {
echo $this->equipment->getCatId() . "<br/>";
echo $this->equipment->getName() . "<br/>";
echo $this->equipment->getYear() . "<br/>";
echo $this->equipment->getManufacturer() . "<br/>";
echo $this->equipment->getModel() . "<br/>";
echo $this->equipment->getPrice(...
I've launched a website a while back and successfully used Javascript + CSS to highlight the current page on the navigation. However, it is not working in Safari and it does not validate well, when using Javascript, so I decided to have PHP assign the CSS id to the HTML elements. So far, it works fine, compared to the other times where...
Hello,
I'm using a PHP script that dynamically generates transparent PNGs for use as CSS backgrounds from a query string that takes RGBa and HSLa values. The original script can be found here, I've only added HSLa support.
Because background URLs with PHP query strings aren't very pretty, and because it seems to break the IE 6 transpar...
I have a list of urls, which can come in any format. One per line, separated by commas, have random text in between them, etc. the URLs are all from 2 different sites, and have a similar structure
For this example, lets say it looks like this
Random Text - http://www.domain2.com/variable-value
Random Text 2 - http://www.domain1.com/var...
I have a csv file which looks like this
$lines[0] = "text, with commas", "another text", 123, "text",5;
$lines[1] = "some without commas", "another text", 123, "text";
$lines[2] = "some text with commas or no",, 123, "text";
And I would like to have a table:
$t[0] = array("text, with commas", "another text", "123", "text","5");
$t[1]...
I'm trying to make a PHP script that will deliver a given .ogx file based on a seek position (transmited as a parameter to the script). The purpose is to make a HTML5 video player with server-side seeking functions.
I have studied the container format a bit and made the .php script to start delivering data from the first instance of the...
Hi All,
On AIX 5.3 (TL 5 to 11) in my application I have updated PHP version from 5.2.6 to 5.2.13.
Since then, executing php.bin throwing the following errors:
===================================================================
PHP Warning:
PHP Startup: Unable to load dynamic library '/opt/pdag/lib/extensions/curl.so' -
rtld: 0712-00...
Hi All,
I'm trying to open and process ASCII files using PHP, but am having problems. The problem
is that the blank spaces are removed, which I don't want to have happen, since the files are fixed width.
The PHP script I used is this:
$myFile = Test.SEG";
$file_handler = fopen ($myFile, r) or die ("Can't open SEG File.");
while (!feo...
I created my own module called "cssswitch". I'm trying to create my own html layout to display the admin form portion of the module. I understand how to use the hook_form_alter() to modify form elements, but I need to create the entire form layout to make some fields appear next to each other.
It seems I need something like the way I hav...
All I will be doing is basic line graphs. Any experiences anyone might share would be greatly appreciated.
...
I would like to know whether it is possible to post "topics for Discussion" on Facebook Groups by using either the old Rest API or Graph API? I somehow was unable to find any function within the API which would help me to do so.
Any work around or alternate solution to the above problem is welcome. Thanks.
...
Is anyone using Zend Navigation in conjunction with URLs that require dynamic parameters?
Zend_Navigation seems really easy when dealing with static routes, but I can't figure out any way to make it play nice with dynamic URL parameters.
A route like:
routes.editUser.route = '/users/:id/edit'
routes.editUser.defaults.controller = 'use...
ok im trying to upload this csv file onto my table in pgsql
but im getting this error
ERROR: invalid input syntax for integer: "mlname,mfname,slname,sfname,address,postalcode,membershiptype,hphone,email"
CONTEXT: COPY members2, line 1, column id: "mlname,mfname,slname,sfname,address,postalcode,membershiptype,hphone,email"
i really...
I have a top navigation and a side one
Home | Tours | Booking
Tour1
------
Tour2
------
Tour3
I show the side menu depending on a active top item.
But sometimes when the side menu item is clicked I have to show that items children instead of the sidemenu. When no children exist I just show Children of a top menu depending on the ac...
Apparently there was confusion as to my original post so let me start over:
I am essentially creating an online shopping cart which gives a manager the ability to enroll his/her employees for training services which we provide. We charge $49 for the services for every employee enrolled. The primary difference between this and a traditio...
Can't seem to get this div to move to the left. Using wordpress. I tried a lot of things but am at a loss. Here is the css for the div:
#portfolio li img {
position: absolute;
float: left;
margin: 34px 50px 0 0;
width: 942px;
}
Here is the header.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://ww...
Is it possible to validate a form with PHP AND Javascript? I am currently able to do both using my existing form but only on an individual basis.
My overall goal is this:
Validate form using javascript client side and present any errors to the user immediately
If javascript validation passes, a flag is created and then the PHP script...
so for example this will turn 1251 into utf-8.
$utf8 = iconv('windows-1251', 'utf-8', $ansi);
But how to turn unknown (when it comes to us we do not know yet what format it is) ( in general any ) format (possibly known by Iconv ) to utf-8? (code sample)
...