Re: [PHP] How to attach files with mail
G'day Usman: I just happened to have this handy ... the attachment is a mime mail class by Schumann/Ratschiller that I know works. Requires only minor changes if any. Good luck. Michael Hall On Mon, 22 Jan 2001, Usman Ghani wrote: > Hello > > I am a new user of PHP. I hope that you guys would welcome me to this community. I >am stuck on a problem that how to attach files with mail, when you are using mail( ) >of PHP. > If attachment is not possible using mail( ) then kindly let me know if there is any >other function to send mails, in PHP which can serve this purpose. > > Waiting for reply. > regards > > Usman > * Modified by Tobias Ratschiller <[EMAIL PROTECTED]>: * - General code clean-up * - separate body- and from-property * - killed some mostly un-necessary stuff */ class mime_mail { var $parts; var $to; var $from; var $headers; var $subject; var $body; /* * void mime_mail() * class constructor */ function mime_mail() { $this->parts = array(); $this->to = ""; $this->from = ""; $this->subject = ""; $this->body = ""; $this->headers = ""; } /* * void add_attachment(string message, [string name], [string cty pe]) * Add an attachment to the mail object */ function add_attachment($message, $name = "", $ctype = "application/octet-stream") { $this->parts[] = array ( "ctype" => $ctype, "message" => $message, "encode" => $encode, "name" => $name ); } /* * void build_message(array part= * Build message parts of an multipart mail */ function build_message($part) { $message = $part[ "message"]; $message = chunk_split(base64_encode($message)); $encoding = "base64"; return "Content-Type: ".$part[ "ctype"]. ($part[ "name"]? "; name = \"".$part[ "name"]. "\"" : ""). "\nContent-Transfer-Encoding: $encoding\n\n$message\n"; } /* * void build_multipart() * Build a multipart mail */ function build_multipart() { $boundary = "b".md5(uniqid(time())); $multipart = "Content-Type: multipart/mixed; boundary = $boundary\n\nThis is a MIME encoded message.\n\n--$boundary"; for($i = sizeof($this->parts)-1; $i >= 0; $i--) { $multipart .= "\n".$this->build_message($this->parts[$i]). "--$boundary"; } return $multipart.= "--\n"; } /* * void send() * Send the mail (last class-function to be called) */ function send() { $mime = ""; if (!empty($this->from)) $mime .= "From: ".$this->from. "\n"; if (!empty($this->headers)) $mime .= $this->headers. "\n"; if (!empty($this->body)) $this->add_attachment($this->body, "", "text/plain"); $mime .= "MIME-Version: 1.0\n".$this->build_multipart(); mail($this->to, $this->subject, "", $mime); } }; // end of class /* * Example usage * $attachment = fread(fopen("test.jpg", "r"), filesize("test.jpg")); $mail = new mime_mail(); $mail->from = "[EMAIL PROTECTED]"; $mail->headers = "Errors-To: [EMAIL PROTECTED]"; $mail->to = "[EMAIL PROTECTED]"; $mail->subject = "Testing..."; $mail->body = "This is just a test."; $mail->add_attachment("$attachment", "test.jpg", "image/jpeg"); $mail->send(); */ ?> -- PHP General 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] Newbie frustration!
I'm not sure if I fully understand what you want to do, but I don't see why you need a seperate index.php for each of your directories. Can't the index.php script pull content from any number of different directories?, eg: index.php?page=dir1/stuff index.php?page=dir2/stuff index.php/page=dir3/stuff Sorry if I've missed the point Michael On Tue, 23 Jan 2001, Gerry wrote: > Hello everyone: > > I started playing around with some php scripts a while ago and became > hooked on it. I have a few books but I'm afraid I'm a learn by example > kind of person and get stuck at times. > > While working on my wife's site I made headers, footers, navigation and > a little MySQL database for her yarns with a small database > administration module and so on. The thing is that I would like to have > the site divided into directories by subject and have the same template > load every time , but my logic tells me that I have to have an > index.php3 per directory and have to do this process every time I add a > subject. I would like to spend my time working on one document and add > ifs, whiles and elses than doing that. > > I have read most of the class.Fast.Template, fast.Template stuff, but > if there is an example on how to do this I'm missing it. As far as I can > tell I can only create one document and I can't find how to manage URLS > to other documents with the same template > > I wish I could get help on this! > > Rergards: > > Gerry Figueroa > > -- > PHP General 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 General 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] Need some help plz
Hi, I installed PHP4 onto my FreeBSD 4.2 computer but i'm getting this error, anyone able to tell me how i can fix it? Warning: Failed opening '/usr/local/apache/htdocs/mick/domain.php' for inclusion (include_path='') in Unknown on line 0 Thanks in advanced -- PHP General 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] Logins
Hi, Is there anyway i can call the login name of the shell for the php file? What i'm trying to do is have this /home/USERNAME/public_html/.htpasswd' have all the users showing? i've tried /home/*/public_html/.htpassd but that doesn't work Anyone able to help me? Thanks in advanced, Mick -- PHP General 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] TraceRoute
Hi, Anyone able to tell me where i can get a traceroute php script from? -- PHP General 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] Hex Strings Appended to Pathnames
Operating System: CentOS 4.6 PHP Version: 4.3.9-3.22.9 Zend Optimizer (free) version: 3.2.6 Hello. I've got somewhat of a strange problem here involving Squirrelmail. Basically, what is happening is that one of our customers is logged out of his Squirrelmail session at random intervals. This can occur when he goes to read an email or, after composing an email, when he clicks on the Send button. The following log entries correspond with those times that the customer is logged out. [error] [client X.X.X.X] File does not exist: /var/www/squirrelmail/src/redirect.php3a5def33 [error] [client X.X.X.X] File does not exist: /var/www/squirrelmail/src/redirect.php29e09f87 [error] [client X.X.X.X] File does not exist: /var/www/squirrelmail/src/move_messages.phpf9f96dfb [error] [client X.X.X.X] File does not exist: /var/www/squirrelmail/src/redirect.phpdc6cc80a So what would be the cause of appending those hex strings to those pathnames? Cheers, Mick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Hex Strings Appended to Pathnames
Richard Lynch wrote: I don't know if it's before/after, but PHP can't change the GET request to something it wasn't... So THAT was the URL requested. You might have some kind of funky mod_rewrite rule messing you up... On Tue, January 29, 2008 5:22 am, Mick wrote: Richard Lynch wrote: On Sun, January 27, 2008 7:57 am, Mick wrote: Operating System: CentOS 4.6 PHP Version: 4.3.9-3.22.9 Zend Optimizer (free) version: 3.2.6 Hello. I've got somewhat of a strange problem here involving Squirrelmail. Basically, what is happening is that one of our customers is logged out of his Squirrelmail session at random intervals. This can occur when he goes to read an email or, after composing an email, when he clicks on the Send button. The following log entries correspond with those times that the customer is logged out. [error] [client X.X.X.X] File does not exist: /var/www/squirrelmail/src/redirect.php3a5def33 [error] [client X.X.X.X] File does not exist: /var/www/squirrelmail/src/redirect.php29e09f87 [error] [client X.X.X.X] File does not exist: /var/www/squirrelmail/src/move_messages.phpf9f96dfb [error] [client X.X.X.X] File does not exist: /var/www/squirrelmail/src/redirect.phpdc6cc80a So what would be the cause of appending those hex strings to those pathnames? You'll probably have to ask the squirrelMail guy... Unless you can reproduce it with other applications, it's not in PHP itself, probably. PS I'm a squirrelMail user, and I get logged out a lot too. :-( Hi Richard. Thank you for your reply. You'll probably have to ask the squirrelMail guy... I've already asked him, and he referred me to the PHP/Zend guys i.e. to here. ;) Actually, what the access logs show for these events is this for example: "GET /squirrelmail/src/compose.php9e99b821 HTTP/1.1" 404 "GET /squirrelmail/src/redirect.php3a5def33 HTTP/1.1" 404 Do you know if logging for the access log is performed before or after the URL is passed through to php? Cheers, Mick. Hi Richard. So THAT was the URL requested. As I had suspected. You might have some kind of funky mod_rewrite rule messing you up... There is no rewrite rule. It's an extremely strange problem. Cheers, Mick. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Hex Strings Appended to Pathnames
Nathan Rixham wrote: Richard Lynch wrote: I don't know if it's before/after, but PHP can't change the GET request to something it wasn't... So THAT was the URL requested. You might have some kind of funky mod_rewrite rule messing you up... On Tue, January 29, 2008 5:22 am, Mick wrote: Richard Lynch wrote: On Sun, January 27, 2008 7:57 am, Mick wrote: Operating System: CentOS 4.6 PHP Version: 4.3.9-3.22.9 Zend Optimizer (free) version: 3.2.6 Hello. I've got somewhat of a strange problem here involving Squirrelmail. Basically, what is happening is that one of our customers is logged out of his Squirrelmail session at random intervals. This can occur when he goes to read an email or, after composing an email, when he clicks on the Send button. The following log entries correspond with those times that the customer is logged out. [error] [client X.X.X.X] File does not exist: /var/www/squirrelmail/src/redirect.php3a5def33 [error] [client X.X.X.X] File does not exist: /var/www/squirrelmail/src/redirect.php29e09f87 [error] [client X.X.X.X] File does not exist: /var/www/squirrelmail/src/move_messages.phpf9f96dfb [error] [client X.X.X.X] File does not exist: /var/www/squirrelmail/src/redirect.phpdc6cc80a So what would be the cause of appending those hex strings to those pathnames? You'll probably have to ask the squirrelMail guy... Unless you can reproduce it with other applications, it's not in PHP itself, probably. PS I'm a squirrelMail user, and I get logged out a lot too. :-( Hi Richard. Thank you for your reply. You'll probably have to ask the squirrelMail guy... I've already asked him, and he referred me to the PHP/Zend guys i.e. to here. ;) Actually, what the access logs show for these events is this for example: "GET /squirrelmail/src/compose.php9e99b821 HTTP/1.1" 404 "GET /squirrelmail/src/redirect.php3a5def33 HTTP/1.1" 404 Do you know if logging for the access log is performed before or after the URL is passed through to php? Cheers, Mick. Hi Richard. So THAT was the URL requested. As I had suspected. You might have some kind of funky mod_rewrite rule messing you up... There is no rewrite rule. It's an extremely strange problem. Cheers, Mick. I see this is a strange problem, the puzzle for me though is why is the user getting logged out? surely a 404 can't end a session.. Hi Nathan. Apologies for the delay. Been hectic here of late. Anyhow, with regards to: I see this is a strange problem, the puzzle for me though is why is the user getting logged out? surely a 404 can't end a session.. Ok. What happens is that with *every* operation e.g. Looking in the Inbox, or the Trash folder, Options etc, I can see in the logs that the user is logged out and then logged in again. So there must be cookies involved for this to work. Cheers, Mick. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Cron jobs
The best way really is a cron job ... maybe you need a new ISP or a new sysadmin. Mick > What would be the best way of getting the script to run on a timed basis, > ideally the times and frequency of the script running defined in either the > script its self, or another script. > The Sysadmin for the server is absolutly useless, so getting him to submit a > cron job is no good. > any ideas?? -- PHP General 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] Looking for a forum
I went through a load of forum systems recently that I found on www.hotscripts.com, but none of them had what I wanted - In the end, I used the bare-bones forum system in 'PHP & MySQL Web Development' by Welling and Thomson and added: - My own existing login system (I was integrating forums into a larger project) - My own templating system - Separate forums - A bunch of other functions such as 'who's online', #topics, #posts, last post, last user to post, etc. In the end, after spending nearly 2 weeks fiddling around trying to work out why people use variables like $a, $b and $c and never comment their code, I managed to get my system running smoothly with no 'workarounds' to incorporate complex systems. I'm really happy with the end result, and I'd recommend starting from the bottom up rather than stripping out the unnecessary code from other projects. If you only need a forum and want a fully-featured solution, I'd recommend phpBB from those I looked at. Mick -Original Message- From: Paul Nicholson [mailto:[EMAIL PROTECTED]] Sent: 26 September 2002 12:20 To: [EMAIL PROTECTED]; John Taylor-Johnston; [EMAIL PROTECTED] Subject: Re: [PHP] Looking for a forum -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, http://www.ibforums.com/ ~Pauly On Thursday 26 September 2002 01:26 am, John Taylor-Johnston wrote: > Hi, > I'm looking for some forum script, a bit like this: > http://www.chevelles.com/cgi-bin/forum/Ultimate.cgi > Can anyone post a link to something useful? > John - -- ~Paul Nicholson Design Specialist @ WebPower Design "The webthe way you want it!" [EMAIL PROTECTED] "It said uses Windows 98 or better, so I loaded Linux!" Registered Linux User #183202 using Register Linux System # 81891 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9ku11DyXNIUN3+UQRAvs9AJ4jGZ9X4QKEXQDhKYXBLAjTXzO/ygCcCHXw aT5wk0Z0Lc97xlqpIgQQaHs= =po2u -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: Who is online script example
I have my own login system - which authenticates against a MySQL database and then uses sessions to keep track of logins. It registers a session variable for last access time, and logs access to pages in a separate table. Then I can do things like this: function currently_active_users(){ //Returns a formatted string of currently logged in (and with valid sessions) users $query = "SELECT DISTINCT user_id from log_access WHERE (UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(lastaccess)) < (30*60)";//Users accessing the site in last half an hour. $db = db_connect(); $result = mysql_query($query, $db); while ($row = mysql_fetch_array($result)) { $users_online .= $row["user_id"]; $users_online .= ", "; } //loop through and add returned users to string. $users_online = substr($users_online, 0, -2);//Ditch last comma and space. return $users_online; } Dunno if this is any use to you? Mick -Original Message- From: Research and Development [mailto:[EMAIL PROTECTED]] Sent: 25 September 2002 23:26 To: PHP General List Subject: Who is online script example Hello. Has anyone noticed that some sites can display a list of users currently looking at their site? I would like to see the code to do such things. Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SAP documentation
I'm interested in the possibility of interfacing with SAP for a project using PHP or Perl. I've not found any documentation that might help yet: Can anyone point me in the direction of any help? I've only used PHP with MySQL to date. Thanks, Mick e-ssociate EPSON (UK) Ltd. Tel 01442 227374 www.epson.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Rotation of images
I can use ImageMagick to rotate images, and that would be my preferred technique, but I was wondering how you might use GD to rotate images. As far as I can see, it's not possible. Anyone tried it? Mick e-ssociate EPSON (UK) Ltd. Tel 01442 227374 www.epson.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Newbie problem with POST vars
Sorry if this is a bit simple: I'm trying to loop through $_POST vars in a function, which I understand to be an autoglobal associative array. Here's the code I'm using: foreach($_POST as $item => $value){ echo "$item, $value"; } However, I only get the first element of the array echoed, even though I know there to be other elements (I can access them as $_POST[element]) Any ideas? Cheers, Mick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Newbie problem with POST vars
I've tried this, but it's still doing the same thing. Is there something special about this particular variable that I need to know? I've tried it with $HTTP_POST_VARS as well, declaring $HTTP_POST_VARS as global in the function first. Put reset($_POST) before foreach loop > I'm trying to loop through $_POST vars in a function, which I understand to > be an autoglobal associative array. Here's the code I'm using: > > foreach($_POST as $item => $value){ > echo "$item, $value"; > } > > However, I only get the first element of the array echoed, even though I > know there to be other elements (I can access them as $_POST[element]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Newbie problem with POST vars
print_r($_POST); shows all the elements in the array as I expect them to be. That foreach loop is only picking the first element, though. At least it's reassured me that I'm not going mad, though, so thanks for that. Mick > I've tried this, but it's still doing the same thing. Is there something > special about this particular variable that I need to know? I've tried it > with $HTTP_POST_VARS as well, declaring $HTTP_POST_VARS as global in the > function first. > > Put reset($_POST) before foreach loop > > > I'm trying to loop through $_POST vars in a function, which I > > understand > to > > > be an autoglobal associative array. Here's the code I'm using: > > > > foreach($_POST as $item => $value){ > > echo "$item, $value"; > > } > > > > However, I only get the first element of the array echoed, even > > though I > > > know there to be other elements (I can access them as > > $_POST[element]) What do you get if you do: print_r($_POST); -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* I gave up Smoking, Drinking and Sex. It was the most *__horrifying* 20 minutes of my life! */ -- 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
[PHP] Chatroom sounds
Hello This my first post and I hope I can understand any replies :-) I download a chatroom from webscriptsworld.com very nice it is as well. What I would achieve is to make a sound when someone enters and when someone leaves. I'd also like to to replace some words with sounds. I was hoping there might be some code I can add to achieve this? Sorry in advance for any lack of tech speak Mick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Poor results with GD
I'm currently setting JPEG quality to 85%, hence the large file sizes. Normally, I'd be looking for better quality and file sizes about 70% of their current size. Some of the originals are scanned directly from the painting, which yields very high quality, some are taken with a digital camera (I could live with poorer quality on these). I'm using some functions I found in 'PHP and MySQL web development' with some modifications, so JPEGs are generated from uploaded files and stored on the server through an HTML form interface. Here's the core bit of the code: $src = ImageCreateFromJPEG($image); $dst = ImageCreate($tn_width,$tn_height); ImageCopyResized($dst, $src, 0, 0, 0, 0, $tn_width,$tn_height,$width,$height); ImageJpeg($dst, $path, $compression); //compression set to 85 here. ImageDestroy($src); ImageDestroy($dst); Mick -Original Message- From: Andrew Brampton [mailto:[EMAIL PROTECTED]] Sent: 15 April 2002 17:56 To: Sear, Mick; [EMAIL PROTECTED] Subject: Re: [PHP] Poor results with GD They looked ok to me, but I don't know what the orginals looked like. But the problem might be that your JPeg quality is set lower than you would like. You can increase it be setting a parameter in ImageJPEG() or most likly whatever function you are using Andrew - Original Message - From: "Sear, Mick" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 15, 2002 4:32 PM Subject: [PHP] Poor results with GD > Not sure if anyone else uses GD much, but I've been experimenting with it > and PHP recently and I've found I get large file sizes and very 'aliased' > graphics. > > Can anyone suggest a fix/ alternative? > > You'll see what I mean if you look at www.msear.com/paintings/ where the > images are currently all generated with GD (but not for long, I think!) > > Cheers, > Mick > > -- > 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
RE: [PHP] Poor results with GD
Excellent advice, thanks. I was using GD 1.6.2 :( so will sort this and try again. Mick -Original Message- From: Richard Archer [mailto:[EMAIL PROTECTED]] Sent: 15 April 2002 22:58 To: [EMAIL PROTECTED] Subject: Re: [PHP] Poor results with GD At 5:32 PM +0200 15/4/02, Sear, Mick wrote: >Not sure if anyone else uses GD much, but I've been experimenting with it >and PHP recently and I've found I get large file sizes and very 'aliased' >graphics. gd is the correct tool for your job. But there are some caveats. You will need to be using gd-2.0 or better to get satisfactory results for this sort of work. gd-2.0.1 supports: bicubic interpolation for scaling images 24-bit (true colour) images Make sure your images aren't being converted to 8-bit at any stage of the scaling/cropping process. Use ImageCreateTrueColor to create images. Oh, and there's a bug in either php-4.1.2 or gd-2.0.1 where scaling and cropping with one operation using imagecopyresampled fails. I use a work-around of cropping with imagecopyresized and then scaling with imagecopyresampled. The large file sizes could be improved by reducing the quality of the JPEG compression. Also, once the images have been scaled smoothly, there will be fewer sharp edges allowing JPEG compression to be more efficient. ...R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Timing out session cookies
Hi, How do I set an expiration time on a session cookie? I basically want to log users out automatically after a period of inactivity. Cheers, Mick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Poor results with GD
Not sure if anyone else uses GD much, but I've been experimenting with it and PHP recently and I've found I get large file sizes and very 'aliased' graphics. Can anyone suggest a fix/ alternative? You'll see what I mean if you look at www.msear.com/paintings/ where the images are currently all generated with GD (but not for long, I think!) Cheers, Mick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] where can I find a good documentation on regular expressions?
where can I find a good documentatio on regular expressions? I´m desperate in need of it... thanks for your time -- PHP General 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] new to the list
Hello I've just joined the list and sending this message as a test :-) I'm 'very' new to PHP and therefore here to learn ... I hope that's ok? Mick -- PHP General 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] next and previous links
Hello After several days of reading various articles on the web I've 'finally' got a basic database working. The database is for a massive collection of my vinyl records. Therefore I would like to limit the results to about 20 per page and move forward/backward with 'next' and 'previous' links. I'd like to stress at this stage that I'm new to PHP and don't really know and 'tech speak' related to it ... however I like to think I'm a quick learner :-) Below I've pasted a copy of the script I fashioned ... I suppose it's full of mistakes but it does work! Any assistance will be appreciated TIA ... Mick *** artistsasidebsidelabelnumberpriceoriginformatinfo " . $row["artists"] . "" . $row["aside"] . "" . $row["bside"] . "" . $row["label"] . "" . $row["number"] . "" . $row["price"] . "" . $row["origin"] . "" . $row["format"] . "" . $row["info"] . ""); } while($row = mysql_fetch_array($result)); } else {print "Sorry, no records were found!";} ?> -- PHP General 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]