[PHP] New years resolution: To get serious with my programming! Anyone wanna help? :)

2008-01-08 Thread Jason Pruim
most part) and adapted slightly to meet my needs, and obviously I edited too much of it :) If anyone has any ideas I would appreciate it. Even RTFM as long as $M is defined :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.c

Re: [PHP] I hate bugs...Mysqli issue

2007-12-21 Thread Jason Pruim
On Dec 21, 2007, at 12:01 PM, Zoltán Németh wrote: 2007. 12. 21, péntek keltezéssel 11.50-kor Jason Pruim ezt írta: On Dec 21, 2007, at 11:22 AM, Zoltán Németh wrote: 2007. 12. 21, péntek keltezéssel 11.14-kor Jason Pruim ezt írta: Hi everyone. I have a script that I've been

Re: [PHP] I hate bugs...Mysqli issue

2007-12-21 Thread Jason Pruim
On Dec 21, 2007, at 11:22 AM, Zoltán Németh wrote: 2007. 12. 21, péntek keltezéssel 11.14-kor Jason Pruim ezt írta: Hi everyone. I have a script that I've been using succesfully for quite awhile, and just today found a bug... I attempted to insert a new record into the database an

[PHP] I hate bugs...Mysqli issue

2007-12-21 Thread Jason Pruim
now... When I'm supposed to go on vacation for a few weeks... Any help would be greatly appreciated. The basics of what I used was copied directly from the php.net site. so I'm very confused... -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI,

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-19 Thread Jason Pruim
On Dec 19, 2007, at 9:19 AM, Zoltán Németh wrote: 2007. 12. 19, szerda keltezéssel 08.50-kor Jason Pruim ezt írta: On Dec 19, 2007, at 1:51 AM, Robert Cummings wrote: On Tue, 2007-12-18 at 16:26 -0500, Daniel Brown wrote: On Dec 18, 2007 4:24 PM, Travis L. Font <[EMAIL PROTECTED]>

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-19 Thread Jason Pruim
version of order, which has been influenced by many factors including a huge Machine in the sky that is actually running the world with 1's and 0's :) Ohh... And Pudge the fish... He controls the weather... -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 13

Re: [PHP] export data to a ms excel file using php

2007-12-18 Thread Jason Pruim
$line .= $value; } $data .= trim($line). "\n"; } $data = str_replace("\r", "", $data); if ($data =="") { $data ="\n(0) Records Found!\n"; } header("Content-type: application/x-msdownload"); header("Content-Disposition: attachment; filename=Export.xls"); header("Pragma: no-cache"); header("Expires: 0"); print "$header\n$data"; ?> -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] re-compiling PHP on Mac OS X

2007-12-17 Thread Jason Pruim
AMP as well http://sourceforge.net/projects/mamp I think there are 40/50 PHP extensions included. Just pick what you want. I'll have the blond ;-) Sorry, already taken... //frank ps. merry christmas ds. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visi

Re: [PHP] Multiple File Downloads

2007-12-14 Thread Jason Pruim
w piled over 6 feet high from clearing their driveway. Northeast Pennsylvania. Close enough. And yet... Here I am in South Eastern Michigan with out enough snow to even cover the grass... Jason Pruim P.S. Yes I am checking this e-mail on my home computer and I'm not still at wor

Re: [PHP] Multiple File Downloads

2007-12-14 Thread Jason Pruim
On Dec 14, 2007, at 3:37 PM, Daniel Brown wrote: On Dec 14, 2007 3:32 PM, David Giragosian <[EMAIL PROTECTED]> wrote: I've used Richard Lynch's Blog example for forcing the download of an individual file. Is there a way to download multiple files in one go, short of zipping them first int

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-14 Thread Jason Pruim
just to be polically incorrect about it ;-) tedd * You know, "the point" -- what we were talking about, not a point on the top of my head. :-) we've seen you photo - no pointy hair in sight iirc ;-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Generating Random Numbers with Normal Distribution

2007-12-12 Thread Jason Pruim
beyond the scope of the "machine" we're discussing. And since when did "scope" ever stop anything on this list? BTW Deer taste good *Gets ready to duck from all the non-deer eating people* -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave

Re: [PHP] zip codes and lat/longs

2007-12-06 Thread Jason Pruim
s free. All else must PAY ;-P You know... in the mailing industry people pay $1,000 a year for that kind of info? Master Brown? :) ole Buddy, ole Pal :) any chance I could sneak a peak at it? Maybe I need to look into writing my own geo mapping software... -- Jason Pruim Raoset I

Re: [PHP] Cookies are now driving me crazy....

2007-11-28 Thread Jason Pruim
On Nov 28, 2007, at 3:19 PM, Brady Mitchell wrote: On Nov 28, 2007 12:08 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: if ($res) { // now see if user's id exists in database if (mysql_num_rows($res,0) { You need another ) on that last line: if (mysql_num_rows($res,0)) { You mi

[PHP] Cookies are now driving me crazy....

2007-11-28 Thread Jason Pruim
se { // redirect if logcodes are not equal echo "Logcodes are not equal"; } } else { // redirect if user ID does not exist in database echo "User not in database"; } } else { // redirect in case of database error echo "database error"; } } else { /

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Jason Pruim
On Nov 28, 2007, at 12:52 PM, Stut wrote: Jason Pruim wrote: The search results arn't stored in a session, just the search variable (IE: What they searched for) It was the only way I could get it to export the search results to my excel file... It may be because I have everythi

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Jason Pruim
On Nov 28, 2007, at 12:07 PM, Stut wrote: Jason Pruim wrote: On Nov 27, 2007, at 6:01 PM, Stut wrote: Jason Pruim wrote: Just for my own curiosity, why do you think sessions are evil? I haven't found a better way to store my variables between different pages... Other then always po

Re: [PHP] Question about authenticating people...

2007-11-28 Thread Jason Pruim
On Nov 27, 2007, at 6:01 PM, Stut wrote: Jason Pruim wrote: Just for my own curiosity, why do you think sessions are evil? I haven't found a better way to store my variables between different pages... Other then always posting them in either $_POST or $_GET each time... But that ca

Re: [PHP] PHP RFC # 0001 --- List Etiquette

2007-11-28 Thread Jason Pruim
the group to agree on it? :) Someone somewhere should have the admin password for changing the welcome message. -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.p

Re: [PHP] Question about authenticating people...

2007-11-27 Thread Jason Pruim
On Nov 27, 2007, at 3:56 PM, Stut wrote: Jason Pruim wrote: On Nov 27, 2007, at 3:48 PM, Stut wrote: Jason Pruim wrote: The subject might be a little misleading... But I couldn't think of how better to describe it in a small sentence :) What I'm wondering is, I have a program tha

Re: [PHP] Question about authenticating people...

2007-11-27 Thread Jason Pruim
On Nov 27, 2007, at 3:48 PM, Stut wrote: Jason Pruim wrote: The subject might be a little misleading... But I couldn't think of how better to describe it in a small sentence :) What I'm wondering is, I have a program that accesses a database and displays the info in that database

[PHP] Question about authenticating people...

2007-11-27 Thread Jason Pruim
or the database Does that make sense? Thoughts? Problems? RTFM's? :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie asks about multi-lingual website strategies

2007-11-27 Thread Jason Pruim
your experiences... I plan to actually start coding (If me and the site owner can see eye to eye on some stuff...) in january. -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] two small issues with php mail

2007-11-20 Thread Jason Pruim
s ready to duck* :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://w

Re: [PHP] Cannot send a hyperlink (resent)

2007-11-16 Thread Jason Pruim
try and resend the mail which mail servers do automatically anyway if they are setup right :) But that's just me... If you want some real info on it, I'd suggest the postfix mailing list. Lots of people on there, and lots of people at big companies there looking for stuff. --

Re: [PHP] Is there a ' Beginner's ' PHP List

