Search found 25 matches

by hgmmy
Sat Dec 08, 2007 3:59 pm
Forum: Installation and Configuration
Topic: I think this is related to URL-Rewriting but not sure
Replies: 3
Views: 1430

Here's a couple of links you might find helpful, and note that in order to do what your wanting to do your school will need mod_rewrite enabled...

http://www.yourhtmlsource.com/sitemanag ... iting.html
http://www.workingwith.me.uk/articles/s ... od_rewrite
by hgmmy
Fri Dec 07, 2007 4:33 pm
Forum: PHP - Code
Topic: a way to tell if...is a number?
Replies: 12
Views: 1836

jmut wrote:simple typecast to (int) is enought IMHO
What do you by typecast, jmut?
by hgmmy
Fri Dec 07, 2007 11:46 am
Forum: PHP - Code
Topic: a way to tell if...is a number?
Replies: 12
Views: 1836

I'll just trust you in that it's not very effective, and scratch it off the list.
by hgmmy
Fri Dec 07, 2007 11:36 am
Forum: PHP - Code
Topic: a way to tell if...is a number?
Replies: 12
Views: 1836

So what would be best? This method:

Code: Select all

if ((int)$input !== 0) {
    // good
}
, this method ctype_digit
or this method:

Code: Select all

if ( $user_ID >= 1 ) {
    //Code to be done...
};
(Note the last method just occurred to me as I read through ya'lls posts)
by hgmmy
Thu Dec 06, 2007 12:15 pm
Forum: PHP - Code
Topic: a way to tell if...is a number?
Replies: 12
Views: 1836

a way to tell if...is a number?

Is there a way to tell if the value of a variable or what have you, is any number? here's a little more info to give you a better idea what I need. I have a form that returns a number that coincides with a user id, and I want a way to make sure that the value is a number as an extra security measure...
by hgmmy
Tue Oct 30, 2007 10:19 am
Forum: PHP - Code
Topic: if statements
Replies: 1
Views: 1009

if statements

Hopefully this is a quick question with a quick answer. Here's an example to go with my question which will be after the example. <?php include('wp-config.php'); //this were the database connection info is as well as were it connects from. $o_theuser = $_POST['theuser']; $o_profile = $_POST['profile...
by hgmmy
Mon Oct 29, 2007 7:16 pm
Forum: PHP - Code
Topic: if statements...
Replies: 0
Views: 144

if statements...

I got what I hope to be a quick question with a quick answer. Here's the example I'm going to reference for my question. <?php include('wp-config.php'); //this is were the database connection info is as well as were it connects $o_theuser = $_POST['theuser']; $o_profile = $_POST['profile']; $update_...
by hgmmy
Mon Oct 29, 2007 4:59 pm
Forum: PHP - Code
Topic: if statements...
Replies: 0
Views: 172

if statements...

Quick question, and here's the example that goes with my question. <?php include('wp-config.php');//has database connection info in it, and connects to the database. $o_theuser = $_POST['theuser']; $o_profile = $_POST['profile']; $update_profile = mysql_query("UPDATE user_allow SET share_info='...
by hgmmy
Sat Sep 29, 2007 7:44 am
Forum: Databases
Topic: can't login...to mysql
Replies: 1
Views: 349

I finally got her goin. I reran the configuration thing.
by hgmmy
Fri Sep 28, 2007 9:40 pm
Forum: Databases
Topic: can't login...to mysql
Replies: 1
Views: 349

can't login...to mysql

OK so, I have Mysql community version installed on my computer (windows vista) and I can't login, and i don't know if it's that I'm not entering the password right (and I'm 99% sure I am) or if it's something else. Here's the error I get. http://www.mediamax.com/bonnerl16/Hosted/mysql.jpg And it's t...
by hgmmy
Sun Sep 16, 2007 2:07 pm
Forum: PHP - Code
Topic: while and if statements
Replies: 14
Views: 1840

ok

I guess I'm done here for today unless anybody else has valuably info I should know on this subjuect. Thanks for educating me...
by hgmmy
Sun Sep 16, 2007 1:55 pm
Forum: PHP - Code
Topic: while and if statements
Replies: 14
Views: 1840

//will this row display 1 $first_namef = mysql_fetch_array($first_nameq); echo $first_namef['user_id']; //and this one 2 $first_namef = mysql_fetch_array($first_nameq); echo $first_namef['user_id']; //and this one 3 $first_namef = mysql_fetch_array($first_nameq); echo $first_namef['user_id']; //and...
by hgmmy
Sun Sep 16, 2007 1:21 pm
Forum: PHP - Code
Topic: while and if statements
Replies: 14
Views: 1840

hmm... very interesting. So if you put "$first_namef = mysql_fetch_array()" like i've done, then put "$first_namef['user_id']" in two or more echos and there are two or more rows in the database, will it progress through the different values as the page progress. example: <?php /...
by hgmmy
Sun Sep 16, 2007 11:46 am
Forum: PHP - Code
Topic: while and if statements
Replies: 14
Views: 1840

So putting $first_namef isn't the same as putting mysql_fetch_array() even though that's what I've assigned to it?
by hgmmy
Sun Sep 16, 2007 11:10 am
Forum: PHP - Code
Topic: while and if statements
Replies: 14
Views: 1840

I thought that since the value of $first_namef is mqysl_fetch_array() it would do that until it got nothing back... right?

P.S. I'm just learning so if I'm wrong just crack the whip and point me in the right direction.