Saturday, May 24, 2008

In how many ways we can retrieve the data in the result set of MYSQL using PHP?

Bake -app in C:\easyphp\www\cakephp\app (y/n)
[y] > y


Baking...
---------------------------------------------------------------
Name: app
Path: C:\easyphp\www\cakephp\app
---------------------------------------------------------------
[M]odel
[C]ontroller
[V]iew

What would you like to Bake? (M/V/C)
> C
---------------------------------------------------------------
Controller Bake:
---------------------------------------------------------------

Fatal error: Call to undefined function mysql_connect() in

C:\easyphp\www\cakeph
p\cake\libs\model\dbo\dbo_mysql.php on line 100

---------
I m using window and I need help now please :(
My site is working and it s connnected to mysql. :) I want to use bake.php to generate pages automativaly (I mean- models- views and controllers ) Please help me! It seems like my bake.php cannot connect to mysql.
I need help now ....:( Help Please :(

I m currently stuck deciding between 2 great free hosts!
Here s the breakdown:

Host # 1:
- short subdomain (about 3 char. long)
- cPanel w/fantastico
- PHP and Perl Support
- Unlimited Sub-domains- E-mail- & MySQL Databases
- Somewhat inactive owner
- somewhat active hostees
- very slow response (I posted a question at the forum and I only got a reply from the owner 10 days later)
- not responsible for back-ups
- owner has to review apps first
- reseller at surpasshosting

HOST # 2:
- long subdomain (about 14 char. long)
- No cPanel but has Webmin control panel instead
- Unlimited space and bandwidth
- Up to 2 subdomains (more upon request) and up to 5 websites
- PHP 5.2- Ruby on Rails 1.2- MySql 5.0- phpMyAdmin- etc.
- regular offsite back-ups
- Very active owner (I sent 2 questions through email to him already and responded less than 30 minutes!)
- Somewhat inactive hostees
- very selective when it comes to hostees (But I fit)
- own server
I m not linking to the sites because I don t want to attract applications from noobs and abusers if you know what I mean...

The site I m planning to make is a personal site and portfolio/fanlisting collective. I might buy a domain name and my own hosting account next year when I get my online payment stuff set-up. But for now- free-hosting will do.

What do you guys think? Any opinion is much appreciated.

i have create a php to connect to my database- the php will display people salary and i want to add a total in below to count all the people s salary. How can i do that?

I would prefer a free site for now so I can experiment before committing. I am designing a site with a forum.
It has to support PHP and Mysql though. I did post a similar question earlier but it did not include PHP and Mysql.

Thanks

No comments: