Jump to content

Problems with PHP Example Vehicle


Sven70

Recommended Posts

Hope that somebody can help me!

 

I am new with PHP, 3 days!

I got a work, which I can at the moment not full solve!

I got a part of UML for vehicles!

Now I should first update the UML with a few missing methods (this I have done)!

Now I should create the PHP classes from this with acces to a SQL database!

Her I have now the problems.

I am not sure which functions I really must use and how the access the is.

 

Is somebody who can help me?

When yes, I could send the files which I have till now, so that we can discuss!

 

Thanks,

Sven

 

Link to comment
https://forums.phpfreaks.com/topic/118798-problems-with-php-example-vehicle/
Share on other sites

This is the original UML I got.

 

My work would be now to add necessary methods to the UML.

This I have done in Vehicle and in VehicleOptions.

Then I created the 4 PHP classes, but till now with empty methods, because I am not full sure, what all to do there.

 

As I sayed, I am now the third day in PHP and do not full know till now.

What I also should dois, access the database with Zend Framework with Active Records.

 

Sven

I upload now also my 4 classes which I short created.

 

It would be nice if somebody could have a look and adapt what I missed.

Or explain what I must do!

Short explanation what I must do:

I must create two MySQL tables, one for Vehicle, one for VehicleOptions, based on the UML attached earlier.

Till now I have not done this, because I did not get running MySql. I will try to install and run it again tomorrow.

What I also must do is, access the database with Active Records from ZendFramework.

This I figured till now also not out, how to do this.

When somebody could explain or show how to do, or where I could find detailed descriptions, [/img] would be also nice.

 

Thanks,

Sven

 

 

[attachment deleted by admin]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.