22, November 2008

I need help customizing the script )x - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ 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 1385 times)
OMG!I am geek
**
Gender: Male
Posts: 55
366 credits
Members referred : 0


my day will come..


« on: Oct 28, 2006, 11: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, 11:35:34 PM by eliezer »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Oct 28, 2006, 11: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


Last blog : Just a better Internet portal provided by Google
OMG!I am geek
**
Gender: Male
Posts: 55
366 credits
Members referred : 0


my day will come..


« Reply #2 on: Oct 28, 2006, 11: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: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Oct 28, 2006, 11: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


Last blog : Just a better Internet portal provided by Google
OMG!I am geek
**
Gender: Male
Posts: 55
366 credits
Members referred : 0


my day will come..


« Reply #4 on: Oct 29, 2006, 02: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 Visit through proxy                        */ -->


<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, 02:45:28 AM by eliezer »
Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6440
39464 credits
Members referred : 374


It's time to use PHP5!


« Reply #5 on: Oct 29, 2006, 11:13:42 AM »

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


Last blog : Just a better Internet portal provided by Google
OMG!I am geek
**
Gender: Male
Posts: 55
366 credits
Members referred : 0


my day will come..


« Reply #6 on: Nov 02, 2006, 02: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....

Topic sponsors:
Get a permanent link here for $1.99!


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?
Nov 22, 2008, 01:41: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!


Forum Statistics
Total Posts: 37.736
Total Topics: 7.650
Total Members: 4.396
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: thomas09

35 Guests, 5 Users online :

12 users online today:



Readers

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