Forgot Password / Register
Site Statistics
Total Members: 520
Total Tutorials: 242
Newsest User: 8884244477
Todays Unique Hits: 469
0 Users 22 Guests Online
Forum Index » PHP + MySQL » A Forum
Posted on Tuesday 29th May 2007 at 07:28 PM
MCP
templates/default/images/noavatar.png's Avatar
Junior Member
Is there a script being made for the RMB User System? If so please let me know when so I may use it.

Or let me know where I can get one to work with the RMB User System.

Thanks! :)
Posted on Tuesday 29th May 2007 at 07:51 PM
Diablosblizz
templates/default/images/noavatar.png's Avatar
Senior Member
It could be quiet simple actually.

I would start to make one if I know how to do the &id=77 part. I know how to get the ?topic but the and screws me up.

Anybody have any idea?
Posted on Tuesday 29th May 2007 at 08:42 PM
DanielXP
avatars/1.png's Avatar
Senior Member
PHP Code
1
2
3
4
5
6
<?
$id 
= (int)$_GET['id'];
echo 
$id;
//This will get the &id=* and echo the number out.
//(int) is to stop SQL injections on numbers.
?>


PHP Code
1
2
3
4
5
<?
if(isset($_GET['topic'])){ 
//This is the ?topic URL
}
?>


I would make a PM system but im busy coding V4 ;)
Posted on Tuesday 29th May 2007 at 08:48 PM
SkillMaster
templates/default/images/noavatar.png's Avatar
Senior Member
[php]
<?php
switch($_GET[page]) this would make it ?page=
{
default:
break;

case 'write': this would make it ?page=write.
break;
}
?>
[\php]

You can change them, i found this is the easiest way.
Posted on Tuesday 29th May 2007 at 09:27 PM
SkillMaster
templates/default/images/noavatar.png's Avatar
Senior Member
PHP Code
1
2
3
4
5
6
7
8
9
10
11
<?php
switch($_GET[page]) this would make it ?page=
{
default:
break;

case 
'write'this would make it ?page=write.
break;
}
?>


Sorry
Posted on Tuesday 29th May 2007 at 09:39 PM
Diablosblizz
templates/default/images/noavatar.png's Avatar
Senior Member
To Daniel:

I don't understand:

PHP Code
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
switch($_GET['topic']){ 
$_GET['id']; {

default:
blah blah
break;

case 
'dude':
blah blah
break;
?>


How would I get how it gets the number (unless thats from mysql)
Posted on Tuesday 29th May 2007 at 11:20 PM
DanielXP
avatars/1.png's Avatar
Senior Member
PHP Code
1
2
3
4
5
6
7
8
9
10
11
12
<?php
switch($_GET['topic']){ 
$id = (int)$_GET['id']; 
echo 
$id;
default:
echo 
"blah blah";
break;

case 
'dude':
echo 
"blah blah";
break;
?>
Posted on Wednesday 30th May 2007 at 05:20 AM
SkillMaster
templates/default/images/noavatar.png's Avatar
Senior Member
Diablos use mine much easier.
Posted on Wednesday 30th May 2007 at 07:28 PM
MCP
templates/default/images/noavatar.png's Avatar
Junior Member
Ok This has not meaning at all to me. lol I do not understand, Daniel. Where is the script you posted getting the threads and posts from? Don't I need to make the forum first?
Posted on Wednesday 30th May 2007 at 07:42 PM
Diablosblizz
templates/default/images/noavatar.png's Avatar
Senior Member
MCP:

1. Maybe you should start to learn a bit of PHP before asking help.
2. You would have to use mysql_querys to post the information into a table, and again to get the ID and name and message.

SkillMaster:

1.I know how to do that, but I am guessing that the &id=77 is the mysql?

I just don't understand how he got the &id