[PHP] Re: Extracting random rows

2003-11-03 Thread Shivanischal
hi, do try this - select * from my_table orer by rand() limit my_max_rows like select * from questions order by rand() limit 5. works for me. i'm surprised too. but if u still want to do it in PHP, do go ahead. warm regards, -shiva Scott [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] Persistent database connections in PHP

2003-09-04 Thread Shivanischal
Hi friends, I wanted help on how to achieve persistent database connections in PHP. The database i use is MySQL. I would be grateful if u could also guide me to resources that tell me how to do it. Thanks, -shiva -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: mail + regex + somethoughts

2003-07-03 Thread Shivanischal A
responses. I'm sorry for the confusion arising coz of incorrect statement. Thanks and Regards, -shiva - Original Message - From: - Edwin - [EMAIL PROTECTED] To: Shivanischal A [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 1:55 PM Subject: Re: [PHP] mail + regex

[PHP] mail + regex + somethoughts

2003-07-02 Thread Shivanischal A
Hi friends, I was just wondering about this. Whenver we reply to the posts here, we just click on the reply button and fire off our messages. This results in long messages (fresh content + earlier content) within a single mail. Now, the question is how would we use the regex functions to remove

[PHP] Re: Subtracting dates in php

2003-07-01 Thread Shivanischal A
try http://www.phpclasses.org -shiva Mike Mannakee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Anyone know of an easy way to add or subtract dates in php the way you can in mysql? Easier, that is, than coding the logic by hand? This seems like a total pain. Mike --

[PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Shivanischal A
hi, seems u have complicated task on hand mate. cant u simply consider span the user input over multiple pages? i mean using 2 or more form on different pages instead of a single form on one single page. if this cant be done, we'll think of other measures. but this is by far the most simple

Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Shivanischal A
working for you. You see, the main thing here is that I need to KNOW when someone who says they have submitted something actually have, and that they are not trying their luck... On Tue, 2003-07-01 at 13:43, Shivanischal A wrote: hi, seems u have complicated task on hand mate. cant u simply

[PHP] Re: php - printer button

2003-07-01 Thread Shivanischal A
hi, PHP dos have some printer_* functions. had a look? :-) -shiva [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear all, I have research about library automation engine in my library. developing on PHP + MySQL We need to develop printer utility at some module to get print out

[PHP] Re: please help

2003-06-30 Thread Shivanischal A
option value=?=$row['area']??=$row['area']?/option is the culprit. instead use option value=?=$row['area']??=$row['area']?/option what u missed were the double quotes around the value. u HAVE TO do that for values with space in between . regards, -shiva Nabil [EMAIL PROTECTED] wrote in

[PHP] Re: Small Error in Login Script

2003-06-30 Thread Shivanischal A
hi, this is what i found... -- ? session_start(); error_reporting(E_ALL); if ( (isset($_POST['validuser'])) (isset($_POST['password'])) ) { mysql_connect( 'localhost', 'abc', 'pwd' ) or die ( 'Unable to connect to server.' ); // Select database on

[PHP] Re: need help w/ sql query - update and select at once

2003-06-30 Thread Shivanischal A
you probably cant ge this to work in PHP. try creating a temporary table -shiva [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hi i'm trying to get this sql query to work, i'm trying to update and select at the same time, i'm not even sure if this is even possible update

[PHP] Re: need help w/ sql query - update and select at once

2003-06-30 Thread Shivanischal A
you probably cant ge this to work in MySQL. try creating a temporary table Shivanischal A [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] you probably cant ge this to work in PHP. try creating a temporary table -shiva [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED