[PHP] array

2001-09-24 Thread Jeremy Morano
Hello everyone. I'm encountering difficulties using my arrays. while ($row = mysql_fetch_array($result)) { $link[$c] = $row['link']; $c = $c + 1; } This is where I try using it. while ($row = mysql_fetch_array($result)) { $date = $row['date'];

[PHP] Limit

2001-07-30 Thread Jeremy Morano
How do I put a limit of records that can be entered in a table? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] disable?

2001-07-31 Thread Jeremy Morano
Hi, I was wondering if there was any way to dissable something from the mouse right click? ex: When a user visits my site, I don't want them to be able to use the copy shortcut on the right mouse click. How would I do this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] whats wrong?

2001-07-31 Thread Jeremy Morano
Anythig visibly wrong with this? FORM METHOD=post ACTION=userinfolistbycompany2.php INPUT TYPE=hidden name=uid value=? echo $uid; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] not null

2001-08-01 Thread Jeremy Morano
Hi, When a field is declared as an integer, not null and is the primary, how would I address it's empty set? ex: if($value == ???) { bla bla bla } My condition wants there to be nothing in $value. -- PHP General Mailing

[PHP] echo

2001-08-03 Thread Jeremy Morano
$sql = SELECT first_name, last_name, address, state, zip_code, country, company, occupation, telephone, fax, email, entry_name, password, package, registration_date, valid_until, max_users FROM $table_name WHERE uid = \$uid\ ; $result = @mysql_query($sql,$connection)

[PHP] get value

2001-08-06 Thread Jeremy Morano
hi,,, can someone tell me how to access the value of count? please? - $db = @mysql_select_db($db_name, $connection) or die(Couldn't select database.); $sql = SELECT count(*) FROM $table_name,

[PHP] close browser

2001-08-07 Thread Jeremy Morano
Hi, Can anybody tell me what the code to close the browser is? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] newbie

2001-08-08 Thread Jeremy Morano
Hi, I'm a real newbie at this stuff and I have a little problem... I read the manual but the answer to my questions were not clear. What I am trying do do is track down a user when he or she visits my site. I would like to store some information about them into mySql...Information like,

[PHP] Select

2001-08-14 Thread Jeremy Morano
Hi, I'm having a problem with my Select statement. This is what i'm doing: $connection = @mysql_connect(l, c, c) or die(Couldn't connect.); $db = @mysql_select_db($db_name, $connection) or die(Couldn't select database.); $sql = SELECT * FROM table_1 ; $result =

[PHP] stuck

2001-08-17 Thread Jeremy Morano
Hi, Can someone please tell me what is wrong with this page. The problem is that my option block is always stuck on the last record in the table. No matter what option I choose, the information, address, city, state...etc, that is passed is always the one of the last record in the table...Help!

[PHP] sessions

2001-08-17 Thread Jeremy Morano
Hi there, I was wondering if a function such as session_close() or session_stop() existed. You see, i've been using session_destroy and/or session_unregister but the problem is that they unregister and/or destroy ALL my sessions in my server folder. What I am trying to do is just stop the session

[PHP] crop string?

2001-08-20 Thread Jeremy Morano
Hi, I would like to know how to crop this string from this, $string = \home\folder1\folder2\page1.php to this $string = page1.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

[PHP] basename()

2001-08-20 Thread Jeremy Morano
Hello, Can someone please show me how to use basename() correctly? This is what I am doing: $file = basename ($path); $file = basename ($path,.php3); This is the error I'm gettig: Warning: Wrong parameter count for basename() in /home/virtual/ppcu/home/httpd/html/jeremy/stats4.php on line 43

[PHP] session_unregister

2001-08-20 Thread Jeremy Morano
Help me! I'm working with sessions and having some difficulty. I have my session_register(variable) at the top of page 1 and page 2. I use the session_unregister(variable) at the bottom of page 2, everything seems to work fine at this point. The problem is, sometimes the user needs to visit

[PHP] sessions

2001-08-21 Thread Jeremy Morano
Hi , I'm having problems with my session_unregister(). Maybe what i'm trying to do can't be done but I would like someones opinion. This is what I am doing and why i'm doing it. session_start(); session_unregister(val_1); session_register(val_1); I am doing this to clear the contents of val_1

[PHP] column_name

2001-08-22 Thread Jeremy Morano
Hi , I was wondering if there was a way to retreive a column_name instead of a value in a query? For example if my table has the fieldfirstname, lastname, telephone, movie1, movie2, movie3.. And my first record is JohnDoe 555- good bad bad

[PHP] strange error

2001-08-22 Thread Jeremy Morano
Hi, I get an error message which I can't figure out. Its a Parse error: on line 142 which is the last line of the page containing absolutly no code. The last line of code is simply /HTML..Did anyone have a similar experience? Can anyone help me out please? -- PHP General Mailing List

[PHP] always last

2001-08-23 Thread Jeremy Morano
Hi, I need a little bit of help. My variable $team in the option block is always set to the last variable that is readI would like it to contain the option that the user clicks.Please help me! My Select works properly ... $result = @mysql_query($sql,$connection) or die(Couldn't

[PHP] \n

2001-08-24 Thread Jeremy Morano
Sorry to bother you with what probably seems like a useless question but why is this not skipping a line? echo $team \n ; Its in a while loop and the output is: Bears Giants Jets etc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] limit 1

