28, May 2012

I need help customizing the script )x - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: I need help customizing the script )x
« previous next »
Pages: [1] Print

Author Topic: I need help customizing the script )x  (Read 1957 times)
OMG!I am geek
**
Gender: Male
Posts: 55
366 credits
Members referred : 0


my day will come..


« on: Oct 28, 2006, 10:31:31 pm »

Hey Olaf!
I hope you're doing great man.
I'm trying to customize this Access User Class but I don't get quite right what I have to do.
Let me give you an overview of what I'm trying to do.. my idea is to make an script (possibly in only one file) that allows an administrator to update users profile.
(No password protection needed for now)

So I was thinking about removing line 6 on update_user_profile.php:
$update_profile->access_page($_SERVER['PHP_SELF'], $_SERVER['QUERY_STRING']); // protect this page too.

But how can I call an specific user data to edit? ¿perhaps ($_REQUEST['$user_name'])?..
Another way could be to modify admin_user.php to show full profile.

I hope you can help me man.. I know it'll be a piece of cake for you.
Greetings man!
« Last Edit: Oct 28, 2006, 10:35:34 pm by eliezer »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Oct 28, 2006, 10:37:17 pm »

Quote
I hope you can help me man.. I know it'll be a piece of cake for you.

right its not so difficult, but you have to change a lot of code (because of some protection)

I can't write the whole script for you if you start with by yourself I will help you...(with the problems) Wink

OMG!I am geek
**
Gender: Male
Posts: 55
366 credits
Members referred : 0


my day will come..


« Reply #2 on: Oct 28, 2006, 10:43:51 pm »

Sure, I will start the code man and thanks a lot for helping out. Smiley
This is a real community. Uhmm.. so, I will work all day on this script and I'll post here my doubts and everything as clear as possible.
Once again, thanks a lot for offering your help, you know, anything I can help you with I'm here.
I can translate your scripts to spanish or something to pay back the help.
Peace!
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Oct 28, 2006, 10:52:12 pm »

Sure, I will start the code man and thanks a lot for helping out. Smiley
This is a real community. Uhmm.. so, I will work all day on this script and I'll post here my doubts and everything as clear as possible.
Once again, thanks a lot for offering your help, you know, anything I can help you with I'm here.
I can translate your scripts to spanish or something to pay back the help.
Peace!
Success Cheesy

OMG!I am geek
**
Gender: Male
Posts: 55
366 credits
Members referred : 0


my day will come..


« Reply #4 on: Oct 29, 2006, 01:43:00 am »

I think I will start this script I'm telling you from zero.
I want to have a Search button that shows me data from a Specific User ID.
Users will have tons of data stored. It's for a medical laboratory.

First of all I'm trying to bring results from an specific search but it's not working. Sad

Here's the code:


<html>
<head>
<title> </title>
</head>


<!-- /* c&#243;digo desarrollado por eliezer escobedo           /*
      * prohibida su reproducci&#243;n. eliezer.iero@gmail.com   *
      */          www.eliezer.com.mx                        */ -->


<body bgcolor="#000000" leftmargin="30" topmargin="30" bottommargin="0" rightmargin="0" link="#FFFF00" alink="#FFFFFF"

vlink="#FFFF00">

<font face=arial size=2 color=white>
<?php
$id=$_REQUEST["id"];
if ($id = true)
{
   mysql_connect(localhost,root);
   $result = mysql_db_query("auto_mantenimiento","select * from auto_mtto WHERE identificacion = '" . $id . "'");
   while($row = mysql_fetch_array($result))
   {
   echo $row["hora_ejecucion"];
   mysql_free_result($result);
   }
}
if ($id = null)
{
echo "No hay datos";
}
?>

   <form name="search" id="search" ENCTYPE="multipart/form-data" action="show.php" method="post">
     Elegir un ID:<BR>
   <input type="text" name="id" value="">
   <input type="submit" name="submit" value="Buscar ID"><BR>
   </form>
</font>


This should show me the HORA_EJECUCION from a form through given ID value but for some reason it only shows me the ID #1. Frustrating. Sad
« Last Edit: Oct 29, 2006, 01:45:28 am by eliezer »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Oct 29, 2006, 10:13:42 am »

Is this about the data from the AU class? do you changes the field names?

OMG!I am geek
**
Gender: Male
Posts: 55
366 credits
Members referred : 0


my day will come..


« Reply #6 on: Nov 02, 2006, 01:55:54 am »

Nevermind man, it worked.  Grin
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=4600
Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP  >  PHP classes @finalwebsites.com  >  Access_user Class (Moderator: Olaf)
Topic: I need help customizing the script )x
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 05:32:41 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.