2007-11-15 Thread Jason Pruim
nges to the subject :) All the same letters, just added a few spaces. but that's me and my smart ass ;) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jason Pruim
or Moment" but I dare say that most everyone on this list is older then me. Being born in raised in the decade of the "Hair Bands" and all :) (Is it time to go home yet?) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.rao

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jason Pruim
http://www.php.net/manual/en/function.getdate.php Give this a shot: $Date = date("y/m/d h:m:i"); echo $Date; You can format it how ever you want. Lots of different options. Check out: HTTP://www.php.net/date for lots more info. -- Jason Pruim Raoset Inc. Technology Manager MQC Specia

Re: [PHP] PHP Developers and the manual

2007-11-14 Thread Jason Pruim
up with me, I wouldn't have been able to get 2 fairly simple applications up and running. So I guess the point of this e-mail, is to say thanks to everyone who has helped me. :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about arrays

2007-11-13 Thread Jason Pruim
On Nov 13, 2007, at 1:34 AM, Jim Lucas wrote: Jason Pruim wrote: Hi Everyone, I have a question, and to avoid getting flammed until the morning, I waited to ask until the end of my day :) Or near it at least. I have a small simple script I'm writing so that I can calculate how m

Re: [PHP] Question about arrays

2007-11-12 Thread Jason Pruim
On Nov 12, 2007, at 4:14 PM, Daniel Brown wrote: On Nov 12, 2007 3:59 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: [snip] echo << size='5' name='txtNumber' value='{$TextBoxes}'> Weight of 100 p

[PHP] Question about arrays

2007-11-12 Thread Jason Pruim
{$weightOfRoute} */ ?> Obviously I have some debugging stuff listed in there, so that's not the end result that it WILL be :) What I'm having issues with is, it only takes the value of the second text box, it won't process my array. Anyone

Re: [PHP] Can I make a process run in background?

2007-11-06 Thread Jason Pruim
ww.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-02 Thread Jason Pruim
On Nov 2, 2007, at 10:18 AM, Daniel Brown wrote: On 11/2/07, Jason Pruim <[EMAIL PROTECTED]> wrote: On Nov 2, 2007, at 9:57 AM, Daniel Brown wrote: On 11/2/07, Jason Pruim <[EMAIL PROTECTED]> wrote: I have been a Mac user for my entire computing life Well, then way to

Re: [PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-02 Thread Jason Pruim
On Nov 2, 2007, at 9:57 AM, Daniel Brown wrote: On 11/2/07, Jason Pruim <[EMAIL PROTECTED]> wrote: I have been a Mac user for my entire computing life Well, then way to chime in 14 hours late there, Pruim! ;-P What can I say? :) Better late then never :P -- Jason Pruim Raos

Re: [PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-02 Thread Jason Pruim
/lists.apple.com/mailman/listinfo/macos-x-server That list as some of the most knowledgeable mac Heads I have ever dealt with, and they have helped me through all kinds of stuff. If anyone can tell you, they can. -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave

Re: [PHP] FW: Reaching the PHP mailing list owners

2007-10-31 Thread Jason Pruim
of them, or at least report the bugs to the owners I hear they have a nice site setup for reporting such bugs :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.p

Re: [PHP] isodd() php5?

2007-10-30 Thread Jason
At 09:32 30/10/2007, Hulf wrote: Hi, Is there a built in function in PHP5 to determine if an integer is even or odd? How about : if ($IntegerValue % 2) { // odd } else { // even } HTH J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] Question about time...

2007-10-25 Thread Jason Pruim
t;; $break; } echo($var); And this code is called from within my css file for a background image. Yes, I use variables in css. Cheers, tedd Hi tedd, That's actually where I got the idea, just couldn't remember who on what list said they did it

Re: [PHP] Question about time...

2007-10-25 Thread Jason Pruim
and I had a RFID transmitter embedded into me that gets powered by the electricity that my body generates, so when it can no longer get that signal, the application is designed to shut down and put up a message that says "Due to the death of my creator I quit, have a nice day!"

Re: [PHP] Question about time...

2007-10-24 Thread Jason Pruim
meone can point me in the right direction :) Well, I hope this makes sense: '; } ?> Yeah... The joys of dealing with a cold that makes your head feel like it wants to explode and you just wish it would so it would feel better :) -- Jason Pruim Raoset Inc. Technology Manager MQC

Re: [PHP] Question about time...

