Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

website is done in php and I don't know php

Status
Not open for further replies.

rhondabrabbin

Technical User
Nov 11, 2002
87
Help I started a new job and was given the responsiblity of editing the company website , it is done in php and I don't know php, I know html, a little Javascript, Flash actionscript, Dreamweaver etc. but I don't know anything about php. I need to update this page and nothing is working, what the heck is ?id=HKJLiTet ?
Any help would be appreciated
 
Because I'm starting to learn PHP I'd love to help you, and it is good practice for me to retype my new knowledge. Anyone feel free to correct me if I'm wrong.

?id=HKJLiTet ?

This is a variable being passed from one php webpage to another php webpage in the url.

Sending a variable from one page to another can be done many ways, and using a url is one of these many possible ways.

The second page will look at the URL and depending on its content will display different things.

Micky


Sopht Solutions

Building Long-Term
IT Relationships. Everyday.
 
How about checking out the FAQs for this forum?

Where can I learn about PHP & MySQL? (faq434-1187)
where can i find tutorials on php (faq434-4165)

Other than that, just remember PHP is a server-side scripting language. Sounds like you've mostly dealt with HTML (the output of a server-side script) and client-side scripting. Watch out you don't confuse them :)

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
ACM Code of Ethics and Professional Conduct, p.2.6:
...
A computing professional has a responsibility to request a change in any assignment that he or she feels cannot be completed as defined. Only after serious consideration and with full disclosure of risks and concerns to the employer or client, should one accept the assignment. The major underlying principle here is the obligation to accept personal accountability for professional work. On some occasions other ethical principles may take greater priority.

A judgment that a specific assignment should not be performed may not be accepted. Having clearly identified one's concerns and reasons for that judgment, but failing to procure a change in that assignment, one may yet be obligated, by contract or by law, to proceed as directed. The computing professional's ethical judgment should be the final guide in deciding whether or not to proceed. Regardless of the decision, one must accept the responsibility for the consequences.

However, performing assignments "against one's own judgment" does not relieve the professional of responsibility for any negative consequences.

No comments(?)...
 
?id=HKJLiTet is a method of passing information back to the PHP Scrip so that it can react in some way based on the type of information passed back.

I am guessing "HKJLiTet" is some kind of product id and that somewhere there is a database which contains the information for all your products.

It's impossible to guess how the site is coded and how it works but the chances are you'll have a database somewhere with all your product information in it. This is most probably the information displayed on the page.

So, look for a database, look for a products table and look for the product id "HKJLiTet". You should then see the text/html comprising the description which you should be able to change.
 
This is to that IT managment guy or person, as far as the website that I had hoped to take over, I have an outside webdesign company (who created the site in php to begin with) to fall back on for any service I need. I am just disappointed that I can't fully take it over. But I will learn php and take full control of it. But hey you have to start learning something new somewhere and forums like this is where I have learned a lot in the past so that is why I originally posted here!
 
As a general tip, Don't touch anything between the tags of:

<?php

and

?>

...until you get a basic understanding of PHP.

Everything else is plain old HTML.

- - picklefish - -

Why is everyone in this forum responding to me as picklefish?
 
well, if you see anything after the question mark in the URL that means ?variable=value&variable=value etc.

This is very useful and clear when you think little about it - it allows you to pass some variable to various pages and adjust the page content according to some needs.

if you have this:
Code:
index.php?module=main
then you have the variable $module available in your index.php script and it contains the &quot;main&quot; value (this is of type string). Variables are also in Javascript so you should know something about them. Variables in php always begin with $ sign. As Jimoblak said, the php code can be found between <?php and ?> tags (sometimes only <? can be used as a php beginning tag - depends on settings in php.ini). Everything outside PHP code is simple HTML.

In general the PHP code executes on the server and produces HTML as an output which is sent to the client so PHP offers you possibilities to work with databases, cookies, sessions, files on the server etc. try for more information ;-)
 
Get yourself a Wrox book on php4, perhaps download php for your Pc and get going. Try to avoud stuff like learn this in 24 hours, they run out of steam.
The ins and outs of whether you should take the job or not are for you and you only, but if you took the job becuase you needed a job well hey !!, I'm sure we would all do the same.
PHP ain't hard, usign some of the APIs are hard but standrdstuff like ?aa=fred in a URL is really basic stuff you need to get a grip on. The synax is but like C
Anyhow I've always found wrox books good, get php insatalled with mysql as well if you have the space, stay in over the weekend and get up to speed !!!

kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top