Search found 23 matches

by icu90ucme
Fri Aug 08, 2003 8:39 am
Forum: PHP Scripts
Topic: phone number
Replies: 6
Views: 3420

well im gonna have a lot of users inputting at the same time and i wanted to put the least amount of strain on my server and if i can do it client sider rather than server side it'll help a little
by icu90ucme
Thu Aug 07, 2003 7:26 pm
Forum: JavaScript
Topic: using javascript for php search?!?
Replies: 3
Views: 2652

this doesn't have any javascript at all but it might help you this is just a generic search // this will be your original search page <form action="search_results.php" method="post"> <table width="100%" cellspacing='1'> <tr> <td>Choose Search Type:<br /></td> <td><selec...
by icu90ucme
Thu Aug 07, 2003 7:06 pm
Forum: PHP Scripts
Topic: phone number
Replies: 6
Views: 3420

phone number

using a form field a customer is going to enter his phone number in this format 1234567890.

can i have php "when the form field loses focus" to change this number into (123)456-7890

or do i have to use javascript i know it's possible in javascipt by using the onBlur=myphonescript command
by icu90ucme
Wed Aug 06, 2003 9:23 am
Forum: PHP Scripts
Topic: easy question on variables
Replies: 1
Views: 1646

easy question on variables

im trying to pass this variable through this link <td>Suspended <a href="take_off_suspension.php?username=$usr[username]">Take off</a></td> on the take_off_suspension.php page i have $username = $HTTP_GET_VARS['username']; echo $username; the result that is echo'd is "$usr[username" instea...
by icu90ucme
Mon Aug 04, 2003 7:23 pm
Forum: PHP Scripts
Topic: Deletion of an array
Replies: 4
Views: 2253

Deletion of an array

Here's the problem I retrieve a list a users from my database. I now want the option to delete each user from my database. Here's the code I'm using to retrieve the users: function get_users($username) { //extract from the database all the URLs this user has stored if (!($conn =...
by icu90ucme
Sat Aug 02, 2003 8:58 pm
Forum: PHP Scripts
Topic: I hate arrays!!
Replies: 3
Views: 2268

with this set of code $result = mysql_query( "select usrfname, usrlname, usrurls from usrinfo where username = '$username'"); i fetch usrfname, usrlname, and usrurls from my table.. when i try to print them out from the array using this code foreach ($url_array as $url) ...
by icu90ucme
Sat Aug 02, 2003 12:44 pm
Forum: PHP Scripts
Topic: I hate arrays!!
Replies: 3
Views: 2268

I hate arrays!!

i'm having trouble showing all the information that im pulling from mysql database with this array. this is a lot of code but i hope you can follow it. I want to show First Name and Last Name, and URL, but the array only shows the FIRST name and not both // this is the first function function get_us...
by icu90ucme
Mon Jul 28, 2003 10:09 am
Forum: PHP Scripts
Topic: generate number
Replies: 17
Views: 7156

if you look closely you'll see i added an extra set :)
by icu90ucme
Mon Jul 28, 2003 7:35 am
Forum: PHP Scripts
Topic: generate number
Replies: 17
Views: 7156

after testing it again it still came up with a random length. but i changed it a little bit and again all it was were a few parenthesis. function rand_string($length = 16) { // each set of characters is in a different array element $chars = array( 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', // up...
by icu90ucme
Sun Jul 27, 2003 10:28 pm
Forum: PHP Scripts
Topic: generate number
Replies: 17
Views: 7156

:) sorry to break your heart but it's still not 100% -- the second output of your code generated 15 characters. and once i tried it out it came all the way down to 13 on an occasion. It definetly hits 16 more often though if that makes you feel better. I can't find anything wrong with it though.
by icu90ucme
Sun Jul 27, 2003 10:12 pm
Forum: PHP Scripts
Topic: printer friendly
Replies: 3
Views: 3087

im sorry maybe i wasn't clear on what i was asking. i want to keep my content "as is" on my search page with all the graphics and what not. But I also want a link on the same page that will turn the same page into a "printer-friendly" page. I've searched the net and none of the scripts seem to work....
by icu90ucme
Sun Jul 27, 2003 9:31 pm
Forum: PHP Scripts
Topic: printer friendly
Replies: 3
Views: 3087

printer friendly

from search.php i go to a results.php page

