[PHP-DB] Obsession for Oil

2002-10-14 Thread CK Raju

Reports of US annexing Iraq  appears to be highly disturbing. The oil 
reserves of Iraq appear to be the prime motive behind the US  ambition of 
ruling that country (without realising that even those reserves  are 
limited).  Perhaps it would be more good if US could concentrate on research 
to have hydrogen as fuel substitute instead of indulging in another 
arms-flexing exercise. The world is aware on who are the biggest consumers of 
oil and who contributes more to the global warming (considering the fact that 
even completely burnt hydrocarbons would produce carbon-dioxide). The world 
is also aware about the capability of  the promoters of 'free markets' to 
influence US Government and international organisations to get results in 
their favour.  These vocalists  of free markets have acquired immense 
capability to remain calm, even if  humanity is threatened, to such an extent 
that it can be compared to  any rogue organisation. The world is also aware 
on who contributed to the  loss of 5% of the ozone layer, creating a hole 
(that is gradually drifting  to the nearest pole as a result of the 
centrifugal action caused by the  rotation of the earth). The world is also 
aware about who is testing  armaments (on live targets under the name of  
carpet bombing) to flush out  mines. US should now sit and learn why some  
organisations attacked ruthless 'trading centres' and brainless 'arms 
headquarters' and what should  be done to avoid such reprisals in future.  
Perhaps this would give it enough courage to live in dignity and to let 
others live too.

CK Raju

PS : Sorry to post it here, but unilateral actions such as these have a high 
say in our career and would definitely make a change in the way we live and 
think now.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Obsession for Oil

2002-10-14 Thread CK Raju

 This isn't really the forum for this is it?
That was a response in my capacity as a human being, and we have seen similar 
postings last year post WTC incidents. I believe, perhaps very foolishly, 
that pre-emption is better than cure, and that someone influential hooked to 
this list might give a different advice to someone connected with this 
'development'. We are all here in this planet, and we don't receive any 
threats from extra-terrestrial beings. Why then do some of us get prepared to 
act this way ? Let us come out of that scare of talking politics while doing 
serious programming. They are all intertwined in daily life. 

Once again apologies for posting it here with promise of 'no more' (even as 
response).
CK Raju

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Simple search engine gone bad

2002-04-29 Thread CK Raju


 if($search)
 {
   $query = SELECT  iname, quantity, user, price FROM
 {$config[prefix]}_shop WHERE iname LIKE '%$searchword%' AND price  0

Try putting $searchword within single quotes.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] Problem with PHP connectivity with mySQL (RedHat package)

2002-04-01 Thread CK Raju

If that works fine,
check out for the php-xxx rpms including the php-mysql- one.

CK Raju



** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm

This is a virus free message scanned by Zyberway
* End of message ***




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Problem with PHP connectivity with mySQL (RedHat package)

2002-03-30 Thread CK Raju

On Saturday 30 March 2002 08:12, Saulo Silva wrote:
Hi everybody

I can't get PHP to work with mySQL. I'm using PHP as an Apache module
(RedHat) and the error message I get is the following message:

Check out all the mysql- rpms and install the correct ones. They would 
work, if you can login in to the mysql monitor.

Raju



** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm

This is a virus free message scanned by Zyberway
* End of message ***




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DB] Is it possible ?

2002-02-16 Thread CK Raju

Is it possible to get the AUTO-INCREMENTed ID's value while doing an INSERT 
and have the value INSERTed to another table in the same FORM ?

Raju



** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file noname.htm

This is a virus free message scanned by Zyberway
* End of message ***




-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Pictures+MySQL+PHP

2002-01-25 Thread CK Raju

 that I changed my mind. Gurhan OzenStoring images in the database is not a
 good idea , just store the path of Gurhan Ozenthe images in the database
 and keep your images in your hard disk... Gurhan Ozen

Since everything is on hard-disk, I personally feel, the image can be stored 
anywhere. BLOB should be easier when doing a mysqldump, or when replication 
is needed.

Anywhere else go in for storing images separately.
Raju


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] WYSIWYG HTML Editor with PHP

