Archive for September, 2009

PHP programming question, how to do this?

Hello,

I’m working on a PHP/MySQL database project where people register for a conference, sign up for classes, and the system spits out roster reports, etc. Everything is working fine.

The system counts the # of people registered for each class. It also calculates the seats available. My bosses wanted to know if it were possible to take the number of seats available, and for each one of those empty seats add a blank line for late comers to sign in. How can I code this? It should be really simple, but it is not coming to me.

Thanks.

$blank_lines = $number_of_seats – $number_of_bookings;
$txt = "<form …. >";
$txt .= "<table>";
for ($i=0; $i < $blank_lines-1; $i++)
$txt .= "<tr><td><input type=\"text\" name=\"free".$i.\"></td></tr>";
$txt .= "<tr><td><input type=\"submit\" … ></td></tr>";
$txt .= "</table>";
$txt .= "</form>";
echo ($txt);

PHP programming help using forms?

When I run this on my browser I find out that after clicking submit the code I wrote would show up. Here’s the program I wrote

At welcome.html:
<html>
<body>
<form action="welcome.php" method="get">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
</body>
</html>

At welcome.php:
<html>
<body>
Welcome <?php echo $_GET["name"]; ?>.<br />
You are <?php echo $_GET["age"]; ?> years old!
</body>
</html>

so when I run this, welcome.html works right but after pressing submit, rather than a response the welcome.php code is returned
What is wrong with this program?
I have installed all the necessary software for php and have built and run previous php programs sucessfully.
I have installed all the necessary software for php and have built and run previous php programs sucessfully.

that should work, if you are getting back the php then php is not configured properly, at least not where that file is located.

But here is a very simple test, save this in the same place as a .php file, see what it gives back. If it doesn’t give you info on your php installation, it’s not working.

<?php
phpinfo();
?>

Hello I need some help with installing PHP program. I have it unzipped into it’s own directory C:|php?

What do I do with the php.ini? I took the recommended one that they offered in the zip file. But do I put it into c:\php or elsewhere? Do I change php.ini or leave it as is? This is php 5, the latest version.

For beginners, I suggest you to download and use Xampp. It is a very successful project which helps people who have difficulty installing PHP MYSQL and APACHE.

It is bundled with Apache and Mysql.

http://www.apachefriends.org/en/xampp.html

Installation is extremely simple. All you need to do is run the .installation file and php, apache and mysql will be automatically configured and installed.

Otherwise:

Follow this tutorial below if you want to learn how to install PHP without XAMPP help.

http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml

PHP ? am a newbie in php programming and i have this problem

I open the macromedia and select php, when i paste the following code <?php

echo "Hello, world!";

?>
between body> it does not display the hello world, instead , it displays an icon showing php only in design view . what the problem ?

Macromedia Dreamweaver can’t execute server side php code so it just displays the ? to represent where it is in your HTML. When you upload this to a web server and display it your should see "Hello, world!".

what website where i can download a PHP Horoscope codes?

cos i got a school project and its PHP,, and its hard cos it deals with the dates users must input a date of there birthdate and the program PHP 5.0 should decode it and show the certain zodiac sign og the user, Like Horoscope .. pls tell me what site i will go…

Check the site bellow scripts area for the PHP language:

http://www.hotscripts.com/PHP/index.html

Sarah Palin created a program that paid people $150 to bring in the left forelegs of wolves?

SHOT FROM AIRPLANES!

what do you think about this?

http://www.defenders.org/newsroom/press_releases_folder/2007/03_27_2007_judge_asked_to_shut_down_wolf_bounty_program.php

I think it is disgusting.. especially since wolves are declining and SHOULD be put back on the endangered species list.

Ready made auction PHP script or Custom made? Difference?

what is the difference from buying a ready made auction PHP script (like PhpPRObid.com) to hiring a programming company to do it for you???

Would this affect the quality of it? I have found several scripts that fullfil all my requirements for an auction website, but im not sure what is best?

In the long term, does it make any difference? or would i face copywrite problems if i needed to edit or add to a php script?

I am not a programmer, so please try to explain in detail. Thanks in advance!

Before you try either one of those, have a long look at Drupal, and specifically, the e-Commerce module, which includes the ability to run your own auctions (along with a lot of other things). PHP/MySQL based, open source, and free.

how to make something look downloaded on a web page in php programming?for ex. photos,file?

how to write the code for this?or what is the code?

I can’t understand your question.

Who Knows PHP programming and willing to help a site in that area?

I don’t know whether it is allow here, but I am the founder of SGEduLab.com which provide notes for GCE O level and N level. We are trying with a new concept to help more students and we name the project "BETA 2". However, we do not really know php programming so we are asking for help. Who willing to help us?
I don’t know whether it is allow here, but I am the founder of SGEduLab.com which provide notes for GCE O level and N level. We are trying with a new concept to help more students and we name the project "BETA 2". However, we do not really know PHP programming so we are asking for help. Who willing to help us?

Note: We want to re-programme the whole website to suit our needs.

About freelancer, as long as he/she is committed, and the price is not that high, we can consider.

<geek>

I notice you are using Moodle. Will that not allow you to do what you wish? You could check out the other online e-learning creation stuff like WebCT. However, unless you’re willing to pay a freelancer, for example, I don’t think you’re going to get that sort of help for free.

Very nice site though, I like what you’re trying to do. I would help but my PHP has not evolved enough for me to be confident in programming your site.

</geek>

What is the average time to become a PHP programmer?

Recently I came to know about the huge opportunities in php programming. I have already started taking its tutorial and am looking for 3 months ahead to get into freelance assignments with the same. Is it a reasonable time to be in? I had training in C++ and Java earlier. I am looking for form validation in particular. Are there any opportunities other than this? * 1 year ago

It takes as much time to become a PHP programmer as it takes you to learn how to program in php. However long that period of time is depends on your ability and drive to learn.