php

Show sales figures thru web.

Any good software modules, or combination of them, where one can key in sales figures from the excel, then upload them to a web app for user to see? User access need to be controlled to the sales item level, or a group of sales items. Ideally, the web app can hosted for cheap price. Thus, I suppose PHP related modules would be better. ...

PHP Regex for different URLs

I am trying to figure out a way to match 3 different URL types, they are; http://(www.)domain.com or www.domain.com http://(www.)domain.com/image.jpg/.png/gif or www.domain.com/image.jpg/.png/.gif http://(www.)youtube.com/watch?v=Li1zXaEYol8 or www.youtube.com/watch?v=Li1zXaEYol8 Note, I do not want them parsed, if they are just doma...

jQuery and php image rotater puzzle

Jquery puzzle I've got a php script that returns the name of random jpg image from a folder. It's nice because I don't have to rename the images at all; I just drop them in the folder and the randomizer works. Right now, I call the script like this - http://mydomain.com/images/rotate.php - and on a simple web page reload, it swaps the ...

Displaying the date correctly

I have a folder ( i mean a project)which is connected the server (svn) my requirement is to show the svn updation number and the updated date, in a page $info = @file('.svn/entries'); then i displaying the values from the the array $info echo $info[9] should come 2010-01-11T06:21:33.250281Z.But the date is comming a another date 201...

value preserving across multiple pages

i am trying to post the some data on another page at this i have a back button onclick of back button i wanna reload the original page with posted data. ...

Dreamweaver extension to Beautify php / js / jQuery code

Hey there, I'm looking so long for a Dreamweaver extension to Auto Beautify php / js / jQuery code. Currently dreameaver can beautify only HTML and CSS (Apply Source Formatting).. any kind of help will be much appreciated.. Thanks Adnan ...

How to find number of days between two dates using php

Hello, How to find number of days between two dates using php. for this i have test the answer of: Calculate number of days between two dates in PHP [closed] (3) on this forum. but it does not work. can any one help me. ...

How do you override a Constant in Doctrine's Models?

In Doctrine you are provided with a Constant Variable that allows you to set a global Identifier column in all of the models that are generated by Doctrine's code. I am trying to figure out how I can override/shut off this value so that it does not create this column in a specific table. The Constant is: ATTR_DEFAULT_IDENTIFIER_OPTION...

How to dynamically generate SQL query based on user's selections?

I need to create a GUI, using which users can select several attributes which will be used to query the database to find suitable persons. I'm looking for ideas how to dynamically generate the database query according to user's choices. Query will contain several fields, but to get the idea I will include only three of those below as an...

How do I add an image to this text?

<?php if (mysqli_num_rows($new_result) == 1) { if ($row['borrowingPower'] == 'mayor') print "<div id='verified'>This User is Verified!<div>"; } ?> In addition to the text "This User is Verified", how can I make an image display just to the right or just above the text? ADDED TEST FILE FO...

Automatically convert CSS file to be used on dark backgrounds

I have about 200 CSS files like this: /** * GeSHi Dynamically Generated Stylesheet * -------------------------------------- * Dynamically generated stylesheet for bnf * CSS class: , CSS id: * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann * (http://qbnz.com/highlighter/ and http://geshi.org/) * --------------------...

Wordpress Gallery Links

I have a Wordpress page which is showing gallery that I created by using Wordpress built-in post editor: into it here is its url: http://jalrosh.com/lylescenter/?page_id=8 Now the issue is that when I click on some image its big image opens in a new page and that is disturbing page design. It should come in the central area but it is a...

How to get the stream of a public Facebook fanpage in php?

Hi, I want to display my public fanpage feed onto my website via the Facebook API without requiring a login. I'm doing this require_once('../includes/classes/facebook-platform/php/facebook.php'); $fb = new Facebook($api_key, $secret); $fb->api_client->stream_get('',$app_id,'0','0','','','','','')); But I get this error Fatal er...

jQuery imple form submission without reload

Hi, Could someone provide me with the most simple code for form submission with jquery. On the web is with all sorts of gizmo coding. Thanks in advance Dave ...

PHP and jquery, help passing PHP variable to javascript

Hello, I am trying to allow the users of my website, to upload images and then select one to be a back image, the uploading works fine, but I have a problem in my controller or view I think, i would appreciate it some could help me out, VIEW: <div id="background-select"> <?php $count = 0; if(isset($special)) { foreach ($s...

smarty pagination for nested {section}

Here is the Sample Code: {section name="firstlevel" loop=$xxx} <ul> {section name="secondlevel" loop=$xxx[firstlevel]} <li>$xxx[firstlevel][secondlevel].values</li> {/section} </ul> {sectionelse} No values {/section} {if $smarty.section.firstleve...

COCO/R PHP implementation

Anyone seen implementation of COCO/R compiler generator ported to PHP? Thanks. ...

[PHP] Problems after Untarring a Tar Ball

Hi, I am creating a back up system for a content management system. This backup grabs a copy of the database and all of the files in a 'userfiles' folder, tars it up and allows the client to download it. This works fine. I am having issues with importing the file. The files in tarball keep their location. On my Mac I am using XAMPP fo...

PHP image upload grey lines

Hello! I have a custom drupal module which saves uploaded files passed from the uploadify jquery plugin. All seemed well but some images are coming up with grey blocks in them. See: http://5oup.net/sites/default/files/360/5ouppic.jpg This is a user submitted image and I'm unable to reproduce the problem myself - as I understand it it...

how do i implement visual themes like ask.com?

how do i implement themes like ask.com to my websites? Should i be using Ajax, according to one of my friend it is done using JQuery? Also it will be a great help if someone can redirect me to a tutorial (asp.net and/or php). Thanks. ...