Home » Web Development

Form validation

Question:
Hi! I am working on a Customer Database form which needs to be filled-up by my users while creating a new customer. The form is working fine. However, there is a new request where we need to capture price offered to our customers. Out of the two/three options, they need to chose one option and [...]

html template with css

Question:
i am looking for shopping cart template in just simple html but with good layout or design with css. anybody knows where i can find them? since i already have backend to tie to, so just need html portion of it. Not ASP or PHP or CGI or .NET template. Thanks
Solution:
Here are some of the [...]

Redirect user to upgrade browser

Question:
Hi,
Anyone for a php code snippet to detect if the user is using IE6 and prompt the user to upgrade his browser.
thank you
Solution:
try this,
<?php
//print ($_SERVER['HTTP_USER_AGENT']);
$using_ie6 = (strpos($_SERVER['HTTP_USER_AGENT'], ‘MSIE 6.’) !== FALSE);
if ($using_ie6)
{
echo “You are using”;
}
else
{
echo “You Not Using IE 6, please upgrade link”;
}
?>

FLEX + Flash file + Attachmove

Question:
I have a FLEX project, and am using SWFLoader to load a SWF, is it possible to use attachMovie – to add another movie to the SWF file use code in FLEX?
Solution:
I don’t really understand the question, but attachMovie is AS2 and Flex only allows you to use AS3…
CyanBlue

Zend Class not found, PHP Error

Question:
I’m trying to run an RSS zend class, but it says the class is not found.
My server is Ubuntu 9.10 x64 , I had the same php file on my another server almost identical and I don’t get this error, I can’t figure out how to enable these zend classes….
Here’s the error I get:
Fatal error: [...]

Overlapping elements – CSS (Z-index) ?

Question:
Hey, I have some text I’d like to appear on top of another element. You can see it peaking out at the top but is covered with a black bar element: http://www.stunnazine.com/
I tried using the following CSS code and playing around with different values but nothing is working. This is in Wordpress and uses much [...]

Open Source Financial Portfolio software

Question:
Hello,
I have been tasked at work with finding an open source or even closed source for that matter of a portfolio management software.  By portfolio I mean financial so it should be able to do stocks, positions, and all that kind of funk stuff.  It can be php or .net
Solution:
ref. http://www.hotscripts.com/category/php/scripts-programs/financial-tools/

How to sum a calculated PHP column?

Question:
Only prints last $formattedc instead of a grand total.  Please see code.
There are 4 to 5 results in this query and it only gives me the last result of $formattedc instead of a grand total of the 4 to 5 results.
Code Snippet:
<?php
function arraySumRecursive($array)
{
$totals = 0;
foreach(new recursiveIteratorIterator( new recursiveArrayIterator($array)) as $num)
{
$totals += $num;
}
return $totals;
}
require_once(‘Connections/localhost.php’);
mysql_select_db($database_localhost, $localhost);
$sql = [...]

Create XML file via PHP MySQL

Question:
Hi,
I want to create an xml file as shown below via PHP, but need to add the photos from my database instead of hard coding, is there an easy way to do this?
<?xml version=”1.0″ encoding=”utf-8″?>
<slide_show>
<options>
<background>#FFFFFF</background>
<interaction>
<rotation>mouse</rotation>
<view_point>mouse</view_point>
<speed>20</speed>
<default_speed>20</default_speed>
<default_view_point>20%</default_view_point>
<reset_delay>30</reset_delay>
</interaction>
</options>
<photo href=”http://www.test.com.au” target=”_blank”>./images/website01.jpg</photo>
<photo href=”http://www.test.com.au” target=”_blank”>./images/website02.jpg</photo>
<photo href=”http://www.test.com.au” target=”_blank”>./images/website03.jpg</photo>
<photo href=”http://www.test.com.au” target=”_blank”>./images/website04.jpg</photo>
</slide_show>
MySQl connection and query here..
do {
$imagesml = ereg_replace ( ‘.jpg’, ‘_sml.jpg’,  $row_view_photos1["image1"]);
$website = [...]

Login Page Working Sporadically

Question:
The form at https://www.webloginproject.com/login-project/phphtml/login.php is not working reliably.
It is the same code and database as the very plain form at https://www.webloginproject.com/login-project/php/login.php.
Userid: test
Password: password
Is a valid account.
Both pages collects debug information in a string variable which is output at the bottom of the page.
If you try the second link (to the plain page) first you will [...]