2001-08-24 Thread Jeremy Morano
Hi, I wondering if it was possible to use limit on part of a query and not all. this is my query which works the way it should. $sql = SELECT users.names FROM users, selection Where users.name = selection.name and setting = 'on' limit 1 ; What I would

[PHP] clause

2001-08-27 Thread Jeremy Morano
Hi, Can somebody help me out? My where clause is completely being ignored. More specifically the . I tried to use != and that didn't work either. However, when I substitute it with an = , It fuctions correctly. Right now, the output is all the users.uid and all the users.username from the table

[PHP] concatenate?

2001-08-28 Thread Jeremy Morano
Hello, I was just wondering if there was a simple function like str_con or something like that to concatenate strings? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] fix my query please

2001-08-28 Thread Jeremy Morano
an somebody please fix up my query. $connection = @mysql_connect(l, c, c) or die(Couldn't connect.); $db = @mysql_select_db($db_name, $connection) or die(Couldn't select database.); $sql = SELECT distinct users.uid , users.username FROM users LEFT OUTER JOIN picks using(id)

[PHP] im puzzled

2001-08-29 Thread Jeremy Morano
Hi , this is my query SELECT users.uid FROM users, picks WHERE users.uid = picks.user_id; this works correctly. The results are what they are supposed to be: However, when I change the = sign to a or !=, The results are completely incorrect. -- picks.user_id

[PHP] JOIN

2001-08-30 Thread Jeremy Morano
Sorry everone but I 'm having a hard time with joins How do I add this clause: users.uid = selection.user_uid from table selection to this query: $sql = SELECT users.uid, users.username FROM users LEFT JOIN picks ON users.uid = picks.user_id WHERE picks.user_id IS NULL Thank You. --

[PHP] FW: correction to JOIN

2001-08-30 Thread Jeremy Morano
-Original Message- From: Jeremy Morano [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 12:05 PM To: [EMAIL PROTECTED] Subject: JOIN Sorry everone but I 'm having a hard time with joins How do I add this clause: users.uid selection.user_uid from table selection

[PHP] isset

2001-09-04 Thread Jeremy Morano
Hi , Is there anyway of hiding the name of the website in the isset Enter Network Password window? if (isset( $PHP_AUTH_USER ) isset($PHP_AUTH_PW)) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] authenticate

2001-09-04 Thread Jeremy Morano
Hi, Is there anyway that I can hide my website name in the authenticate window? if ( ! $auth ) { header( 'WWW-Authenticate: Basic realm=Private); header( 'HTTP/1.0 401 Unauthorized' ); echo 'Authorization Required.'; exit; } -- PHP General Mailing List

[PHP] option block

2001-09-04 Thread Jeremy Morano
Hello everyone, I'm having a problem with my option block... I'm trying to pass the value of uid to the next page. I always get the last uid value in table user. How can I change this so I get to pass the value of the user's choice? $sql = SELECT user.uid, user.first_name, user.last_name

[PHP] clear contents?

2001-09-07 Thread Jeremy Morano
Hi everone... I'm having a little problem. The code below pops up a password dialog box where the user types in a username and a password to be able to proceed. However, if the user does not close the browser and goes back to the link, which they pops up the diolog box again and they don't have

[PHP] NT?

2001-09-10 Thread Jeremy Morano
Hello, Sorry to bother everyone. I was just wondering if php runs on NT? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] $PHP_AUTH_USER

2001-07-18 Thread Jeremy Morano
hi can I use $PHP_AUTH_USER as a global variable? I'm having a hard time with it in my other pages. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

[PHP] whatever.php

2001-07-18 Thread Jeremy Morano
HI I'm using require(whatever.php)to access my variables...it works. The problem is my whatever.php page shows up on top of my current page. Is there a simple clear screen I can use??? I tried include and the same thing happens. What do I do? -- PHP General Mailing List

[PHP] screen2

2001-07-19 Thread Jeremy Morano
Can anybody tell me how to refresh or clear a screen in php code and if not, please tell me,, It cannot be done. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

[PHP] bug?

2001-07-19 Thread Jeremy Morano
Does anybody know of a common bug where a variable contains what seems to be a generated random number instead of the input data that was given? I'm inputting all sorts of info and only one variable is acting strange..hmmm -- PHP General Mailing List (http://www.php.net/)

[PHP] days

2001-07-19 Thread Jeremy Morano
The employees here and I have noticed that we have a variable that works when it wants to... But for days at a time. One day it works fine all day. Another day it fills up with garbage instead of what its supposed toBut whats particular about this is that it lasts all day. Good or bad, the

[PHP] is this right

2001-07-24 Thread Jeremy Morano
this doesn't work,how should it be done? insert into test (uid, companyUid) values(1, select uid from companysTable where company = Micrsoft); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] whats wrong

2001-07-24 Thread Jeremy Morano
Whats wrong with this? $sql = INSERT INTO $table_name (uid,companyUid, first_name, last_name, address, state, zip_code, country, company, occupation, telephone, fax, email, user_name, password) SELECT \\, \uid from companyTable WHERE company= Itsolutions\,

[PHP] copy shortcut

2001-07-26 Thread Jeremy Morano
I would like to know if there is a way to dissable the copy shortcut in my pages? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Delete

2001-07-27 Thread Jeremy Morano
Hi, im trying to delete a record from a table where the value of a field must be equal to the value of a field of another table.I know this is wrong but I need to show you what I mean. I think I'm missing a very important select statement to join them...can