2007-10-24 Thread Jason Pruim
Errr... Never mind... Soon as I hit send I got a brain storm... I just do this: Or something similar, I'll try and feather it out and see how it works for multiple holidays :) (IE: Thanksgiving, Christmas, New Years, Halloween etc. etc.) On Oct 24, 2007, at 3:57 PM, Jason Pruim

[PHP] Question about time...

2007-10-24 Thread Jason Pruim
direction :) Thanks for looking! -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED]

Re: [PHP] problem with foreach

2007-10-22 Thread Jason Pruim
ng php 5.2.5 on Apache 2.2.4 on Fedora Linux. Any help? Not sure if this would help or not but when ever I've done anything with $_POST variables or other array variables I have to specify it like $_POST['option'] notice the ' in around the word 'option' Hope it

Re: [PHP] From TXT to a mySQL db

2007-10-19 Thread Jason Pruim
here is anyway they can stop it... But if they don't want to let you do it that way.. Would they allow you to place a mysql database on their server that they didn't create? You said you were testing locally, so why not simply do the load file, and then transfer a complete ta

[PHP] PHP/MySQL CMS for Articles/Studies/Research Papers?

2007-10-18 Thread Jason Paschal
7;t come with a huge learning curve. it wouldn't have to be TOO fancy, i could probably make something, but didn't want to re-invent the round-thing-that-rolls. thank you, ~jason -- Crunchmutt Studios Latest News Headlines: http://www.rssvideonews.com http://www.crunchmutt.com htt

Re: [PHP] From TXT to a mySQL db

2007-10-18 Thread Jason Pruim
is "SEPARATED BY" I'd do a search for "LOAD DATA" in the mysql site. -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Which PHP-Editor to use?

2007-10-17 Thread Jason Pruim
indows and former being Ubuntu) -Matt Just another reason I'm glad I have a Mac :) No virus to worry about :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Classes - Dumb question

2007-10-11 Thread Jason Pruim
like class DBConnect { // Connect to database mysql_connect($server, $login, $password, $database); } or no? -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.

Re: [PHP] Looking for help with a complex algorithm

2007-10-09 Thread Jason Pruim
and it is getting too complex. FYI, this is very similar to the "knapsack problem"" in dynamic programming. Just another challenging day in paradise! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Jason Pruim Raoset

[PHP] Connect PHP to Remote SQL Server?

2007-10-05 Thread Jason Paschal
e password. The web server IP has been added to the allow list for the SQL Server. Any advice will be welcome. Thanks in advance! Leaning on the PHP list, Jason

[PHP] UPS TradeAbility / SOAP / PHP5

2007-09-28 Thread jason php
Does anyone have any experience with UPS's TradeAbility platform and implementing it in PHP? The test WSDL file is located at https://wwwcie.ups.com/webservices/LandedCost.wsdl Can anyone take a look at this and give me some example code to perform a query / receive a response? Thanks!

Re: [PHP] php downlaod script

2007-09-25 Thread Jason Pruim
e=$file_name"); header("Content-Length: ".filesize($size)); header("Accept-Ranges: bytes"); header("Pragma: no-cache"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-transfer-encodin

Re: [PHP] Working with sessions

2007-09-21 Thread Jason Pruim
tored after the form... providing the offset that it did. Now to make the export like it! :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Working with sessions

2007-09-21 Thread Jason Pruim
;] = $_GET['search']; ?> It also displays the search results on the same page and that display works just fine. Just the session variable that's messed up. Thanks for looking though :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI,

[PHP] Working with sessions

