RE: [PHP] What am I doing wrong?

2009-04-17 Thread Jay Blanchard
[snip] I can't seem to understand PHP error trapping...I have it turned on in php.ini, and on the page in question, I have error_reporting(E_ALL); on the page in question below - the following code does NOT generate any errors, but it doesn't perform the insert eitherthe stored procedure

RE: [PHP] What am I doing wrong?

2009-04-17 Thread David Stoltz
[mailto:jblanch...@pocket.com] Sent: Friday, April 17, 2009 12:17 PM To: David Stoltz; php-general@lists.php.net Subject: RE: [PHP] What am I doing wrong? [snip] I can't seem to understand PHP error trapping...I have it turned on in php.ini, and on the page in question, I have error_reporting(E_ALL

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread John Nichel
blackwater dev wrote: **First let me say that I am a linux newbie** I have installed Fedora 3 on a development box. I then downloaded the php5 source and followed the php documentation: # ./configure --with-mysql # make # make install What did you build it against? You have no webserver type in

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread Jason Wong
On Thursday 30 December 2004 22:56, blackwater dev wrote: **First let me say that I am a linux newbie** I have installed Fedora 3 on a development box. I then downloaded the php5 source and followed the php documentation: # ./configure --with-mysql # make # make install Everything went

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread blackwater dev
I don't seem to have an apxs directory.  I don't even have an apache directory as apachectl resides in /usr/sbin/apachectl Of course apache was installed from the fedora install. How do I install this against apache? On Thu, 30 Dec 2004 10:20:01 -0500, John Nichel [EMAIL PROTECTED] wrote:

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread blackwater dev
I don't seem to have an apxs directory.  I don't even have an apache directory as apachectl resides in /usr/sbin/apachectl Of course apache was installed from the fedora install. How do I install this against apache? On Thu, 30 Dec 2004 10:20:01 -0500, John Nichel [EMAIL PROTECTED] wrote:

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread John Nichel
blackwater dev wrote: I don't seem to have an apxs directory. I don't even have an apache directory as apachectl resides in /usr/sbin/apachectl Of course apache was installed from the fedora install. How do I install this against apache? I don't know if the rpm install of Apache includes apxs.

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread Rasmus Lerdorf
John Nichel wrote: I don't know if the rpm install of Apache includes apxs. If it doesn't, you'll have to install Apache from source. Usually apxs is in the apache-dev package on the various distros. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread Rory Browne
Sorry if you recieved this twice. Head's wreaked today, and I keep making mistakes, such as posting to a person instead of to the list. If you're using apache2 then you need to add something along the lines of --with-apxs to your ./configure line. With apache1.3 it was --with-apxs=/path/to/apxs.

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread blackwater dev
I just went ahead and installed apache from source with apxs then recompiled php5. I then created a info.php file which simply prints out phpinfo but get this error now. Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Warning: Unknown: Failed opening

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread John Nichel
blackwater dev wrote: I just went ahead and installed apache from source with apxs then recompiled php5. I then created a info.php file which simply prints out phpinfo but get this error now. Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Warning: Unknown: Failed

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread Bruce Douglas
... peace.. -Original Message- From: Rory Browne [EMAIL PROTECTED] Sent: Dec 30, 2004 11:00 AM To: php-general@lists.php.net Subject: Re: [PHP] what am I doing wrong? PHP5 on Fedora Sorry if you recieved this twice. Head's wreaked today, and I keep making mistakes, such as posting

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread blackwater dev
I actually recompiled it all but was getting permission errors. I then rebooted and now linux seems to want to use the old apache instead of the new one I compiled with php support so I have to fix my environment variables to point to the new apache and figure out my permission errors. Thanks!

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread tr
John Nichel wrote / napísal (a): blackwater dev wrote: I just went ahead and installed apache from source with apxs then recompiled php5. I then created a info.php file which simply prints out phpinfo but get this error now. Warning: Unknown: failed to open stream: Permission denied in Unknown

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread tr
tr wrote / napísal (a): John Nichel wrote / napísal (a): blackwater dev wrote: I just went ahead and installed apache from source with apxs then recompiled php5. I then created a info.php file which simply prints out phpinfo but get this error now. Warning: Unknown: failed to open stream:

Re: [PHP] what am I doing wrong? PHP5 on Fedora

2004-12-30 Thread John Nichel
tr wrote: tr wrote / napísal (a): John Nichel wrote / napísal (a): blackwater dev wrote: I just went ahead and installed apache from source with apxs then recompiled php5. I then created a info.php file which simply prints out phpinfo but get this error now. Warning: Unknown: failed to open

RE: [PHP] What am I doing wrong - PHP

2004-11-12 Thread Chris W. Parker
Stuart Felenstein mailto:[EMAIL PROTECTED] on Friday, November 12, 2004 12:54 PM said: //This is my call to the table staindtypes ?php mysql_select_db($database_lokale, $lokale); $indque1 = SELECT * FROM staindtypes; $inds = mysql_query($indque1, $lokale) or die(mysql_error());

