Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Moderated Pro PHP
|
Moderated Pro PHP This is a moderated forum for discussing advanced, professional level issues with PHP. Your posts will not appear until a moderator approves them. Posts that are not the right level for this forum will be responded to and you'll be asked to post them in the [url="http://p2p.wrox.com/sql-server-2000-20/9"]Beginning PHP[/url] forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Moderated Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 17th, 2009, 08:42 AM
Registered User
 
Join Date: Apr 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Angry Need help with a update script

Im working on a little script that edits a supervisor conneted to a department.

$a_ansvarlig is the Department
$n_ansvarlig is the Supervisor

What i mean is that:
if Larry is attached to Finance and his $visibility is 1
then when im editing Bob [previously attaced to CustomerService] and setting the value $a_ansvarlig to Finace then i should get an error saying:
$feilmelding .= 'A user is already connected to ' . $a_ansvarlig . '<br>';
$feilmelding .= 'Set users visibility to OFF in order to continue<br>';


$visibility has two values: 1 for ON and 0 for OFF

The problem is that the script is not working.
Can someone please have a look at it and tell me what is wrong?

http://aftab.watapage.com/DMC.rar





Similar Threads
Thread Thread Starter Forum Replies Last Post
Change the order of client script / server script rupen ASP.NET 2.0 Basics 3 April 16th, 2009 01:41 PM
update multiple columns in an update statement debbiecoates SQL Server 2000 1 August 17th, 2008 04:01 AM
Partial page update with Script call backs prak_p2p_wrx BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 March 14th, 2008 05:38 AM
Auto Update of script file.... rupen Javascript How-To 2 November 17th, 2006 11:03 AM
Call and run CGI script from a PHP script ... how? dbruins BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 June 10th, 2003 03:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.