2007-09-21 Thread Jason Pruim
o far... Thanks for looking! -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED]

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 4:02 PM, Jay Blanchard wrote: [snip] I took a look and now I can't get my eyes to stop bleeding. The horror, the horror! Mixed PHP/HTML is yucky :) [/snip] 8^{)} Undoubtedly things could be organized better. Jason did you just sit down and code or did you wa

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
debug by hand? Or do you have something that helps you to do that? I've been tearing my hair out for hours trying to find that and I couldn't see it... -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] --

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 3:58 PM, Robert Cummings wrote: On Tue, 2007-09-11 at 15:42 -0400, Jason Pruim wrote: It redirects before any output of $search is visible. I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone who wants to see the code... I took a look and now I can'

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
before that? How long is the complete code for the page, you may have to paste all of it or use pastebin Total length is 293 lines. It redirects before any output of $search is visible. I put it up as a .txt file at: raoset.com/oldb/index.txt for anyone who wants to see the code... I know

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 2:59 PM, Stut wrote: Jason Pruim wrote: On Sep 11, 2007, at 2:10 PM, Stut wrote: Jason Pruim wrote: On Sep 11, 2007, at 1:22 PM, Instruct ICC wrote: Also read http://en.wikipedia.org/wiki/SQL_injection I have read about SQL injection, and I will be scrubbing the data

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
%$search%' or State like '%$search%' or Zip like '% $search%' or XCode like '%$search%'"; echo $qstring; if ($search != NULL){ echo "The search string is: $search."; echo $search; $qresult= mysql_query($link, $qstring); echo "Query c

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
tion. The problem is there's not... At least there's not supposed to be. The end result that I want is for the search results to end up on the same page if possible... edit.php is a script I use for editing records. Maybe I should just do it on a separate page... It might be easi

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
7;%%' or XCode like '%%' Which is correct except for it being empty. I tried to echo $search, but since it redirects to another page I lose the value of $search. Any idea what is causing it to redirect to edit.php? -- Jason Pruim Raoset Inc. Technology Manager MQC Specia

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 2:10 PM, Stut wrote: Jason Pruim wrote: On Sep 11, 2007, at 1:22 PM, Instruct ICC wrote: Also read http://en.wikipedia.org/wiki/SQL_injection I have read about SQL injection, and I will be scrubbing the data before searching but the search is only available after

Re: [PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
On Sep 11, 2007, at 1:22 PM, Instruct ICC wrote: From: Jason Pruim <[EMAIL PROTECTED]> Here is the relevant code (I think...) $search = $_GET["search"]; $self = $_SERVER['PHP_SELF']; $qstring = "SELECT * FROM current WHERE FName like '%$qstring%'

[PHP] SEARCHING for an answer...

2007-09-11 Thread Jason Pruim
Hi Everyone :) I am attempting to add the ability to search a online database, and I thought that I have the code right, but apparently it's not... Here's the problem, when I type jason in the search box and hit go it brings me to edit.php?search=jason which displays not

Re: [PHP] Dealing with auto-increment in MySQL

2007-09-04 Thread Jason Pruim
On Sep 4, 2007, at 12:20 PM, brian wrote: Jason Pruim wrote: As the person who started the other thread about this ... As one of the people responsible for dragging that thread out ... But after discussing it, I see where my thinking was wrong in how I wanted to achieve it, and also my

Re: [PHP] Dealing with auto-increment in MySQL

2007-09-04 Thread Jason Pruim
r, either store it in the database in a separate field as tedd suggested, and leave the main auto increment field alone. OR use PHP (Or your favorite programming language) to add a "Record number" to the display. Okay I'm done now :) -- Jason Pruim Raoset Inc. Technolo

Re: [PHP] Pragmatically changing a "Record Number"

2007-08-30 Thread Jason Pruim
On Aug 30, 2007, at 6:52 AM, Stut wrote: Jason Pruim wrote: The information is being displayed in a table, and can be sorted by any of the fields. The purpose of the application I am writing is going to be a online database, giving my customers access to their mailing list 24/7 from

Re: [PHP] Pragmatically changing a "Record Number"

2007-08-30 Thread Jason Pruim
On Aug 30, 2007, at 6:34 AM, Stut wrote: Jason Pruim wrote: On Aug 30, 2007, at 5:14 AM, Stut wrote: Jason Pruim wrote: Hi Everyone, Hi Dr Jason. I think after I get this question answered, I can stop asking for awhile since my project will be done, at least until the users say "

Re: [PHP] Pragmatically changing a "Record Number"

