Search found 40 matches

by beloveddoll
Tue Jul 17, 2007 7:41 pm
Forum: PHP - Code
Topic: Why is this not adding?
Replies: 25
Views: 1697

Ok, I haven`t worked with debug much except for copying what people put in for me to put in. Maybe if you can brief me on how to use debug I can go around with it in my files and see what turns up.
by beloveddoll
Tue Jul 17, 2007 6:35 pm
Forum: PHP - Code
Topic: Why is this not adding?
Replies: 25
Views: 1697

How do we find out for sure?
by beloveddoll
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...
by beloveddoll
Tue Jul 17, 2007 3:34 pm
Forum: PHP - Code
Topic: Why is this not adding?
Replies: 25
Views: 1697

It gets displayed when the person of $s is logged in.
by beloveddoll
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() ...
by beloveddoll
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...
by beloveddoll
Tue Jul 17, 2007 10:09 am
Forum: PHP - Code
Topic: Why is this not adding?
Replies: 25
Views: 1697

I basically manipulated what someone else had put for subtracting echos to the logged in person: Can you ask that person? I lost contact with that person, which is why I`m trying to do this myself. I changed the code to: $echosseller = $sel[1] + $p; mysql_query("UPDATE userdata SET echo_count ...
by beloveddoll
Tue Jul 17, 2007 9:55 am
Forum: PHP - Code
Topic: Why is this not adding?
Replies: 25
Views: 1697

I basically manipulated what someone else had put for subtracting echos to the logged in person: $_SESSION['echos'] = $echos = $echos - $p; mysql_query("UPDATE userdata SET echo_count = $echos WHERE login = '".$log."' ") or die(mysql_error()); So I made: $sel[1] = $echosseller = ...
by beloveddoll
Tue Jul 17, 2007 9:43 am
Forum: PHP - Code
Topic: Why is this not adding?
Replies: 25
Views: 1697

Debug p: 10
Debug: UPDATE userdata SET echo_count = 930 WHERE login = 'Beloved Doll Lit'
echosseller:
p: 10
echosseller: 10

Debug: UPDATE userdata SET echo_count = 10 WHERE id = '97'

echo_count should`ve been 24
by beloveddoll
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...
by beloveddoll
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

Code: Select all

$sel[1] = $echosseller = $echosseller + $p;
   mysql_query("UPDATE userdata SET echo_count = $echosseller WHERE id = '$s' ") or die(mysql_error());
there`s something in them that`s keeping it from adding.
by beloveddoll
Tue Jul 17, 2007 8:49 am
Forum: PHP - Code
Topic: Why is this not adding?
Replies: 25
Views: 1697

I get the same thing.
by beloveddoll
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:

Code: Select all

?>
by beloveddoll
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 ...
by beloveddoll
Mon Jul 16, 2007 4:49 pm
Forum: PHP - Code
Topic: Sending definitive info through a link
Replies: 4
Views: 507

Solution was found. I didn`t put the &p= to all the link fields.