RE: [PHP] What am I doing wrong - PHP

2004-11-12 Thread Mike Johnson
From: Stuart Felenstein [mailto:[EMAIL PROTECTED] Ok, hopefully I can explain this clearly, even though I think I might be an idiot since Ive been going on about this for a few days. I have a table that holds values and labels i.e. 1 = New York 2 = Boston 3 = Kansas City

Re: [PHP] what am i doing wrong..??

2004-11-04 Thread bbonkosk
Echo out your queries! $query = insert into joke values('',.$_POST['joke_text'].,'date'); --- echo $query; $result= mysql_query($query); This will tell you what is going on, perhaps some of the information is not set? You can even copy and paste the output to run against your mysql backend on

RE: [PHP] what am i doing wrong..??

2004-11-04 Thread Jack . van . Zanen
?php $_SERVER['PHP_SELF'] ? somehow keeps the $_GET variables. If you change this to the real script name it seems to work JACK -Original Message- From: Aalee [mailto:[EMAIL PROTECTED] Sent: Thursday, November 04, 2004 1:54 PM To: [EMAIL PROTECTED] Subject: [PHP] what am i doing

Re: [PHP] what am i doing wrong..??

2004-11-04 Thread M. Sokolewicz
well ofcourse it keeps the get variables as you put it. PHP_SELF is the path and arguments that php was called with. use phpinfo(); to find out which variables hold the real path, make sure to add some random get variables when calling that script so you see the difference Jack Van Zanen

Re: [PHP] What am i doing wrong? SQL Query in PHP

2003-03-09 Thread Chris Hayes
At 13:37 9-3-2003, you wrote: I want to display the first 3 words of my record in the my table and following is the code i'm using. When i use the SQL Query in mySQL.. it works great.. but when i try to implement it in my php page.. i'm not getting anything.. no error, no display, no result.. just

Re: [PHP] What am i doing wrong? SQL Query in PHP

2003-03-09 Thread Rahul.Brenda
Ok i tried this.. and i didn't get any error listed.. so it seems that the mySQL Query is not failing in syntax or logic.. but it's not picking up any rows. Which is really stupid because i used my phpmyadmin and i ran this SQL Query there and even then i got my results.. --- Chris Hayes [EMAIL

Re: [PHP] What am i doing wrong? SQL Query in PHP

2003-03-09 Thread - Edwin
Hello, Rahul.Brenda [EMAIL PROTECTED] wrote: Ok i tried this.. and i didn't get any error listed.. so it seems that the mySQL Query is not failing in syntax or logic.. but it's not picking up any rows. Which is really stupid because i used my phpmyadmin and i ran this SQL Query there and

Re: [PHP] What am i doing wrong? SQL Query in PHP

2003-03-09 Thread Chris Hayes
At 13:37 9-3-2003, you wrote: if ($myrow = mysql_fetch_array($result)) { do { echo( $myrow[title] ); } while ($myrow = mysql_fetch_array($result)); } PS same result with while ($myrow = mysql_fetch_array($result)); { echo $myrow['title']; } -- PHP General Mailing List

Re: [PHP] What am i doing wrong? SQL Query in PHP

2003-03-09 Thread chris
On Sun, 9 Mar 2003 04:37:47 -0800 (PST), Rahul.Brenda [EMAIL PROTECTED] wrote: I want to display the first 3 words of my record in the my table and following is the code i'm using. When i use the SQL Query in mySQL.. it works great.. but when i try to implement it in my php page.. i'm not

Re: [PHP] What am i doing wrong? SQL Query in PHP

2003-03-09 Thread Rahul.Brenda
Hi, So, you still have a blank page? Yes i do actually, and blank in HTML Source too. do you have display_errors = On in your php.ini? Ahan.. yes i do. to this: echo $myrow[title]; makes any difference. No actually it didnt. :0( Rahul S. Johari

Re: [PHP] What am i doing wrong? SQL Query in PHP [WORKS!!]

2003-03-09 Thread Rahul.Brenda
Chris, Thanks a lot.. THIS WORKS! Works brilliantly. All other methods were just failing. Thanks man. // fetch row is faster than fetch_assoc, which is faster than fetch_array // fetch_result might even be a better choice here, though, with only one item... if (!mysql_num_rows($result)) {

RE: [PHP] What am i doing wrong? SQL Query in PHP

2003-03-09 Thread John W. Holmes
I want to display the first 3 words of my record in the my table and following is the code i'm using. When i use the SQL Query in mySQL.. it works great.. but when i try to implement it in my php page.. i'm not getting anything.. no error, no display, no result.. just blank.. why? ?php

RE: [PHP] What am i doing wrong? SQL Query in PHP

2003-03-09 Thread Rahul.Brenda
Hi, Thanks.. i went through your reply and certainly now i understand the mistake i was making. Quite logical actually, that i hadn't actually selected the title column. But i'm sure i wouldnt' have been able to figure this out myself. And surely, i too try to stay away from Numerical Indexes.