Search found 25 matches

by bobthebobert
Thu Oct 30, 2003 3:55 pm
Forum: PHP - Code
Topic: Stumped
Replies: 4
Views: 781

Thanks for your help :)

No volka, there isn't really, I just wanted to try it.
by bobthebobert
Wed Oct 29, 2003 9:39 pm
Forum: PHP - Code
Topic: Stumped
Replies: 4
Views: 781

Stumped

What I am trying to do is create a PHP/MYSQL based login and register system. So far, I have managed to make it so you can register, which will create a table with a name the user specifies in my database. I can login fine after I create it, it's just my problem is for dealing with people who entere...
by bobthebobert
Sun Mar 30, 2003 5:42 pm
Forum: Databases
Topic: Checking a Table
Replies: 4
Views: 1275

I am pretty sure <> is the same as saying does not equal.

Anyone have any ideas why it gives me an error sometimes?!
by bobthebobert
Sat Mar 29, 2003 10:21 am
Forum: Databases
Topic: Checking a Table
Replies: 4
Views: 1275

Checking a Table

What I want to do is to be able to check a table to see if it already has the number I want to assign to someone else. This is what I have so far: <?php $randd=rand(1,10); while ($coord <> $randd) { $randd=rand(1,10); $used = mysql_query("SELECT coords FROM miscel WHERE (coords = '$randd')"...
by bobthebobert
Fri Mar 28, 2003 4:03 pm
Forum: PHP - Code
Topic: Random Numbers
Replies: 4
Views: 534

If I just want one random number, I can just code:

$number=rand(1,10);

right?

And if so, does using this method give numbers with decimals too, or not?
by bobthebobert
Thu Mar 27, 2003 7:28 pm
Forum: PHP - Code
Topic: Random Numbers
Replies: 4
Views: 534

Random Numbers

How do you do them in PHP?
by bobthebobert
Thu Mar 27, 2003 7:25 pm
Forum: Databases
Topic: Grrrr...
Replies: 14
Views: 1897

Ok, I guess I might just make it onto the Darwin awards....

They were set as HEAP, changed it and now it works. Christ I am an idiot. Sorry for wasting your time :(
by bobthebobert
Thu Mar 27, 2003 7:20 pm
Forum: Databases
Topic: Grrrr...
Replies: 14
Views: 1897

O, i just looked through my tables, they are designated as HEAP. I have no idea why I made them like that, because I have no idea what it means. So I am guessing HEAP tables don't save?
by bobthebobert
Wed Mar 26, 2003 7:51 pm
Forum: Databases
Topic: Grrrr...
Replies: 14
Views: 1897

Grrr, I know that. What I meant was as soon as i turned off Mysql, and turned it back on, the data from before that I would use would be gone.
by bobthebobert
Thu Mar 20, 2003 3:24 pm
Forum: Databases
Topic: Grrrr...
Replies: 14
Views: 1897

Ok, I insert the stuff into the database, and when MySql is running it lets me Select them. But as soon as I turn off MySql.exe, I can't access them anymore..
by bobthebobert
Wed Mar 19, 2003 5:33 pm
Forum: Databases
Topic: Grrrr...
Replies: 14
Views: 1897

I am 100% the database had it in there before I shut down.

Do you have to close your connection or something for it to save?
by bobthebobert
Wed Mar 19, 2003 2:56 pm
Forum: Databases
Topic: Grrrr...
Replies: 14
Views: 1897

What I meant was that the data wasnt saved anymore =/

How exactly would that be an compile error? I am still pretty new to this =/
by bobthebobert
Wed Mar 19, 2003 2:50 pm
Forum: Databases
Topic: Grrrr...
Replies: 14
Views: 1897

Grrrr...

Well, I have been doing well lately, but now I have another problem I can't figure out -.-

My MySql/Php table doesn't save when I turn off my computer...

It will be working fine, then I turn my computer off, and when its back on, it doesnt work anymore...
by bobthebobert
Tue Mar 18, 2003 6:08 pm
Forum: PHP - Code
Topic: Easy Question
Replies: 2
Views: 389

I knew it was in there, didnt know what it was called though.

Thanks for your help :P
by bobthebobert
Tue Mar 18, 2003 5:59 pm
Forum: PHP - Code
Topic: Easy Question
Replies: 2
Views: 389

Easy Question

What command to break off a numbers numbers after a decimal?

EX:

420.49
to
420

Thankyou