Well, I Need a system where our Radio Managers can add a DJ, and it adds it to the staff page, and I Need A Rare Value System. Where rare valuests can Edit the values, can any 1 make them![]()

Well, I Need a system where our Radio Managers can add a DJ, and it adds it to the staff page, and I Need A Rare Value System. Where rare valuests can Edit the values, can any 1 make them![]()
Yeah i can make a rare values system. Coz i cba to do the other one...
Shall i PM you one of post it?
i mean "or post it" lol
oh rite lol, any of them, up to u![]()
Ok. Please note i havn't checked it
Also. I detest you for using a techtuts user system :@
This is coding off the top of my head. No positioning just plain pages etc.
Now.... Providing you know how to add databases and tables to mysql please do the following:
Do a Database called rares
Then please add a table called values
In that table have these rows:
Name
Image
Value
Just use your db file you got. It'll do fine i reckon.
Righteo then, so we're not using sessions, we're using cookies :@ #
Heres the display page:
PHP Code:<?
ob_start();
include("config.php");
$values = mysql_query("SELECT * FROM values");
$final = mysql_fetch_array($values);
echo ("
<CENTER><B>Rare Values</B></CENTER>
Name: $values[name]<BR>
<img src=$values[image]><BR>
Value: $values[value]<BR>
");
?>
Now thats the display page... Please note that the image section in the database is the name of the file. Please change the URL in the display page....
Heres the insert page... just create a new user level for Rare Values Reporters? Coz i cba to code another user system :p
PHP Code:<?
ob_start();
include ("config.php");
if (!$logged[username] = '5'){
echo ("You are not authorised to view this page");
}
else
{
if ($_POST[submit]){
$name = $_POST[name];
$image = $_POST[image]
$value = $_POST[value];
$insert = ("INSERT INTO values (name, image, value) VALUES ('$name,'$image','$value')
}
else
{
echo ("<FORM method=POST name=submit>
Name:<input type=text name=name><BR>
Image:<input type=text name=image><BR>
Value: <input type=text name=value><BR>
<input type=submit>
");
}
}
?>
And thats it mate i think lol.. I probs made a few muffups....
Rep? rofl
TELL ME ANY ERRORS PLZ LOL
Last edited by Jackboy; 15-09-2006 at 09:23 PM. Reason: Forgot to add the bit bout errors
can u make the database, so i can put it in, Im not good with making them, only editing themOk. Please note i havn't checked it
Also. I detest you for using a techtuts user system :@
This is coding off the top of my head. No positioning just plain pages etc.
Now.... Providing you know how to add databases and tables to mysql please do the following:
Do a Database called rares
Then please add a table called values
In that table have these rows:
Name
Image
Value
Just use your db file you got. It'll do fine i reckon.
Righteo then, so we're not using sessions, we're using cookies :@ #
Heres the display page:
PHP Code:<?
ob_start();
include("config.php");
$values = mysql_query("SELECT * FROM values");
$final = mysql_fetch_array($values);
echo ("
<CENTER><B>Rare Values</B></CENTER>
Name: $values[name]<BR>
<img src=$values[image]><BR>
Value: $values[value]<BR>
");
?>
Now thats the display page... Please note that the image section in the database is the name of the file. Please change the URL in the display page....
Heres the insert page... just create a new user level for Rare Values Reporters? Coz i cba to code another user system :p
PHP Code:<?
ob_start();
include ("config.php");
if (!$logged[username] = '5'){
echo ("You are not authorised to view this page");
}
else
{
if ($_POST[submit]){
$name = $_POST[name];
$image = $_POST[image]
$value = $_POST[value];
$insert = ("INSERT INTO values (name, image, value) VALUES ('$name,'$image','$value')
}
else
{
echo ("<FORM method=POST name=submit>
Name:<input type=text name=name><BR>
Image:<input type=text name=image><BR>
Value: <input type=text name=value><BR>
<input type=submit>
");
}
}
?>
And thats it mate i think lol.. I probs made a few muffups....
Rep? rofl
TELL ME ANY ERRORS PLZ LOL
well..
i dunno how coz i never needed to do em..
Just go on techtuts and edit lol
I could make both of them for a price.
Want to hide these adverts? Register an account for free!