2001-12-08 Thread CK Raju


 I'm working on a project in my school where we need a very solid CMS system
 which has both management capabilities and if possible, has a web-based
 WYSIWYG editor that is idiot-proof.  The problem is, we are not sure how to
 start it.  Can it be done using PHP or should be go with the traditional
 Java or ActiveX objects.  If you have any solutions or have done anything
 similar, we would appreciate any help or code to get us started.


If you need a sample project I may be able to help you.
This one uses MySQL as backend.

But what is CMS. --management System ??
CK Raju

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Storing JPEG's in MySQL -- Is it possible?

2001-11-27 Thread CK Raju

Please show your script, so that we can answer you better.
CK Raju

On Tuesday 27 November 2001 16:37, PaulC wrote:
 Hi,

 I've wrote a bit of code to upload a file, and store it in a MySQL
 longblob field.
 If I upload a GIF, and store it in MySQL I am able to retrieve it fine
 using a PHP script.

 However, a JPEG uploads, but cannot be retrieved successfully.
 (I get a broken image symbol in IE)

 Does anybody know why this is???

 Thanks,
 Paul

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Validation of multiple variables using single include file

2001-11-13 Thread CK Raju

I use PHP with MySQL on Linux box.

I have some 70 odd forms in one of my application, each with varying number 
of parameters.

Is it possible to have a single function declared using JavaScript  that can 
accept multiple variables as parameters for validation check, before the form 
is submitted.

What would be the syntax ?

ie at the end of the form I can just write onClick=validate(parameterA, 
parameterB, parameterC)

Thanx in advance.
CK Raju


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Session variables

2001-08-14 Thread CK Raju

I have compiled php-4.0.6 from source with --enable-track-vars and
--enable-trans-sid options (--with-mysql and --with-apxs).

I use RH7.1 and mysql-3.23.41.

In my /usr/local/test/connect.inc I use the following code
?php
  $login = $HTTP_SESSION_VARS[login];
$passwd = $HTTP_SESSION_VARS[passwd];
$hostlink = msyql_connect(xxx, $login, $passwd) or die ---

$dblink =  mysql_select_db (yyy, $hostlink);
?

This file is invoked in all my script files. (The system works without
session variables.)

In my login file (main.html) I do a
?php
session_start();
session_register(login);
session_register(passwd);
print (form action=login.html method=POST);

print(input type=text name=login size=20input type=password
name=passwd size=20);
print (input type=submit value=login);
print(/form);
?
--

In my login.html script file I start the links to other database
utilities, where the /usr/local/test/connect.inc file is invoked.

When I run main.html, I get the following error message :
Warning : Cannot send session cookie - headers already sent by (output
started at /var/www/html/main.html: 10) in /var/www/html/main.html on
line 11

Warning : Cannot send session cache limiter - headers already sent
(output (- etc etc like the one earlier))

(These are the lines containing session_start(); and
session_register(login); in the main.html file)

In my phpinfo(), I find that
session.auto_start=ON
session.cookie_limiter i=nocache
session.cache_expire=180
session.save_path=/tmp
session.serialize_handler=php

Where could I be wrong ?

Raju



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Forms and PHP

2001-04-15 Thread CK Raju




I am using PHP4.0.0 on Mysql3.23.31 on a RH6.2(kernel2.4).

I am unsuccessful in attempting to have the FORM work with POST method, while there is 
a select with option alongwith other variables that I am accepting directly from 
text fields.
 
Its something like this
form action=analyse.php method=post
select name=
?php 
/ / I try to  populate from a table in MySQL (which works)--
/ / like this, which is in a loop--getting tableid and tablefield
 option value=$tableid$tablefield/option
?
/select
My problem starts here when I accept other variables before posting the form contents.

eg: 

input name=xxx type=text



 
input type="submit" name="submit" value="Proceed"
/form

In my analyse.php, when I try to list out the various variables posted from here, it 
doesn't show up. I even tried adding all the variables as input type=hidden before 
submitting the form, but it still doesn't show up.

When there is no select /select section, the whole variables show up.
 
Where could I be wrong ? 

Raju 
--