2007-08-30 Thread Jason Pruim
On Aug 30, 2007, at 5:14 AM, Stut wrote: Jason Pruim wrote: Hi Everyone, Hi Dr Jason. I think after I get this question answered, I can stop asking for awhile since my project will be done, at least until the users say "What happened to XYZ" then I'll ask again

Re: [PHP] Pragmatically changing a "Record Number"

2007-08-29 Thread Jason Pruim
On Aug 29, 2007, at 2:27 PM, Jim Lucas wrote: Jason Pruim wrote: 3. Ask yourself, "Is it important to keep the auto-increment field contiguous?" The main reason for changing it is I do currently have an option to sort by record number, although, if I add a Record number in php,

Re: [PHP] Pragmatically changing a "Record Number"

2007-08-29 Thread Jason Pruim
On Aug 29, 2007, at 2:41 PM, Stephen wrote: --- Jason Pruim <[EMAIL PROTECTED]> wrote: So to say it another way, I have a table that has 900 records in it, I've added 3 records, but then deleted 2 of those which puts the actual record count at 901 but my auto increment field start

Re: [PHP] Pragmatically changing a "Record Number"

2007-08-29 Thread Jason Pruim
On Aug 29, 2007, at 3:02 PM, Richard Lynch wrote: On Wed, August 29, 2007 12:49 pm, Jason Pruim wrote: I think after I get this question answered, I can stop asking for awhile since my project will be done, at least until the users say "What happened to XYZ" then I'll

Re: [PHP] Pragmatically changing a "Record Number"

2007-08-29 Thread Jason Pruim
but also look right... 4. You can always display a row number with PHP that is contiguous, but not representative of the actual column. I think you may have made me go a different way in my thinking. Thank you :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd av

[PHP] Pragmatically changing a "Record Number"

2007-08-29 Thread Jason Pruim
Is there away with PHP that I can pragmatically change that value to the total records in the database more so then a representation of the actual record number? -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED]

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-28 Thread Jason Pruim
On Aug 28, 2007, at 10:21 AM, Daniel Brown wrote: On 8/28/07, Jason Pruim <[EMAIL PROTECTED]> wrote: On Aug 28, 2007, at 10:03 AM, Daniel Brown wrote: On 8/28/07, Jason Pruim <[EMAIL PROTECTED]> wrote: [snip] $sql = "SELECT * FROM users WHERE user='"

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-28 Thread Jason Pruim
On Aug 28, 2007, at 10:03 AM, Daniel Brown wrote: On 8/28/07, Jason Pruim <[EMAIL PROTECTED]> wrote: [snip] $sql = "SELECT * FROM users WHERE user='".$user."' AND pass='".$pass."' LIMIT 0,1;"; $result = mysql_q

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-28 Thread Jason Pruim
On Aug 24, 2007, at 12:15 PM, Daniel Brown wrote: On 8/24/07, Jason Pruim <[EMAIL PROTECTED]> wrote: Hi Everyone, I'm attempting to figure out the proper way to use sessions to log someone into my system. The idea being, if they arn't logged in all they can see is the login f

[PHP] help with session

2007-08-26 Thread Jason Cartledge
Hi, this is my first post to this newsgroup. Does this code look ok or is there a more clean way of doing this? I am learning. Thank you for reading. Jason if ( !empty($_REQUEST['gender']) ) { $registrationGender=$_REQUEST['gender'];

[PHP] Trying to understand sessions and using them to authenticate...

2007-08-24 Thread Jason Pruim
p on it about? About to hit up phpsec.org to see what they have! -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED]

Re: [PHP] ignore-user-abort and connection-handling

2007-08-23 Thread Jason Pruim
Hey Craig, Thanks for the answer, my test data is 935 records and on initial page load, it only takes 2 seconds to load the entire page. So I probably won't worry about it for now. Thanks for the answer! :) On Aug 23, 2007, at 1:30 PM, Craige Leeder wrote: Hi Jason, If you h

[PHP] ignore-user-abort and connection-handling

2007-08-23 Thread Jason Pruim
greatly appreciated! :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED]

[PHP] SQL Injection protection

2007-08-23 Thread Jason Pruim
interested, and knowledgeable, e-mail me off list so I can point you to the right place to try it. Thanks for looking! -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED]

