Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 10 of 10
Search took 0.02 seconds.
Search: Posts Made By: dstars5
Forum: MySQL 08-24-2012, 07:57 AM
Replies: 11
Views: 787
Posted By dstars5
I actually just figured it out. Because I was...

I actually just figured it out. Because I was using the query in the function, it wasn't finding the username value, I guess. Anyway it works perfectly now! Thank you so much for all of your help!
Forum: MySQL 08-24-2012, 03:40 AM
Replies: 11
Views: 787
Posted By dstars5
I changed the code a bit since I originally...

I changed the code a bit since I originally posted this thread, so I thought I'd post my current version.

<?php
include('cn.php');
@session_start();

$userUsername =...
Forum: MySQL 08-24-2012, 02:29 AM
Replies: 11
Views: 787
Posted By dstars5
Where it is coming from: $userUsername =...

Where it is coming from:

$userUsername = $_SESSION['loggedInUser'];

I think its working though, one of my echos shows the username on the page.

echo "The username is '".$userUsername."'.";
Forum: MySQL 08-23-2012, 10:36 PM
Replies: 11
Views: 787
Posted By dstars5
Wait, but the hours are set to 5 and the minutes...

Wait, but the hours are set to 5 and the minutes to 10. So it isn't changing the data. Also, sorry for asking so many questions ha, but "WHERE user_username=" shouldn't cut off like that should it?
Forum: MySQL 08-23-2012, 10:20 PM
Replies: 11
Views: 787
Posted By dstars5
Okay, so it shows: convertTime(10) was...

Okay, so it shows:

convertTime(10) was called
hours: 0, minutes: 0
DEBUG SQL: UPDATE user SET user_minutes=0, user_hours=0 WHERE user_username=''

So, it's got the right starting time, but its...
Forum: PHP 08-23-2012, 03:39 AM
Replies: 1
Views: 208
Posted By dstars5
Something's wrong...

Hey guys, sorry for the rather vague title, but I honestly don't know how to title this haha. Basically, on my site, a user inputs minutes into a text field, then I take the input, convert the...
Forum: MySQL 08-23-2012, 03:13 AM
Replies: 11
Views: 787
Posted By dstars5
Hey, I added some echos into the code, and it...

Hey, I added some echos into the code, and it looks like the mysql query function has been working this whole time, but for some reason, its adding 0 hours and 0 minutes.
Forum: MySQL 08-22-2012, 04:15 AM
Replies: 11
Views: 787
Posted By dstars5
It still doesn't add any time.. The debug thing...

It still doesn't add any time..
The debug thing just has the code printed up at the top of the webpage.. Is that what's supposed to happen?
Forum: MySQL 08-21-2012, 09:29 PM
Replies: 11
Views: 787
Posted By dstars5
Updating data in a MySQL database

Hey guys, I'm trying to update the "hours" and "minutes" of an accounts row.
I'm sure I am doing this wrong, and I am sure its a simple fix, lol, but I am pretty new to mysql, so a little guidance...
Forum: MySQL 08-21-2012, 07:59 PM
Replies: 2
Resolved MySQL error
Views: 395
Posted By dstars5
MySQL error

Hey guys, MySQL has been giving me this error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 13...
Showing results 1 to 10 of 10

 
Forum Jump

All times are GMT +1. The time now is 11:37 AM.