Search found 40 matches
- Tue Jul 17, 2007 7:41 pm
- Forum: PHP - Code
- Topic: Why is this not adding?
- Replies: 25
- Views: 1697
- Tue Jul 17, 2007 6:35 pm
- Forum: PHP - Code
- Topic: Why is this not adding?
- Replies: 25
- Views: 1697
- Tue Jul 17, 2007 6:04 pm
- Forum: PHP - Code
- Topic: Why is this not adding?
- Replies: 25
- Views: 1697
It is added to the database. What`s making this even stranger is that if the logged in person gets echos from, say, commenting on a submitted picture, the change is visible. But if someone were to purchase an item from them, the change is not seen. However in both cases, when the change is made to t...
- Tue Jul 17, 2007 3:34 pm
- Forum: PHP - Code
- Topic: Why is this not adding?
- Replies: 25
- Views: 1697
- Tue Jul 17, 2007 3:16 pm
- Forum: PHP - Code
- Topic: Anything wrong with this session?
- Replies: 1
- Views: 439
Anything wrong with this session?
<? // Defines DEFINE('SESSION_MAGIC','sadhjasklsad2342'); // Initialization @session_start(); @ob_start(); /* Redirects to another page */ function Redirect($to) { @session_write_close(); @ob_end_clean(); @header("Location: $to"); } /* Deletes existing session */ function RemoveSession() ...
- Tue Jul 17, 2007 2:41 pm
- Forum: PHP - Code
- Topic: Why is this not adding?
- Replies: 25
- Views: 1697
I got the adding to work but in doing so I found another problem. If the $s person is logged in while the transaction is taken place, their echos count is not being displayed. They would have to log out then back in, in order to get that echos that was put into their database. That`s a session probl...
- Tue Jul 17, 2007 10:09 am
- Forum: PHP - Code
- Topic: Why is this not adding?
- Replies: 25
- Views: 1697
- Tue Jul 17, 2007 9:55 am
- Forum: PHP - Code
- Topic: Why is this not adding?
- Replies: 25
- Views: 1697
- Tue Jul 17, 2007 9:43 am
- Forum: PHP - Code
- Topic: Why is this not adding?
- Replies: 25
- Views: 1697
- Tue Jul 17, 2007 9:20 am
- Forum: PHP - Code
- Topic: Why is this not adding?
- Replies: 25
- Views: 1697
Debug p: 10 Debug: UPDATE userdata SET echo_count = 970 WHERE login = 'Beloved Doll Lit' Debug: UPDATE userdata SET echo_count = 10 WHERE id = '97' It wiped out the seller`s echos from 375 to 10. It should`ve made the echo_count go from 375 to 385 because the $p (in this case 10) should`ve been adde...
- Tue Jul 17, 2007 8:59 am
- Forum: PHP - Code
- Topic: Why is this not adding?
- Replies: 25
- Views: 1697
I know that these lines
there`s something in them that`s keeping it from adding.
Code: Select all
$sel[1] = $echosseller = $echosseller + $p;
mysql_query("UPDATE userdata SET echo_count = $echosseller WHERE id = '$s' ") or die(mysql_error());- Tue Jul 17, 2007 8:49 am
- Forum: PHP - Code
- Topic: Why is this not adding?
- Replies: 25
- Views: 1697
- Tue Jul 17, 2007 8:36 am
- Forum: PHP - Code
- Topic: Why is this not adding?
- Replies: 25
- Views: 1697
Output:
Blank page with this message:
Parse error: syntax error, unexpected $end in /home/secrett1/public_html/testing/sell_coll.php on line 57
Line 57:
Blank page with this message:
Parse error: syntax error, unexpected $end in /home/secrett1/public_html/testing/sell_coll.php on line 57
Line 57:
Code: Select all
?>- Tue Jul 17, 2007 8:17 am
- Forum: PHP - Code
- Topic: Why is this not adding?
- Replies: 25
- Views: 1697
Why is this not adding?
<?php include("dbcon.php"); include("func.php"); require_once "auth.php"; require_once "includes/defines.php"; if (!isLoggedIn()) { Redirect("index.php"); } $log = $_SESSION['sess_name']; $res3 = mysql_query("Select id,echo_count FROM userdata ...
- Mon Jul 16, 2007 4:49 pm
- Forum: PHP - Code
- Topic: Sending definitive info through a link
- Replies: 4
- Views: 507