Re: [PHP] Re: STDIN Stream Query

2007-08-17 Thread Jason Freeman
Per Jessen wrote: Jason Freeman wrote: Hi All I am having a problem getting stream_set_blocking to work the way I expect on STDIN. Please could someone tell me why while blocking is set to false fread does not get anything. When a file descriptor (stdin) is non-blocking, any read

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Jason Pruim
On Aug 16, 2007, at 11:56 AM, Daniel Brown wrote: On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote: Unless I use sessions maybe? Could I write the sort order into a session variable and have that change? Or did I completely misunde

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Jason Pruim
won't be able to set a session from an SHTML file either. Then I'm lost... What do other people do when they need to make the page look good? Just do all the formatting in the php page? Or through includes with css files? -- Jason Pruim Raoset Inc. Technology Manager MQC Speci

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Jason Pruim
On Aug 16, 2007, at 10:34 AM, Daniel Brown wrote: On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: Hey Everyone, Is it possible to have variables affect the database results of an included php page in a shtml page? Let me try and clear that up... index.shtml?order=a < that

[PHP] STDIN Stream Query

2007-08-16 Thread Jason Freeman
); $pos = fread(STDIN, 1024); fputs(STDOUT, "-->".$pos."\r\n"); ?> Actual Output: php5 test.php ^[[24;1R --> --> --> --> --> --> --> --> --> --> --> Expected Output: php5 test.php ^[[24;1R --> --> --> --> -->

[PHP] A question that has been bugging me..

2007-08-16 Thread Jason Pruim
hing with AJAX, but that's beyond the scope of this list and WAY beyond what I understand :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED]

[PHP] Friday morning brain farts....

2007-08-10 Thread Jason Pruim
RAIDer/webserver/Documents/tests/legion/index.php on line 6 Any help will be greatly appreciated.. And if it solves the problem I'll name some of my kids* after you! *Subject to approval of the Wife :) -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED]

Re: [PHP] Not quite OT but maybe close... Help with MySQL

2007-08-08 Thread Jason Pruim
On Aug 8, 2007, at 2:00 PM, Daniel Brown wrote: On 8/8/07, Jason Pruim <[EMAIL PROTECTED]> wrote: Hey everyone, I tried asking this question on the MySQL list but haven't gotten very many helpful responses... Does anyone know how to successfully import a excel file into MySQL (To

[PHP] Not quite OT but maybe close... Help with MySQL

2007-08-08 Thread Jason Pruim
of my excel file with no errors... Any ideas? -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED]

Re: [PHP] Cut text from a string

2007-08-08 Thread Jason Pruim
phpgeneralaug07 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/

Re: [PHP] javascript in or in ?

2007-08-07 Thread Jason Pruim
st this is? Yeah!! This list is for public apologies and Copyright discussion. Cheers, Rob. -- Oh yeah, Tedd is only the first of thousands of people that need to apologize... :P "Later this week on Php-General, witness the revolutionary confessions of a PHP Programmer stuck in the middle of a

Re: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Jason Pruim
ith the regular mysql... But I want to use a prepared statement for inserting into the database, and my understanding is I can't use prepared statements in the old mysql... Is that the case? Anyone have any ideas? I'm drawing a blank... Even having issues with the stuff copied off th

[PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Jason Pruim
Yes I am hijacking a thread just to screw with all the people who use threaded e-mail viewers and because I'm mean like that :P Figured since yall have to much time on your hands anyway I'd give you something else to gripe about... :) Now... My question :) host_info); /* close connection

[PHP] Problem with php mail

2007-08-04 Thread Jason Sia
Hi Everyone, I'm having problem with php mail. When I try to create an html message with only mydomain, gmail is registering it as a spam while yahoo is not. Can you suggest solutions to my problem. Thanks, Jason Send instant messages to your online friends

Re: [PHP] I'm prepared to feel like an idiot... But I just simply need the answer :)

2007-08-01 Thread Jason Pruim
took Dan's advice and symlinked it to get it up and running. Thanks for the help! -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

<    2   3   4   5   6   7   8   9   10   11   >