•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,547 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,360 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 275 | Replies: 4
![]() |
•
•
Join Date: Oct 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
language Syntax (Toggle Plain Text)
<?php $username="151296"; $password="******"; $database="151296"; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $last = $_COOKIE['ID_my_site']; SELECT 'Wing' FROM 'users' WHERE 'username' =$last; $CC1 = ['CC1']; $amount1 = $_POST['amount1']; $total = $CC1 + $amount1; $UPDATE FROM 'users' WHERE 'username' = $last SET `CC1` = 'CC1'+ '$amount1'; ("Location: arming.php"); } ?>
i keep getting a white screen
Last edited by Shygirl : Oct 11th, 2007 at 5:09 pm.
•
•
Join Date: Aug 2007
Location: Cavite,Philippines
Posts: 508
Reputation:
Rep Power: 3
Solved Threads: 68
What exactly do you want to do?I cannot get your point here.
"death is the cure of all diseases..."
http://ryantetek.wordpress.com
http://ryantetek.wordpress.com
•
•
Join Date: Oct 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
basicly........ you have this code........
there is more too it but its not really relavant lol
what im trying to do is update some numbers in the database.....
its saposed to look under the table "users" and see WHO that user is.... then check under his row.. what "Wing" he is in... it would be a #.... then its saposed to insert the data into THAT wing... CC1 is a field in the wings table
<form name="nala" action="constructX.php" method="post"> <input style="font-size:8pt;" type=submit name=cons value=Construct>
there is more too it but its not really relavant lol
what im trying to do is update some numbers in the database.....
its saposed to look under the table "users" and see WHO that user is.... then check under his row.. what "Wing" he is in... it would be a #.... then its saposed to insert the data into THAT wing... CC1 is a field in the wings table
•
•
Join Date: Aug 2007
Location: Cavite,Philippines
Posts: 508
Reputation:
Rep Power: 3
Solved Threads: 68
$CC1 = ['CC1'];
$amount1 = $_POST['amount1'];
$total = $CC1 + $amount1;
$query="UPDATE FROM 'users' SET CC1='.$total.' WHERE 'username'= '.$last.' ";
$result=mysql_query($query);
$amount1 = $_POST['amount1'];
$total = $CC1 + $amount1;
$query="UPDATE FROM 'users' SET CC1='.$total.' WHERE 'username'= '.$last.' ";
$result=mysql_query($query);
"death is the cure of all diseases..."
http://ryantetek.wordpress.com
http://ryantetek.wordpress.com
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- How to retain the disable state of the button after page refreshing (JavaScript / DHTML / AJAX)
- Help pls, I might have visited a virus site... (Viruses, Spyware and other Nasties)
- pls help me (Visual Basic 4 / 5 / 6)
- windows xp installation error!! pls help! (Troubleshooting Dead Machines)
- Pls help with C code. Evaluating data types. (C)
- Kindly provide advice (Viruses, Spyware and other Nasties)
- JScript experts - HELP needed! (Java)
Other Threads in the PHP Forum
- Previous Thread: Defferences between php 4 and php5
- Next Thread: Sending html emails


Linear Mode