TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 06-26-2008, 05:31 PM   #1 (permalink)
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Application Error New Problem - Help is needed Ty in adv!

LOOK DOWN FOR HELPING ME ON A OTHER PROBLEM





PHP Code:
<?php
error_reporting
(E_ALL & ~E_NOTICE);
include(
"db_connect.php");

$sql "SELECT * FROM `users` WHERE `id` = '".$id."'";
                
$query mysql_query($sql) or die(mysql_error());
        while(
$sel_table mysql_fetch_array($query)) 
        {
  print 
$sel_table['username'];

}
    
$net "UPDATE `users` SET `username` = '".$username."', `password` = '".$password."' WHERE `id` = '".$id."'";
    
$web_result mysql_query($net) or die(mysql_error());


?>
no errors are made i am trying to do print $sel_table['username'] or even post the id or something but for some reason it do not print..

so please tell me whats wrong :S

//Code,-No flame please ;)-

Code:
CREATE TABLE `users` (
  `id` int(11) NOT NULL auto_increment,
  `username` varchar(30) NOT NULL,
  `password` varchar(40) NOT NULL,
  `email` text NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

LOOK DOWN FOR HELPING ME ON A OTHER PROBLEM

Last edited by codefreek : 06-26-2008 at 09:56 PM. Reason: Look down for new problem!
codefreek is offline  
Reply With Quote
 



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 08:25 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design