110mb.com Forum
News: Currently none. But refer to this news before you post an error, maybe it's already being fixed Wink
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 05, 2008, 01:27:19 AM


Login with username, password and session length


Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: code ?page/action/what ever else= extension to somewhere  (Read 213 times)
The Melancholy Of 110mb.com
Loyal 110MB Member
*******
Offline Offline

Posts: 3722


I'm Watching You!!!


WWW
« on: September 06, 2008, 09:25:50 AM »

Ok all i would like to know as i have been killing my self trying to find answers or what not i tried W3 phpfreaks and PHP main site... i cant find this type of code any were... if some one knows were a tutorial any where about this it would be greatly appreciated thanks...

compltely confused whith this one cry ill still keep looking my self but if any one know a tutorial please post it thnks ahead of time
Logged





golfdeals
Hyper-Active Member
***
Offline Offline

Posts: 122



WWW
« Reply #1 on: September 06, 2008, 10:13:51 AM »

Quote
Ok all i would like to know as i have been killing my self trying to find answers or what not i tried W3 phpfreaks and PHP main site... i cant find this type of code any were... if some one knows were a tutorial any where about this it would be greatly appreciated thanks...

compltely confused whith this one cry ill still keep looking my self but if any one know a tutorial please post it thnks ahead of time

OK. What are you looking for.

Quote
i cant find this type of code any were

What type of code?

We need to know what your problems is and what are looking to try to do.   With out that information no one can help you.
Logged

banancanard
Hyper-Active Member
***
Offline Offline

Posts: 376


SELECT * FROM users WHERE clue > 0; 0 rows


WWW
« Reply #2 on: September 06, 2008, 10:32:47 AM »

are you talking about the variables in the url?

eg. index.php?action=post;topic=35632.0;num_replies=1

action topic and num_replies are all variables.  If this is it I can go farther if not...  rolleyes
Logged



Programming is 10% science, 20% ingenuity, and 70% getting the ingenuity to work with the science.
The Melancholy Of 110mb.com
Loyal 110MB Member
*******
Offline Offline

Posts: 3722


I'm Watching You!!!


WWW
« Reply #3 on: September 06, 2008, 10:45:28 AM »

ok what im looking for is something like this: blabla.php?action=9238 or something allong that lines (tip.it has a ?page=3487 style) as i need it for accessing the DB with a diffrent number possible every time which i got done... all i need is to get that number (with out putting it in the code ~currently using %s to recall it~) and transfering it to another page which will load the data for that DB table... something like clicking on my profile and viewing it kinda deal...
Logged





robleyd
Loyal 110MB Member
*******
Online Online

Posts: 4550

Ask before you PM


« Reply #4 on: September 06, 2008, 10:48:17 AM »

blabla.php?action=9238

In blabla.php that value will be available in $_GET['action']
Logged

News Flash:  Microsoft acquires Electrolux, makes extensive design revisions.  Finally releases a product that doesn't suck.

No electrons were harmed in the creation, transmission or reading of this post. However, many were excited and some may well have enjoyed the experience.

The difference between a bagpipe and a trampoline is that you have to take your shoes off to jump on a trampoline.
The Melancholy Of 110mb.com
Loyal 110MB Member
*******
Offline Offline

Posts: 3722


I'm Watching You!!!


WWW
« Reply #5 on: September 06, 2008, 12:54:12 PM »

well my mom is complaining and these few min are going to be the only time im on for the rest of the night... any how here is the code which is currently in the web page...

Code:
<?php
include('config.php');
include(
'opendb.php');
$result = mysql_query("SELECT User_ID, T, User_ID FROM member");
while (
$row = mysql_fetch_array($result, MYSQL_ASSOC)) {
    
printf("<table><tr><td> ID: %s</td>            <td>Stats: %s</td>             <td>Do this One: <a href='?action=%s'>Yes</a></td></tr><br />", $row["User_ID"], $row["T"], $row["User_ID"]);
}

mysql_free_result($result);
?>

i will toy around with the $_GET function tommorow before i go out but if there is another way to do it going based on this current code that would be great...

and i also found what the ?action= is it is a part of an array function ill also look into that tommorow hopefully undecided
Logged





Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

  Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC

Theme by Dilber MC | Using SEO4SMF Mod

All content on this forum (especially posts) is copyright property of 110mb & the member
who wrote the post. So if you wish to steal anyone's post on this forum, you'll wish you
were dead because our lawyers will sue your ass!