I now what to make it printer friendly so that i can print it out without all the junk that wastes my ink. can that be done.
by icu90ucme
Sun Jul 27, 2003 9:29 pm
Forum: PHP Scripts
Topic: generate number
Replies: 17
Views: 7156

thankx. if i were to use your code how could i make it return 16 characters everytime..

if i'm not mistaken wouldn't the loop keep repeating until $length is reached which just happens to be 16 which would give me a string 16 characters long.
by icu90ucme
Sun Jul 27, 2003 3:34 pm
Forum: PHP Scripts
Topic: generate number
Replies: 17
Views: 7156

i was just wondering what yall thought about this function. i tried using the other functions and i want it to return a 16 character string everytime but sometimes it comes back as 8 or 9 or 4 or 10, or 15, and so on function randomstring() { $char = "abchefghjkmnpqrstuvwxyz0123456789"; srand((doubl...
by icu90ucme
Sat Jul 26, 2003 4:54 pm
Forum: PHP Scripts
Topic: generate number
Replies: 17
Views: 7156

the functions both of you have written are great and i know the odds of getting a replica in the database are slim and none but if it does return back to me as already existing in the database, how do i make it keep regenerating until none is found so i may then insert that string. thanks for all yo...
by icu90ucme
Fri Jul 25, 2003 6:02 pm
Forum: PHP Scripts
Topic: generate number
Replies: 17
Views: 7156

generate number

I want to generate a random string of numbers and letters query it against my database to ensure it doesn't already exist and then input it in my table.... can this be done
by icu90ucme
Sun Jul 20, 2003 11:07 pm
Forum: PHP Scripts
Topic: Counting problem
Replies: 2
Views: 1714

Counting problem

when i input the mysql code on the command line, i get an accurate result but when i try to use the same code in php i get a result of "Resource id#9" -- Does anybody know what this means $query = mysql_query("SELECT COUNT(*) FROM pepinfo"); echo 'Number of people in database: '.$query.' '; if confu...
by icu90ucme
Wed Jul 09, 2003 9:10 pm
Forum: mySQL & php coding
Topic: too tough for me (Verify this number)
Replies: 1
Views: 763

too tough for me (Verify this number)

BW1234561 ---> this number is mathematically correct i need a script to verify this string of letters and numbers step 1: this must start with an "a" or a "b" as in the example above (the second letter can be anything) step 2: Add the 1st, 3rd, and 5th numbers (example = 9) step 3: Add the 2nd, 4th,...
by icu90ucme
Tue Jul 08, 2003 9:34 pm
Forum: mySQL & php coding
Topic: The time is ticking
Replies: 4
Views: 1251

i figured it out thanks.... this is the correct script $time= time(); $sql=mysql_query("SELECT * FROM users WHERE username='$username'"); $userinfo = mysql_fetch_array($sql); if (($userinfo["lastmodified"] + 31536000) > ($time)) { $HTTP_SESSION_VARS['valid_user'] = $username; } else { // Message for...
by icu90ucme
Tue Jul 08, 2003 8:49 pm
Forum: mySQL & php coding
Topic: The time is ticking
Replies: 4
Views: 1251

thanks for the help... i tried out the scipt and when i went to test it out, i replaced the year in seconds "31536000" with "10" seconds... and it didn't give me my error prompt saying "your subscription is expired, please renew"... i don't understand... $sql = mysql_query("SELECT * FROM usertable W...
by icu90ucme
Mon Jul 07, 2003 7:09 pm
Forum: PHP Scripts
Topic: The time is ticking
Replies: 4
Views: 2284

sorry i'm a newbie... i just really need to know a solution
by icu90ucme
Mon Jul 07, 2003 2:36 pm
Forum: mySQL & php coding
Topic: The time is ticking
Replies: 4
Views: 1251

The time is ticking

Problem: I only want a member's subsciption to last one year.

Solution: I need a script that will check a user's "registration date" in a mysql database and tell me a couple of month's before the year is over so i can inform the user to resubscribe.
by icu90ucme
Mon Jul 07, 2003 2:35 pm
Forum: PHP Scripts
Topic: The time is ticking
Replies: 4
Views: 2284

The time is ticking

Problem: I only want a member's subsciption to last one year.

Solution: I need a script that will check a user's "registration date" in a mysql database and tell me a couple of month's before the year is over so i can inform the user to resubscribe.

Any help is appreciated