Jump to content

Recommended Posts

maybe make everything in 1 file?

 

<?php
$group = $_GET['group'];
$diff = $_GET['diff'];
if ($group == "1") {
if (empty($diff)) { // show the levels }
elseif (!empty($diff)) { // show the things in the selected level }
} elseif ($group == "2") {
// repeat what you did in group 1 code
}
?>

link=topic=188232.msg843837#msg843837 date=1205939598]

maybe make everything in 1 file?

 

<?php
$group = $_GET['group'];
$diff = $_GET['diff'];
if ($group == "1") {
if (empty($diff)) { // show the levels }
elseif (!empty($diff)) { // show the things in the selected level }
} elseif ($group == "2") {
// repeat what you did in group 1 code
}
?>

 

 

Sorry, I'm kind of a PHP newb so can you elaborate on that at all... what would I do with that code and where would the link names go?

What you really want is either an AJAX implementation or JavaScript.

 

What you're asking is not trivial.

 

Please ask concise questions about what problems you're having -- the freelance section is over -> if you don't want to write it yourself.

Its more a question of DB Design and PHP integration, this can be done without Javascript/Ajax (But using Ajax will prevent page refreshes)

 

As for the pages from the website, it's all the same script

but some pages have 2 paramaters and others have 3.

 

I want somone to click on one category and have it show other categories without having to make a bunch of different html pages.

 

How do I go about doing this? What would the code be like?

 

Is very vague. PHP is all about being dynamic content. I think u shud start with the tutorials on PHP

and start learning. U will soon get to the MySQL and GET/POST features.

 

it all depends on yer current level of programming with php.

 

Its more a question of DB Design and PHP integration, this can be done without Javascript/Ajax (But using Ajax will prevent page refreshes)

 

As for the pages from the website, it's all the same script

but some pages have 2 paramaters and others have 3.

 

I want somone to click on one category and have it show other categories without having to make a bunch of different html pages.

 

How do I go about doing this? What would the code be like?

 

Is very vague. PHP is all about being dynamic content. I think u shud start with the tutorials on PHP

and start learning. U will soon get to the MySQL and GET/POST features.

 

it all depends on yer current level of programming with php.

 

 

I've had experience with the GET/POST functions somewhat.

I'm sorry for being vague.

What I mean is that when I click on a category, I want links to appear on the next line based on the category that was clicked. If I were to do this with HTML I would have to make a bunch of different pages and it would be a huge hastle, but i'm starting to think it would be easier then figuring out how to do it in PHP....

Someone already did. You need to use javascript if you want to have this stuff generated dynamically on the fly. Its not a php issue. If you want to do it in php it will require a page reload. If you are ok with that, then set up a check at the top of the page to see if anything has been selected from the first box. If it has, then have it output the applicable data beside that box.

 

If you understand what I just said, then start working on it, and when you have some troubles come back here and ask for help. If you don't understand what I just said, then you don't know how to do it, and you would be best off either learning php and AJAX basics, or going to the freelance section of the forum and seeing if you can find someone to do it for you.

Someone already did. You need to use javascript if you want to have this stuff generated dynamically on the fly. Its not a php issue. If you want to do it in php it will require a page reload. If you are ok with that, then set up a check at the top of the page to see if anything has been selected from the first box. If it has, then have it output the applicable data beside that box.

 

If you understand what I just said, then start working on it, and when you have some troubles come back here and ask for help. If you don't understand what I just said, then you don't know how to do it, and you would be best off either learning php and AJAX basics, or going to the freelance section of the forum and seeing if you can find someone to do it for you.

 

Thank you.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.