Re: [PHP] checkboxes & php
You need to give the checkboxes unique names like user1, user2 user3 RW Quoting Greg <[EMAIL PROTECTED]>: ### If I have 3 checkboxes labeled "user", but each one has a seperate value, ### how do I get the values of each checkbox? For example, how would I tell ### if ### the following checkboxes are checked? ### ### ### ### ### ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] http://xend.net 602-971-2791 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] checkboxes & php
Do you, prehaps, wants to use radio buttons instead? RW Quoting Greg <[EMAIL PROTECTED]>: ### If I have 3 checkboxes labeled "user", but each one has a seperate value, ### how do I get the values of each checkbox? For example, how would I tell ### if ### the following checkboxes are checked? ### ### ### ### ### ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] http://xend.net 602-971-2791 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] checkboxes & php
I just logged in to my Yahoo mail account. I have only one account, but when I went to Preferences, it had a , which you might want to consider RW Quoting Greg <[EMAIL PROTECTED]>: ### I want to be able to let people check multiple values. I want them to be ### given a list of usernames and check the ones they want deleted, so a ### radio ### button won't work. If you go to Yahoo mail and select more than one ### checkbox, you can delete more than one item. I looked at the source and ### all ### the checkboxes are called "Mid". Any ideas? ### /Greg ### ### ### "Edward Peloke" <[EMAIL PROTECTED]> wrote in message ### [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ### > why would you give them all the same name? I can see this for radio ### buttons ### > but not checkboxes. ### > ### > -Original Message- ### > From: Greg [mailto:[EMAIL PROTECTED]] ### > Sent: Friday, January 24, 2003 3:27 PM ### > To: [EMAIL PROTECTED] ### > Subject: [PHP] checkboxes & php ### > ### > ### > If I have 3 checkboxes labeled "user", but each one has a seperate ### value, ### > how do I get the values of each checkbox? For example, how would I ### tell ### if ### > the following checkboxes are checked? ### > ### > ### > ### > ### > ### > ### > ### > ### > -- ### > PHP General Mailing List (http://www.php.net/) ### > To unsubscribe, visit: http://www.php.net/unsub.php ### > ### > ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] http://xend.net 602-971-2791 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] checkboxes & php
Quoting Chris Boget <[EMAIL PROTECTED]>: ### > applies to selection lists, not checkboxes ### ### Indeed. But I believe he was offering that as an alternative. :) Ahem! Thanks Chris! RW ### Chris ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] http://xend.net 602-971-2791 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] sessions IE 6.0 problem
You need to append 'bar' to your foo page! RW Quoting news <[EMAIL PROTECTED]>: ### Sessions aren't getting set. ### ### my parent frame is on xyz.com ### A frame on xyz.com loads a frame that contains a page on foo.com ### the page on foo.com start a session and sets a variable. ### ### but the IE does not accept this session. ### ### I've loaded this page on foo.com directly and it sets the session fine, but ### if ### I go to this page from the frame it never gets set. ### ### Any ideas on how to fix this? ### ### I tested this with Opera and Mozillo and had no problems. ### ### -mm ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] http://xend.net 602-971-2791 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] + in filenames
Some sample code would help, but maybe try urldecode('$filename'); RW Quoting Victor <[EMAIL PROTECTED]>: ### I have a file upload field, and some filename checking code, but it ### breaks the code whenever a + is inside the filename it verifies space ### and other tags but breaks on + in the name. Anyone know a fix for this ### please? ### ### - Vic ### ### __ ### Post your free ad now! http://personals.yahoo.ca ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] http://xend.net 602-971-2791 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] + in filenames
Victor! What are you trying to accomplish? Do you want to preserve the original filename? Why not give uploaded files uniformly unique names? In other words, where are the +'s coming from? So, a little more detail, please! RW Quoting Victor <[EMAIL PROTECTED]>: ### Here is some sample code: ### ### ### ### $file_name = explode(".", $_FILES['picture']['name']); ### $name = str_replace('', '_', $file_name[0]); ### ### # check if file uploaded is good ### if ### ( ### !in_array($_FILES['picture']['type'], ### $file_type) ### || trim($_FILES['picture']['tmp_name']) == "" ### || trim($_FILES['picture']['tmp_name']) == ### "none" ### ) ### { ### echo ('You can upload a JPG or JPEG filetype ### only.'); ### ### exit; ### } ### ### # Add slashes to prevent certain errors ### $picture_name = strip_tags($_FILES['picture']['name']); ### $picture_name = addslashes($picture_name); ### $picture_name = str_replace("\r\n", "", $picture_name); ### $picture_name = str_replace(" ", "", $picture_name); ### ### ### ### -Original Message- ### From: Richard Whitney [mailto:[EMAIL PROTECTED]] ### Sent: Saturday, January 25, 2003 5:12 PM ### To: Victor ### Cc: [EMAIL PROTECTED] ### Subject: Re: [PHP] + in filenames ### ### Some sample code would help, but maybe try urldecode('$filename'); ### ### RW ### ### Quoting Victor <[EMAIL PROTECTED]>: ### ### ### I have a file upload field, and some filename checking code, but it ### ### breaks the code whenever a + is inside the filename it verifies ### space ### ### and other tags but breaks on + in the name. Anyone know a fix for ### this ### ### please? ### ### ### ### - Vic ### ### ### ### ### __ ### ### Post your free ad now! http://personals.yahoo.ca ### ### ### ### -- ### ### PHP General Mailing List (http://www.php.net/) ### ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### ### ### ### ### ### -- ### Richard Whitney ### Transcend Development ### Producing the next phase of your internet presence. ### [EMAIL PROTECTED] ### http://xend.net ### 602-971-2791 ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### __________ ### Post your free ad now! http://personals.yahoo.ca ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] http://xend.net 602-971-2791 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: How do you update multiple rows at the same time?
Steve! Could you be more specific and send some code you are using (even if it doesn't work). It may give some insight as to your specific need. That said, as far as I can tell, what you are trying to accomplish is this: $sql = "UPDATE tablename SET 1column = '$newvariable' WHERE 1column = '$oldvariable'"; This will effectively update any number of rows that match the criteria. Maybe you are trying to update rows where 1column values don't match? If so, you may need to run multiple queries. It's late and I'm guessing. Good Luck! RW Quoting Max Tappenden <[EMAIL PROTECTED]>: ### You on MySQL? ### If so do this ### UPDATE tblName SET firstcol = '$var41stcol', $secondcol = '$var42ndcol' ### and so on ### "Steve Jackson" <[EMAIL PROTECTED]> wrote in message ### 01c2c3a0$27591b50$[EMAIL PROTECTED]">news:01c2c3a0$27591b50$[EMAIL PROTECTED]... ### > I am having trouble with this. ### > I need to update 1column in a variable number of rows depending on how ### > many categories are in my database at a given time. ### > ### > Can anyone provide any pointers or example code ### > ### > ### > Steve Jackson ### > Web Developer ### > Viola Systems Ltd. ### > <http://www.violasystems.com/> http://www.violasystems.com ### > [EMAIL PROTECTED] ### > Mobile +358 50 343 5159 ### > ### > ### > ### > ### > ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] http://xend.net 602-971-2791 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] DB row selection
You might want to look at mysql_data_seek() HTH RVW Quoting Hans Prins <[EMAIL PROTECTED]>: ### Hello, ### I recently learnt that with the code as stated below, I can select one ### row: ### ### $query = "SELECT * FROM polls ORDER BY pollID ASC LIMIT 0,1"; ### ### However as far as I could figure out, I can only select the top row or ### tell ### it at what rownumber to start and end. What if I wanted to select the ### bottom ### row? Would I have to do an extra query to count the rows and then select ### it ### with LIMIT? ### ### Or is there a way to do this without an extra query? ### ### thx, ### ### Hans ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Passing info to forms
Quoting Chris Blake <[EMAIL PROTECTED]>: ### Greetings all, ### ### Whenever I run the code below, it bombs out with error ### ### ### Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or ### `T_NUM_STRING' in /home/data/ClientWebs/chrisplay/CustAmend.php on line ### 15 ### = ### ### Basically, I am trying to pass info from an array from a previous page, ### where $row['ClientID'] is one of the fields I want to populate my page ### with...here`s the code for the whole page .. ### ### === ### ### Error performing query: " . mysql_error() . ### ""); ### exit(); ###} ### ### $row = mysql_fetch_array($ResGetClient); ### ### ?> ### ### === ### ### 5 days into PHP so this stuff is all new...perhaps I`m missing the boat ### totally. I visited PHP.com and phpfreaks but couldn`t find info on ### passing variables between forms. ### ### Thanks in advance for any assistance. ### ### -- ### Chris Blake ### Office : (011) 782-0840 ### Cell : 083 985 0379 ### It is reported that somewhere in the world, every 15 seconds, a woman ### gives birth to a child. She must be found and stopped. ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Passing info to forms
Quoting Chris Blake <[EMAIL PROTECTED]>: ### Greetings all, ### ### Whenever I run the code below, it bombs out with error ### ### ### Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or ### `T_NUM_STRING' in /home/data/ClientWebs/chrisplay/CustAmend.php on line ### 15 ### = ### ### Basically, I am trying to pass info from an array from a previous page, ### where $row['ClientID'] is one of the fields I want to populate my page ### with...here`s the code for the whole page .. ### ### === ### ### Error performing query: " . mysql_error() . ### ""); ### exit(); ###} ### ### $row = mysql_fetch_array($ResGetClient); ### ### ?> ### ### === ### ### 5 days into PHP so this stuff is all new...perhaps I`m missing the boat ### totally. I visited PHP.com and phpfreaks but couldn`t find info on ### passing variables between forms. ### ### Thanks in advance for any assistance. ### ### -- ### Chris Blake ### Office : (011) 782-0840 ### Cell : 083 985 0379 ### It is reported that somewhere in the world, every 15 seconds, a woman ### gives birth to a child. She must be found and stopped. ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP][PHP] Money Decimals
Do you ever want to show more then .00 in the decimals place? If not, strip everything off of the number after the decimal including the decimal. then format the number on retrieval by using number_format($number,2); HTH RVW Quoting Dennis Cole <[EMAIL PROTECTED]>: ### I am writing a script that will take amount out of a database then ### display ### them on the page. But, some of these are like "46.0" or "46" or "46.005", ### and they all need to look like "46.00". Is there an easy way to do this. ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] is there php debuggers or IDE under Linux?
I use a hardened release of Redhat called SME Server ( http://e-smith.org ) that works very nicely as a development environment. I also use it for my production server (40+ domains). The 5.5 release comes packaged with PHP v4.1.2 . The newest release 5.6 I am not sure what version of PHP it comes with but it's very easy to turn error reporting on and I use it a lot just for that. Forgive me if this is irrelevant - I am quite drunk! Quoting Andrey Ivanov <[EMAIL PROTECTED]>: ### Hi, people. ### ### I've been trying setup dbg-2.11.5 under RedHat-7.3, but can't find ### dbg-client for this OS. ### Which php-debugger do you use under Linux? ### ### Thank you. ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] is there php debuggers or IDE under Linux?
Of course, you'll need a separate box for SME Server! Quoting Andrey Ivanov <[EMAIL PROTECTED]>: ### Hi, people. ### ### ### I've been trying setup dbg-2.11.5 under RedHat-7.3, but can't find ### dbg-client for this OS. ### Which php-debugger do you use under Linux? ### ### ### Thank you. ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Dynamic Dropdowns
Oh! Yes you can: Some Value Have fun! Quoting Steven Kallstrom <[EMAIL PROTECTED]>: ### Hey PHP lovers, ### ### I am creating dynamic drop down lists... I would like to have an ### option appear in the drop down list, but have it greyed-out and not be ### selectable... I know you can disable selects, but I don't think you can ### disable individual options in selects... anyone have any ideas? ### ### Thanks a ton, ### ### Steven ### ### ### ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Editors
A search on rpmfind.net produced no results Perhaps it has not been ported to linux Quoting James Hatridge <[EMAIL PROTECTED]>: ### HI Pierre et al ### ### On Sunday 23 February 2003 11:14, Pierre Vaudrey wrote: ### > Hi, ### > ### > The site is http://www.maguma.com ### > ### > Pierre ### ### This interested me too. So I looked at the site but was only able to find ### an ### exe file. Do you know where I can get a Linux tar ball or RPM file? ### ### Thanks ### ### JIM ### ### ### ### ### > -Message d'origine- ### > De : Karl James [mailto:[EMAIL PROTECTED] ### > Envoye : dimanche 23 fevrier 2003 10:19 ### > A : [EMAIL PROTECTED] ### > Objet : [PHP] Editors ### > ### > Anyone have the link on where I can download maguma php editor? ### Whatever ### > the latest version is. ### > I need if for my class. ### > I tried to do a search on google and they are were dead links. ### > ### > ### > Karl ### ### -- ### Jim Hatridge ### Linux User #88484 ### -- ### BayerWulf ###Linux System # 129656 ### The Recycled Beowulf Project ### Looking for throw-away or obsolete computers and parts ###to recycle into a Linux super computer ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Empty Query
### I have this: ### ### [serial] ### [model] ### [yr_blt] ### [km] ### [price] ### [hours] ### [details] ### [location] ### double[style] All of the 1 are the variables being passed, the word is hardcoded for clarity What I get half the time: Couldn't insert dataQuery was empty ### ### The variables are obviously being passed ### ### Here's my insert query: ### ### if($img == ""){$sql = "INSERT INTO vehicles ( `id` ,`serial`, `model` , ### `yr_blt` , `km` , `price` , `hours` , `details` , `location` , `img`, ### `tstamp`, ### `style`) ### VALUES ('', '$serial', '$model', '$yr_blt', '$km', '$price', ### '$hours', ### '$details', '$location', '0', '$tstamp', '$style');"; ### } ### else ### { ### ### $file_dir="/services/webpages/o/f/offroad-imports.com/public/uploads/mogs/$serial"; ### if (!is_dir($file_dir)){ ### umask(000); ### mkdir($file_dir,0777); ### } ### else{ ### umask(000); ### ### $path = $file_dir . "/1.jpg"; ### move_uploaded_file($img, $path)or die('Could not upload photo'); ### $sql = "INSERT INTO vehicles ( `id` ,`serial`, `model` , `yr_blt` , `km` ### , ### `price` , `hours` , `details` , `location` , `img`, `tstamp`, `style`) ### VALUES ('', '$serial', '$model', '$yr_blt', '$km', '$price', ### '$hours', ### '$details', '$location', '1', '$tstamp', '$style');"; ### } ### ### } Any thoughts? Enlightenment? Thanks -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mysql trouble
Quoting Luis A <[EMAIL PROTECTED]>: ### hi pasl i got a troblem here ### ### ### if some one can help me ? ### ### take a look at this ### ### ### ### ### HE DOES NOT WORKING ### ### any subjest ? ### ### ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] good database design tool?
Have you researched anything at all? go to http://hotscripts.com Quoting Chris Edwards <[EMAIL PROTECTED]>: ### Hi ### ### Anyone have any suggestions on a good and cheap database design tool. ### I'm ### looking at something that has the features of MS Visio but thats way ### cheaper. I want it to be able to help me build entity-relationship ### diagrams ### and stuff. ### ### Thanks. ### -- ### Chris Edwards ### Web Application Developer ### Outer Banks Internet, Inc. ### 252-441-6698 ### [EMAIL PROTECTED] ### http://www.OuterBanksInternet.com ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] no phun intended!!!
BRAVO!!! Quoting Niels Andersen <[EMAIL PROTECTED]>: ### LOL ### ### I like PHP, but I also like wet girlies. But the two are not ### interchangable, ### which is a pitty, becouse sometimes I really could use a wet girl, and I ### only have PHP ### ### ### ### "Khalid El-Kary" <[EMAIL PROTECTED]> wrote in message ### news:[EMAIL PROTECTED] ### > sorry, but if PHP (a great piece of knowledge) worths a wet girl for ### you, ### so ### > you don't know how to appreciate knowledge. ### > ### > "Both PHP and mod_perl are knowledge, science that's more honourful than ### a ### > wet girl" ### > ### > Regards, ### > Khalid Al-Kary ### > http://creaturesx.ma.cx/kxparse/ ### > ### > >http://www.fingers.co.za/arb/mod_perl.jpg ### > > ### > >If this starts a flame war, I'm going to be rather disappointed at ### people ### > >that's not able to take a joke :P ### > > ### > >I think it's hilarious though... ### > > ### > >-- ### > >me ### > > ### > > ### > >-- ### > >PHP General Mailing List (http://www.php.net/) ### > >To unsubscribe, visit: http://www.php.net/unsub.php ### > ### > ### > _ ### > MSN 8 with e-mail virus protection service: 2 months FREE* ### > http://join.msn.com/?page=features/virus ### > ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] What's this _FILE junk?
A couple of other things: Some versions or settings of PHP don't like the $_FILE thing. If your enctype is set try just print '[]'.$imprintpicture; The brackets are just to print SOMETHING to the page if $imprintpicture produces nothing HTH Quoting Pete James <[EMAIL PROTECTED]>: ### Is your form enctype set? ### ### Like so: ### ### ### ### ### Liam Gibbs wrote: ### > This line: ### > ### > ### > when clicking submit, produces nothing. I print_r ### $_FILES["imprintpicture"], I try to echo $_FILES["imprintpicture"]["name"] ### or ["tmp_name"] and nothing comes up. Any reason? ### > ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Isn't it grea...t
On St. Paddy's Day, let's all raise a pint and say, Here, Here! Quoting Bix <[EMAIL PROTECTED]>: ### I think it is an amazing feat to have a scripting language with such a ### comprehensive (with user notes) documentation, helpful community of users ### and developers, and a team of writers who for little reward, continue to ### develop PHP to make it work better and faster for us all to use. ### ### So here's to PHP! ### ### Keep up the good work. ### ### ;o) ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Eliminating space between HR and Image
Here is your code: First, make a one pixel png the color you want your HR Et, Voila! Quoting Michiel van Heusden <[EMAIL PROTECTED]>: ### this is an HTML-problem, not php..but anyway ### ### i have no clue why the extra space would appear, ### but I'd try to add absolute positiong to the HR and IMAGE as well, that ### should solve the problem ### ### like: ### ### <!-- ### hr { ### position: absolute; ### top: 0px; ### } ### img { ### position: absolute; ### top: 8px; ### } ### --> ### ### ### grace ### michiel ### ### ### "Andre Dubuc" <[EMAIL PROTECTED]> wrote in message ### news:[EMAIL PROTECTED] ### > Hi, ### > ### > I've added an animated gif in the banner area of my site, and just ### above ### it, ### > a horizontal rule to give added emphasis. The problem is, no matter what ### I ### > do, I cannot get rid of an extra space that appears between the two. Is ### this ### > a natural function? Is there some way of eliminating the space? ### > ### > The code: ### > ### > . . . . ### > ### > ### > ### > ### > . . . ### > ?> ### > ### > CSS code: ### > ### > div.banner { ### > position: absolute; ### > top: 0px; ### > left: 1%; ### > } ### > ### > I will be grateful for any ideas or advice on how to fix this. ### > Tia, ### > Andre ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] multiple foreach
Maybe someone can see what I'm trying to do with this: foreach($charge as $c){ foreach($size_id as $s){$sql = "UPDATE products_to_sizes SET surcharge = '$c' WHERE product_id = '$products_id' AND size_id = '$s'"; mysql_query($sql) or die ("Couldn't update rows".MYSQL_ERROR()); print $sql.'';} } I get this: UPDATE products_to_sizes SET surcharge = '1.50' WHERE product_id = '28' AND size_id = '6' UPDATE products_to_sizes SET surcharge = '1.50' WHERE product_id = '28' AND size_id = '7' UPDATE products_to_sizes SET surcharge = '3.00' WHERE product_id = '28' AND size_id = '6' UPDATE products_to_sizes SET surcharge = '3.00' WHERE product_id = '28' AND size_id = '7' I need to get rid of the two middle statements Help!! :-) -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] multiple foreach
Thank you, Martin - you're a certifiable genius! It's just that $size needed to be $size_id - I fixed that, though. Thanks! Richard Quoting Martin Towell <[EMAIL PROTECTED]>: ### try this... ### ### for ($i = 0; $i < count($charge); $i++) ### { ### $c = $charge[$i]; ### $s = $size[$i]; ### $sql = "UPDATE products_to_sizes SET surcharge = '$c' ### WHERE product_id = '$products_id' AND size_id = '$s'"; ### mysql_query($sql) or die ("Couldn't update rows".MYSQL_ERROR()); ### print $sql.''; ### } ### ### -Original Message- ### From: Richard Whitney [mailto:[EMAIL PROTECTED] ### Sent: Friday, March 21, 2003 1:00 PM ### To: [EMAIL PROTECTED] ### Subject: [PHP] multiple foreach ### ### ### Maybe someone can see what I'm trying to do with this: ### ### foreach($charge as $c){ ### ### foreach($size_id as $s){$sql = "UPDATE products_to_sizes SET surcharge = ### '$c' ### WHERE product_id = '$products_id' AND size_id = '$s'"; ### mysql_query($sql) or die ("Couldn't update rows".MYSQL_ERROR()); ### print $sql.'';} ### } ### ### I get this: ### ### UPDATE products_to_sizes SET surcharge = '1.50' WHERE product_id = '28' ### AND ### size_id = '6' ### UPDATE products_to_sizes SET surcharge = '1.50' WHERE product_id = '28' ### AND ### size_id = '7' ### UPDATE products_to_sizes SET surcharge = '3.00' WHERE product_id = '28' ### AND ### size_id = '6' ### UPDATE products_to_sizes SET surcharge = '3.00' WHERE product_id = '28' ### AND ### size_id = '7' ### ### I need to get rid of the two middle statements ### ### Help!! :-) ### ### -- ### Richard Whitney * ### Transcend Development ### Producing the next phase of your internet presence. ### [EMAIL PROTECTED] * ### http://xend.net* ### 602-971-2791 ### * * * ### * * *__** ### _/ \___ * ### * / *\** ### */ * * \ ### **/\_ |\ ### / \_ / \ ### / \/\ ###/ \ ### /\ ### / \ ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Generated input names
Greetings! I have several (up to 100) input boxes being generated on the fly. I need to somehow grab the names generated for each one to then insert the values into a database (MySQL), one per row. I've looked at variable variables on php.net, but I thought I would pick your brains, just in case any of you have had the same situation. All suggestions are greatly appreciated! -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Generated input names
By the way, some names are various colorsappended with a size letter (i.e. BlackM, GreenXL, etc.) others are simply a letter incremented starting with a. Thanks Quoting Richard Whitney <[EMAIL PROTECTED]>: ### Greetings! ### ### I have several (up to 100) input boxes being generated on the fly. ### I need to somehow grab the names generated for each one to then insert ### the ### values into a database (MySQL), one per row. ### ### I've looked at variable variables on php.net, but I thought I would pick ### your ### brains, just in case any of you have had the same situation. ### ### All suggestions are greatly appreciated! ### ### -- ### Richard Whitney * ### Transcend Development ### Producing the next phase of your internet presence. ### [EMAIL PROTECTED] * ### http://xend.net* ### 602-971-2791 ### * * * ### * * *__** ### _/ \___ * ### * / *\** ### */ * * \ ### **/\_ |\ ### / \_ / \ ### / \/\ ###/ \ ### /\ ### / \ ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Generated input names
Thanks for your suggestions everyone - I have the problem under control! Richard Quoting Jason Wong <[EMAIL PROTECTED]>: ### On Monday 24 March 2003 12:04, Richard Whitney wrote: ### > By the way, some names are various colorsappended with a size letter ### (i.e. ### > BlackM, GreenXL, etc.) ### > ### > others are simply a letter incremented starting with a. ### ### If I was doing this I would put all form elements into an array and thus ### name ### them like: ### ### "form[BlackM]" ### "form[GreenXL]" ### etc ### ### Then I can just for-loop through $_POST['form'] (or $_GET['form']) to get ### ### everything single form element. ### ### -- ### Jason Wong -> Gremlins Associates -> www.gremlins.biz ### Open Source Software Systems Integrators ### * Web Design & Hosting * Internet & Intranet Applications Development * ### -- ### Search the list archives before you post ### http://marc.theaimsgroup.com/?l=php-general ### -- ### /* ### "I'm a mean green mother from outer space" ### -- Audrey II, The Little Shop of Horrors ### */ ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] count up from 7
Braindead! I need to evaluate a number if greater than 7 and add a value per increment. I'm frazzled and can't think straight. Thanks Guys! -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] foreach() or for()
How Do, All? Here's one unsuccessful attempt to add each $val during a for: '; ?> Conversely I need to isolate certain elements oof a foreach: Thank you! -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] foreach statement
Get rid of the error Quoting shaun <[EMAIL PROTECTED]>: ### how do i surpress an error message for a foreach statement? ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ### -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] A new set of eyes
Can you folks help me out b y looking at this code? It all of a sudden is not grabbing the email address from the DB, yet array_count_values displays it nicely. $sql_c = "SELECT * FROM customers WHERE customers_id = '$customer_id';";//gather customer info from DB $result_c = mysql_query($sql_c); $row_c = mysql_fetch_array($result_c); $msg = "Customer ID: $row_c[customers_id]\n"; $msg .= "Customer: $row_c[customers_firstname] "; $msg .= "$row_c[customers_lastname]\n"; $recipient = "$email,[EMAIL PROTECTED]"; $mailheaders = "From: $row_c[customers_firstname] $row_c[customers_lastname] <$row_c[customers_email_address]>"; $mailheaders .= "Reply-To: <$row_c[customers_email_address]>"; $subject = "Order from Active Imprints"; mail($recipient, $subject, $msg, $mailheaders) or die ("Couldn't send mail!"); -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: Anew set of eyes
Can you folks help me out b y looking at this code? It all of a sudden is not grabbing the email address from the DB, yet array_count_values displays it nicely. $sql_c = "SELECT * FROM customers WHERE customers_id = '$customer_id';";//gather customer info from DB $result_c = mysql_query($sql_c); $row_c = mysql_fetch_array($result_c); $email = "$row_c[customers_email_address]"; // I forgot this part before $msg = "Customer ID: $row_c[customers_id]\n"; $msg .= "Customer: $row_c[customers_firstname] "; $msg .= "$row_c[customers_lastname]\n"; $recipient = "$email,[EMAIL PROTECTED]"; $mailheaders = "From: $row_c[customers_firstname] $row_c[customers_lastname] <$row_c[customers_email_address]>"; $mailheaders .= "Reply-To: <$row_c[customers_email_address]>"; $subject = "Order from Active Imprints"; mail($recipient, $subject, $msg, $mailheaders) or die ("Couldn't send mail!"); -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache vs. IIS
How do you take out the Iraqi Intelligence Service? -- Richard Whitney * Transcend Development Producing the next phase of your internet presence. [EMAIL PROTECTED] * http://xend.net* 602-971-2791 * * * * * *__** _/ \___ * * / *\** */ * * \ **/\_ |\ / \_ / \ / \/\ / \ /\ / \ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mkdir() permissions
Dear List! Anyone out there using cPanel? Perhaps you could instruct me as to how to rebuild PHP, assuming we have similar file structure, such that cPanel seems to do. Many kind regards! Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Server upload test
Anyone interested in seeing how fast your server can serve up a 6.5MB file? Run this: '; $i = 1; while($i < 101){ echo $i.' '; $i++; } $end = time(); $total = $end - $start; echo ''; echo $total; ?> Just a little fun! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Server upload test
On Fri, 17 Sep 2004 10:17:41 -0700, Richard Whitney <[EMAIL PROTECTED]> wrote: > Anyone interested in seeing how fast your server can serve up a 6.5MB file? > > Run this: > > $start = time(); > echo $start; > echo ''; > $i = 1; > while($i < 101){ > echo $i.' '; > $i++; > } > $end = time(); > $total = $end - $start; > echo ''; > echo $total; > ?> > > Just a little fun! It might be good to see results from different hosts if you care to share. Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] To Rasmus
Dear Rasmus, Could you please unblock 140.99.35.6 from the mailing list. I made a mistake once. I subscribed using Gmail and I hate it. Please forgive me. Richard Whitney [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] RE: **[SPAM]** [PHP] Server upload test
Why did this mail get marked as SPAM? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] To Rasmus
On Fri, 17 Sep 2004 07:46:23 -1200, blackwater dev <[EMAIL PROTECTED]> wrote: > > > how did gmail get you blocked? Gmail did not block me - Rasmus blocked me 18 months ago when I posted a joke to 2 different mailing lists - I was just trying to make people have a laugh. Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Server upload test
> > And just what metrics do you hope to be measuring (if any)? Or is this just > for the fun of it? I have a client who was going to host his website at a particular host. It seemed rather slow so I wrote this liittle script to display the difference between that host and mine - just a visual test of the backbone behind each server. I guess this is kind of OT Huh? Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Don't Forget to Punch the Clock, Shorty!
Anyone care to try this out? Feedback welcome. http://dftpcs.com Thanks -- Richard Whitney phpmy...@gmail.com http://phpmydev.com 602-288-5340 310-943-6498 "You come up with ideas, I come up with solutions."
Re: [PHP] Don't Forget to Punch the Clock, Shorty!
It's what I use for tracking my time and payments. Should've been more specific about it. Sorry! On Thu, Feb 12, 2009 at 4:05 PM, Dotan Cohen wrote: > > Anyone care to try this out? Feedback welcome. > > > > http://dftpcs.com > > > > No. What is it? > > -- > Dotan Cohen > > http://what-is-what.com > http://gibberish.co.il > > א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת > ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي > А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я > а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я > ä-ö-ü-ß-Ä-Ö-Ü > -- Richard Whitney phpmy...@gmail.com http://phpmydev.com 602-288-5340 310-943-6498 "You come up with ideas, I come up with solutions."
Re: [PHP] Don't Forget to Punch the Clock, Shorty!
it's written in PHP and uses AJAX. Sorry for my fragmented thoughts! On Thu, Feb 12, 2009 at 4:06 PM, Richard Whitney wrote: > It's what I use for tracking my time and payments. > Should've been more specific about it. Sorry! > > > > On Thu, Feb 12, 2009 at 4:05 PM, Dotan Cohen wrote: > >> > Anyone care to try this out? Feedback welcome. >> > >> > http://dftpcs.com >> > >> >> No. What is it? >> >> -- >> Dotan Cohen >> >> http://what-is-what.com >> http://gibberish.co.il >> >> א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת >> ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي >> А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я >> а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я >> ä-ö-ü-ß-Ä-Ö-Ü >> > > > > -- > Richard Whitney > phpmy...@gmail.com > http://phpmydev.com > 602-288-5340 > 310-943-6498 > > "You come up with ideas, I come up with solutions." > -- Richard Whitney phpmy...@gmail.com http://phpmydev.com 602-288-5340 310-943-6498 "You come up with ideas, I come up with solutions."
Re: [PHP] Don't Forget to Punch the Clock, Shorty!
On Thu, Feb 12, 2009 at 4:24 PM, Dotan Cohen wrote: > > Sorry for my fragmented thoughts! > > > > In light of this [1] you are forgiven! > > I think that you will find most list members a bit too jaded to go to > a new domain name, suggested by a new poster who's name does not turn > up anything php related on Google. I'm not doubting you, just letting > you know why many list members won't visit that site. > Well I appreciate that. The domain name is not new - just new to the list. It hadn't occurred to me that I was a new poster - but it's true - an avid reader though! Thanks! Richard Whitney phpmy...@gmail.com http://phpmydev.com 602-288-5340 310-943-6498 "You come up with ideas, I come up with solutions."
Re: [PHP] Don't Forget to Punch the Clock, Shorty!
On Thu, Feb 12, 2009 at 5:05 PM, Daevid Vincent wrote: > On Thu, 2009-02-12 at 15:58 -0700, Richard Whitney wrote: > > Anyone care to try this out? Feedback welcome. > http://dftpcs.com > > Thanks > > > Also, given that this was formatted and sounded as vague as a spam email, I > simply dismissed it and moved on. Even the URL is very cryptic (although I > realize NOW that it's an acronym, at the time it looked random letters as > phishers use). > > I have no interest in registering and giving you my email, etc. just to try > a SaaS that i have ZERO idea how it works or what it does. There is no > description. No screenshots. no anything. Why not provide a 'test/test123' > account if you want people to try it out. Not to mention the time it would > take for me to populate your tool with data to be useful enough to evaluate. > > http://daevid.com > good idea Daevid! Thanks! http://dftpcs.com u: testing p: testing123 -- Richard Whitney phpmy...@gmail.com http://phpmydev.com 602-288-5340 310-943-6498 "You come up with ideas, I come up with solutions."
Re: [PHP] What in Hades?
On Thu, Feb 26, 2009 at 9:14 AM, PJ wrote: > Something is rotten here. Twist it any way you like and it just does not > work. > I am trying to figure out the working of SELECT LAST_INSERT_ID() and > cannot get beyond the first $sql - But it works fine from command-line! > > include ("lib/db1.php");// Connect to database > > $sql1 = "INSERT INTO test (name, age) VALUES ('Joe Blow', '69')"; > $result1 = mysql_query($sql1,$db); > if ( !$result) { // notice the $result, should be $result1 echo("Error performing query: " . > mysql_error() . ""); > exit(); > } > Hope that helps Richard > > THIS IS WHERE IT STOPS WITH ERROR.$sql1 just refuses to work. db > connection is fine and the INSERT works from xterm on remote puter. > Can't figure this out. > > > > $sql = "SELECT LAST_INSERT_ID() FROM test"; > $result = mysql_query($sql,$db); > if (!$result) { > echo("Error performing query: " . > mysql_error() . ""); > exit(); > } > while ( $row = mysql_fetch_array($result) ) { > echo("" . $row["id"] . ""); > } > ?> > > What am I missing here? Or how can I trace the error? > > -- > > Phil Jourdan --- p...@ptahhotep.com > http://www.ptahhotep.com > http://www.chiccantine.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Richard Whitney phpmy...@gmail.com http://phpmydev.com 602-288-5340 310-943-6498 "You come up with ideas, I come up with solutions."