On 6 August 2012 19:54, Ansry User 01 yrsna.res...@gmail.com wrote:
We are trying to code a very simple and customized search engine for
internal purposes. Please suggest if the PHP is the way to go or suggest
the alternatives??
It would be great if you can lead us to the links which would
On 06/08/12 15:24, Ansry User 01 wrote:
We are trying to code a very simple and customized search engine for internal
purposes. Please suggest if the PHP is the way to go or suggest the
alternatives??
It would be great if you can lead us to the links which would give us a start!!
Thanks
On Mon, Aug 6, 2012 at 8:24 PM, Ansry User 01 yrsna.res...@gmail.comwrote:
We are trying to code a very simple and customized search engine for
internal purposes. Please suggest if the PHP is the way to go or suggest
the alternatives??
It would be great if you can lead us to the links which
On Aug 6, 2012 7:33 AM, shiplu shiplu@gmail.com wrote:
Solr with Nutch will do it.
Where *do* come up with those names :)
Where *do* come up with those names :)
Sorry I couldn't understand the meaning of your sentence. May be this is
due to cultural difference.
Anyway, Solr is a search engine. Nutch is a crawler. Both can be
integrated. Then one can send query to solr server from php using api. See
On Mon, Aug 6, 2012 at 1:15 PM, shiplu shiplu@gmail.com wrote:
Where *do* come up with those names :)
Sorry I couldn't understand the meaning of your sentence. May be this is
due to cultural difference.
Anyway, Solr is a search engine. Nutch is a crawler. Both can be
integrated. Then
On Mon, Aug 6, 2012 at 11:22 PM, Daniel Brown danbr...@php.net wrote:
On Mon, Aug 6, 2012 at 1:15 PM, shiplu shiplu@gmail.com wrote:
Where *do* come up with those names :)
Sorry I couldn't understand the meaning of your sentence. May be this is
due to cultural difference.
On Mon, Aug 6, 2012 at 1:42 PM, shiplu shiplu@gmail.com wrote:
Thanks Daniel for clearing. I am pretty bad in English. :(
Don't sell yourself short. Your English seems fine to me ---
better than many native-speakers.
--
/Daniel P. Brown
Network Infrastructure Manager
2009/1/30 Tom obeli...@comcast.net
Shawn McKenzie nos...@mckenzies.net wrote in message
news:47.36.08436.e8b80...@pb1.pair.com...
Tom wrote:
Clancy clanc...@cybec.com.au wrote in message
news:c77vn4pri9tsbaqg9avv3i7dnfb8nvk...@4ax.com...
On Mon, 26 Jan 2009 17:57:29 -0600,
Shawn McKenzie nos...@mckenzies.net wrote in message
news:47.36.08436.e8b80...@pb1.pair.com...
Tom wrote:
Clancy clanc...@cybec.com.au wrote in message
news:c77vn4pri9tsbaqg9avv3i7dnfb8nvk...@4ax.com...
On Mon, 26 Jan 2009 17:57:29 -0600, obeli...@comcast.net (Tom) wrote:
..
Also make
Clancy clanc...@cybec.com.au wrote in message
news:c77vn4pri9tsbaqg9avv3i7dnfb8nvk...@4ax.com...
On Mon, 26 Jan 2009 17:57:29 -0600, obeli...@comcast.net (Tom) wrote:
..
Also make sure there aren't line returns or any nonsense like that in
the to subjects. Look up email header
Tom wrote:
Clancy clanc...@cybec.com.au wrote in message
news:c77vn4pri9tsbaqg9avv3i7dnfb8nvk...@4ax.com...
On Mon, 26 Jan 2009 17:57:29 -0600, obeli...@comcast.net (Tom) wrote:
..
Also make sure there aren't line returns or any nonsense like that in
the to subjects. Look up email
Scott wrote:
- Original Message - From: Shawn McKenzie
nos...@mckenzies.net
Newsgroups: php.general
To: php-general@lists.php.net
Sent: Monday, January 26, 2009 3:52 PM
Subject: Re: [PHP] Coding for email response forms
Tom wrote:
Shawn McKenzie wrote in message
-Original Message-
From: Tom [mailto:obeli...@comcast.net]
Sent: Tuesday, January 27, 2009 9:58 AM
To: php-general@lists.php.net
Subject: Re: [PHP] Coding for email response forms
Edmund Hertle edmund.her...@student.kit.edu wrote in message
:
Tom Scott wrote:
- Original Message - From: Shawn McKenzie
nos...@mckenzies.net
Newsgroups: php.general
To: php-general@lists.php.net
Sent: Monday, January 26, 2009 3:52 PM
Subject: Re: [PHP] Coding for email response forms
Tom wrote:
Shawn McKenzie wrote in message
On Mon, Jan 26, 2009 at 15:57, Tom obeli...@comcast.net wrote:
I am a new user of PHP, and am using Dreamweaver CS3 for the webpages. The
following page has my form but the submit button is not working properly.
http://www.richlandmtg.com/contacts.html
What code is needed and where does it get
My Hosting site said that I needed to include the PHP otherwise the form
won't work. I need to know where to include my email info to get this set up
don't I? What do you suggest?
T
Daniel Brown danbr...@php.net wrote in message
Tom wrote:
My Hosting site said that I needed to include the PHP otherwise the form
won't work. I need to know where to include my email info to get this set up
don't I? What do you suggest?
T
Daniel Brown danbr...@php.net wrote in message
Shawn McKenzie wrote in message
news:a0.87.62571.3d92e...@pb1.pair.com...
Tom wrote:
My Hosting site said that I needed to include the PHP otherwise the form
won't work. I need to know where to include my email info to get this set
up
don't I? What do you suggest?
T
Daniel Brown
Tom wrote:
Shawn McKenzie wrote in message
news:a0.87.62571.3d92e...@pb1.pair.com...
Tom wrote:
My Hosting site said that I needed to include the PHP otherwise the form
won't work. I need to know where to include my email info to get this set
up
don't I? What do you suggest?
T
Daniel
On Mon, Jan 26, 2009 at 16:34, Tom obeli...@comcast.net wrote:
Shawn,
So would that look something like this:
?
if ($_SERVER['REQUEST_METHOD'] == POST) {
// Just to be safe, I strip out HTML tags
$realname = strip_tags($realname);
$email = strip_tags($email);
$feedback =
Tom wrote:
Shawn McKenzie wrote in message
news:a0.87.62571.3d92e...@pb1.pair.com...
Tom wrote:
My Hosting site said that I needed to include the PHP otherwise the form
won't work. I need to know where to include my email info to get this set
up
don't I? What do you suggest?
T
Daniel
Daniel Brown danbr...@php.net wrote in message
news:ab5568160901261347h1dab427bo29a1313494cd...@mail.gmail.com...
On Mon, Jan 26, 2009 at 16:34, Tom obeli...@comcast.net wrote:
Shawn,
So would that look something like this:
?
if ($_SERVER['REQUEST_METHOD'] == POST) {
// Just to be safe,
Shawn McKenzie wrote:
Tom Scott wrote:
- Original Message - From: Shawn McKenzie
nos...@mckenzies.net
Newsgroups: php.general
To: php-general@lists.php.net
Sent: Monday, January 26, 2009 3:52 PM
Subject: Re: [PHP] Coding for email response forms
Tom wrote:
Shawn McKenzie
3:52 PM
Subject: Re: [PHP] Coding for email response forms
Tom wrote:
Shawn McKenzie wrote in message
news:a0.87.62571.3d92e...@pb1.pair.com...
Tom wrote:
My Hosting site said that I needed to include the PHP otherwise
the form
won't work. I need to know where to include my email info
On Mon, Jan 26, 2009 at 4:47 PM, Daniel Brown danbr...@php.net wrote:
On Mon, Jan 26, 2009 at 16:34, Tom obeli...@comcast.net wrote:
Shawn,
So would that look something like this:
?
if ($_SERVER['REQUEST_METHOD'] == POST) {
// Just to be safe, I strip out HTML tags
$realname =
Eric Butera eric.but...@gmail.com wrote in message
news:6a8639eb0901261509s1008e1b1j89c2a8f63669e...@mail.gmail.com...
On Mon, Jan 26, 2009 at 4:47 PM, Daniel Brown danbr...@php.net wrote:
On Mon, Jan 26, 2009 at 16:34, Tom obeli...@comcast.net wrote:
Shawn,
So would that look something
@lists.php.net
Sent: Monday, January 26, 2009 3:52 PM
Subject: Re: [PHP] Coding for email response forms
Tom wrote:
Shawn McKenzie wrote in message
news:a0.87.62571.3d92e...@pb1.pair.com...
Tom wrote:
My Hosting site said that I needed to include the PHP otherwise
the form
Paul Novitski wrote:
$sql = SELECT Client FROM booked WHERE Name = 'larry';
$result = mysql_query($sql) OR die('[MYSQL ERROR] -
['.mysql_errno().']br /'.mysql_error());
while ( list($client) = mysql_fetch_row($result) ) {
echo {$client}br /\n;
}
I agree with this logic overall.
On Tue, April 10, 2007 1:08 pm, Paul Novitski wrote:
mysql_query() returns true. This constitutes a hack because it
depends entirely on the way the parser processes code rather than on
explicit elements of the language.
The order of execution and boolean short-circuit is a Documented Feature.
At 7:14 PM -0500 11/21/06, Robert Cummings wrote:
On Tue, 2006-11-21 at 16:19 -0500, tedd wrote:
It seems that every time I ask a security question, I find that I'm
currently practicing the answers to avoid the pit-falls.
Except that one time when his site got defaced... that was news ;) ;)
On Wed, 2006-11-22 at 10:31 -0500, tedd wrote:
At 7:14 PM -0500 11/21/06, Robert Cummings wrote:
On Tue, 2006-11-21 at 16:19 -0500, tedd wrote:
It seems that every time I ask a security question, I find that I'm
currently practicing the answers to avoid the pit-falls.
Except that one
On Wednesday 22 November 2006 16:31, tedd wrote:
At 7:14 PM -0500 11/21/06, Robert Cummings wrote:
On Tue, 2006-11-21 at 16:19 -0500, tedd wrote:
It seems that every time I ask a security question, I find that I'm
currently practicing the answers to avoid the pit-falls.
Except that one
I'd pick up a book Web Database Applications with PHP and MySQL,
otherwise known as the Platypus Book, and use that. That will teach you
a lot about logins, sessions, as well as using MySQL and PHP together.
As far as the database name goes, that has nothing to do with the PHP
file name.
Jeff
There are a lot of good books to go by. I suggest getting one that
incorporates both PHP MySQL, not just php.
On 11/18/06, Jeff [EMAIL PROTECTED] wrote:
I am pretty new with PHP, but what I've learned in the last 3 weeks is
pretty good I think so far!
What I'm looking to do is create a
At 10:23 AM +0800 10/3/06, Glenn Richmond wrote:
I'll probably
get strong opposition for these comments, but in my opinion, there's
nothing worse than mixing two different lanuages in a single file, not
to mention mixing functional code with layout code.
Glenn.
Glenn:
I agree with the
On Mon, October 2, 2006 7:32 pm, Tony Di Croce wrote:
I am relatively new to PHP... I have about 1.5 years of light PHP work
under
my belt... Over the past year or so my PHP coding style has evolved
significantly and I'm curious as to how experienced programmers write
PHP...
Basically, here
[snip]
What do you think?
[/snip]
I think I'd like an ice cold beer.
I code PHP like I code C++, heavily commented with code designed to fit
the needs of the application. There is a thing in PEAR concerning style
(you can Google it pretty easily) and you will as many styles as you do
PHP
Hi Tony,
Sounds like a good start. I have to admit that one that I prefer is that
HTML code should be completely separated from PHP via the use of a
templating engine of some sort (I'm a fan of XTemplate). I'll probably
get strong opposition for these comments, but in my opinion, there's
nothing
On Monday 02 October 2006 19:32, Tony Di Croce wrote:
I am relatively new to PHP... I have about 1.5 years of light PHP work
under my belt... Over the past year or so my PHP coding style has evolved
significantly and I'm curious as to how experienced programmers write
PHP...
Basically, here
- Original Message -
From: Mark Steudel [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Friday, March 03, 2006 7:46 PM
Subject: [PHP] Coding Practice: Use global $var or pass in by refernce
I was wondering what the general rule on using the global driective versus
passing in a
Hi Gustav!
Gustav Wiberg wrote:
My oponion is that is insane to use global variables. The main drawback
with global variables is that is very easy to mix up variables, and keep
track of what variable belongs to what. So an advice: Don't use it!
Ok, so what's your recommendation to solve the
I would go for:
- you can create a new instance (new DB) in every methode (but you
usually only want a single DB-connection per script, and where do you
pass config-data to access the DB?) or
This way the code keeps well organized and about the use of only one
connection I wouldn't worry
- Original Message -
From: Andreas Korthaus [EMAIL PROTECTED]
To: php-general@lists.php.net; Gustav Wiberg [EMAIL PROTECTED]
Sent: Friday, March 03, 2006 8:53 PM
Subject: Re: [PHP] Coding Practice: Use global $var or pass in by refernce
Hi Gustav!
Gustav Wiberg wrote:
My oponion
On Fri, 2006-03-03 at 14:53, Andreas Korthaus wrote:
- use a factory/singleton, which is not so much better than a global
variable (and again, what about config-data?).
I use a global configuration to register database connection params.
InterJinn uses something like the following:
So what's the way [using Globals] you'd recommend and why?
best regards
Andreas
Andreas:
I have to agree with Gustav on this -- I very seldom use Globals. I
might use one for debugging, but not for finished code. Their use
simply creates problems in porting code, keeping things modular, and
Andreas Korthaus wrote:
Hi Gustav!
Gustav Wiberg wrote:
My oponion is that is insane to use global variables. The main
drawback with global variables is that is very easy to mix up
variables, and keep track of what variable belongs to what. So an
advice: Don't use it!
Ok, so what's your
On Fri, 2006-03-03 at 16:19 -0500, tedd wrote:
Perhaps I'm fortunate, but I usually find a way around using Globals.
And since I've been coding in PHP, I've never been forced to use them.
Just my 2c...
In our framework, I use globals as well, although I do tend to agree
with Tedd regarding
On 07/12/2004, at 6:50 AM, Al wrote:
Jason Wong wrote:
On Monday 06 December 2004 14:19, Rory Browne wrote:
If I'm not mistaken Al wanted to return something if the thing
failed,
without having to put it inside an if_block.
I'm watching this with curiosity, because return is a language
Al wrote:
I've searched the PHP manual and can't find an answer for this question
I'd like to use the OR DIE construct; but instead of DIE I'd like to
use
RETURN FOO. I haven't found a way to do it.
$string= file_get_contents($filename)
OR die(Could not read file);
$db_link=
Jason Wong wrote:
On Monday 06 December 2004 14:19, Rory Browne wrote:
If I'm not mistaken Al wanted to return something if the thing failed,
without having to put it inside an if_block.
I'm watching this with curiosity, because return is a language
construct, and not a function, or anything that
Al wrote:
Essentially, I'm creating warning reports for my users, not code errors.
The
users can then email the warnings to our webmaster.
Jason Wong wrote:
On Monday 06 December 2004 14:19, Rory Browne wrote:
$result = mysql_db_query($db,select count(*) from $table)
Richard Lynch wrote:
Al wrote:
Essentially, I'm creating warning reports for my users, not code errors.
The
users can then email the warnings to our webmaster.
Jason Wong wrote:
On Monday 06 December 2004 14:19, Rory Browne wrote:
$result = mysql_db_query($db,select count(*) from
snip
$db_link= mysql_connect($host, $user, $pw)
OR die(Could not connect: . mysql_error());
/snip
try:
$db_link= mysql_connect($host, $user, $pw);
if (!$db_link){
// do whatever if there is something wrong
}
maybe try something like that with the file_get_contents also?
Respectfully,
If I'm not mistaken Al wanted to return something if the thing failed,
without having to put it inside an if_block.
I'm watching this with curiosity, because return is a language
construct, and not a function, or anything that has a value.
I could probably have said that better sober, and not at
On Monday 06 December 2004 14:19, Rory Browne wrote:
If I'm not mistaken Al wanted to return something if the thing failed,
without having to put it inside an if_block.
I'm watching this with curiosity, because return is a language
construct, and not a function, or anything that has a value.
Hello Yusuf,
?
Class fl_SQL
{
var $server;
var $user;
var $pass;
var $connection;
var $db;
var $query;
var $record;
var $tlist;
}
The bracket is wrong. Your class only has properties but no methods.
Function fl_SQL($server, $user, $pass, $db = NULL) {
$this-server
Hi,
You don't have a ; at the end of the line. You have $this-db =
$db and you should have $db;.
-Dan Joseph
-Original Message-
From: Yusuf [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 15, 2004 11:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Coding Blues - Parse Error
Dan Joseph wrote:
You don't have a ; at the end of the line. You have $this-db =
$db and you should have $db;.
Also, this:
Function doquery($query, $db = $this-db){
is causing your error. The default value must be a constant expression,
not a variable, function, method, etc...
--
---John
Oliver John V. Tibi wrote:
in addition to brad's post, does anyone know of coding software that
supports team development environments and/or a versioning server for
windows?
I use Zend Studio wich provides CVS integration. But I'm sure you will
find some others with CVS support. If not, I will
Jordi Canals wrote:
Brad Ciszewski wrote:
Does anyone know any good software for PHP/mysql coding? I currently use
DreamWeaver MX, however it doesn't have much PHP support, and no MySQL
support. I just want an easy program to script in, and upload on to my
webserver. Please help! :o
Sorry, but
Brad
I use HTML-Kit for HTML, ASP, Java, CSS, PHP and MySQL.
Free too :)
--
-
Michael Mason
Arras People
www.arraspeople.co.uk
-
Brad Ciszewski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Does anyone know any good
PROTECTED]
Subject: [PHP] Re: php coding software
Brad
I use HTML-Kit for HTML, ASP, Java, CSS, PHP and MySQL.
Free too :)
--
-
Michael Mason
Arras People
www.arraspeople.co.uk
-
Brad Ciszewski [EMAIL PROTECTED] wrote in message
news:[EMAIL
in addition to brad's post, does anyone know of coding software that
supports team development environments and/or a versioning server for
windows?
TIA!
--
Running 'ojtibi' on '127.0.0.1' (BATCH_OPTIMISTIC mode).
Live free() or die().
--
PHP General Mailing List (http://www.php.net/)
To
I am writing an app and right now im working on code that will display x
number of items on one page, and if there is overflow, provide a link to
the next. The url coming into the page looks something like:
projects.php?action=viewcompleted=nostart=0
My code so far, i just took the
Hello Derrick,
Monday, June 7, 2004, 3:51:20 PM, you wrote:
Df So, am I just a pretender? Are there people out there that can really
Df bust out a basic DMS in 40 minutes?
I would say that there probably are - but you'd have to question how
robust and well designed their system would be after
Nothing in the specs you listed mentioned anything about a pretty,
intuitive GUI interface. Drop a nice interface requirement and that
cuts your time considerably. Forget trying to design an event driven
interface and drop back on the old mainframe menu driven interface with
one option per
hey,
I just did all of that and it took me 1 hour and 35 mins, but I edited the
code that i had already made from site before. It didn't take my anywhere
near 4 hours, but there is no way i could do it in 40 mins.
From: Derrick fogle [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
On Jun 7, 2004, at 11:39 AM, Tyler Replogle wrote:
I just did all of that and it took me 1 hour and 35 mins
Just for grins and giggles, why don't I post the exact assignment specs?
FYI, I've never really had to deal with file uploads and downloads
before. It probably took me to an hour to
On 02/06/2004, at 3:00 AM, Justin Patrin wrote:
And I'm one of them. :-) I like the KR version because it saves
verticaly space and most editors can't really handle correct tabbing
when you put it after. IMHO it's just not necessary as ALL blocks
should have braces, even those that are
On 31-May-2004 Travis Low wrote:
I have to say I like everything about the PEAR coding standards
except for the
KR bracing style. I much prefer:
if( foo )
{
blah;
}
Icky.
So ... Vee-Eye or Eighty Megs and Constantly Swapping ?
;-
--
Don Read
Travis Low wrote:
I have to say I like everything about the PEAR coding standards except
for the KR bracing style. I much prefer:
if( foo )
{
blah;
}
to
if( foo ) {
blah;
}
The latter form (KR) conserves vertical space, but I find it a lot
harder to follow. Harder to move
Justin Patrin wrote:
Travis Low wrote:
[I hate KR indenting]
And I'm one of them. :-) I like the KR version because it saves
verticaly space and most editors can't really handle correct tabbing...
Arrggghh...TABS. Don't even get me started on tabs...
cheers,
Travis
--
Travis Low
mailto:[EMAIL
[snip]
[I hate KR indenting]
And I'm one of them. :-) I like the KR version because it saves
verticaly space and most editors can't really handle correct
tabbing...
Arrggghh...TABS. Don't even get me started on tabs...
[/snip]
How many holy wars can be started in one thread legally?
--
Travis Low wrote:
Justin Patrin wrote:
Travis Low wrote:
[I hate KR indenting]
And I'm one of them. :-) I like the KR version because it saves
verticaly space and most editors can't really handle correct tabbing...
Arrggghh...TABS. Don't even get me started on tabs...
cheers,
Travis
I meant
Travis Low [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have to say I like everything about the PEAR coding standards except for
the
KR bracing style. I much prefer:
if( foo )
{
blah;
}
to
if( foo ) {
blah;
}
The latter form (KR) conserves
I have to say I like everything about the PEAR coding standards except for the
KR bracing style. I much prefer:
if( foo )
{
blah;
}
to
if( foo ) {
blah;
}
The latter form (KR) conserves vertical space, but I find it a lot harder to
follow. Harder to move blocks of code
charles kline wrote:
Hi all,
I was having a conversation with a friend and talking about coding
standards in the open source community (focusing on PHP). I seem to
remember there being a document out there that sort of laid it out
pretty well.
Anyone know where I might find a copy?
PEAR has a
I am looking for Coding Style Guide for PHP?
PEAR has a good one, http://pear.php.net/manual/en/standards.php
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
--
PHP General
Retrieving the results can be LIMITed to X results starting at row Y
using mysql's LIMIT function.
Check the MySQL manual, but basically, this will limit the result to 10
rows, starting with row 5.
SELECT name FROM customers LIMIT 5,10
By taking your values for the starting point and row
Sure, its htmlentities(), combined (possibly) with nb2br()
http://www.php.net/manual/en/function.htmlentities.php
Marco
On Sun, 2002-11-17 at 17:34, Børge Strand wrote:
Hi all,
I'm cooking tothether a tiny php html editor right now, (textarea kind
of thing). To treat the text properly
I'm cooking tothether a tiny php html editor right now, (textarea kind
of thing). To treat the text properly I need to encode characters like
'', '', '', and friends into something that doesn't confuse the
browser.
Htmlentities() or htmlspecialchars()
By the way, do you think encoding and
I believe the standards are for coding PEAR modules so all code is presented
in the same style. It really has no influence on the language or community
at large. I say code the way you feel most comfortable with and damb to
anyone who complains. :)
-Kevin
- Original Message -
From: ed
Kevin Stone wrote:
I believe the standards are for coding PEAR modules so all code is presented
in the same style. It really has no influence on the language or community
at large. I say code the way you feel most comfortable with and damb to
anyone who complains. :)
-Kevin
The best
No I totaly agree. That's exactly the way I code! *ROTFLMAO*
-Kevin
- Original Message -
From: Robert Cummings [EMAIL PROTECTED]
To: Kevin Stone [EMAIL PROTECTED]
Cc: ed [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, September 27, 2002 2:40 PM
Subject: Re: [PHP] coding standards
LOL! Right! I figure that _I'm_ the one who has to
look at my code the most. May as well leave it where
I put it, how I put it.
Thanks for the chuckle!
B
--- Kevin Stone [EMAIL PROTECTED] wrote:
I believe the standards are for coding PEAR modules
so all code is presented
in the same style.
I use the latter style, because otherwise my syntax highlighting doesn't
kick in.
$filename = this $varname that; # $filename is in blue, the
rest is in green
$filename = this. $varname. that; # $filename and $varname are in
blue, the rest is in green
I've done it so much now
I generally was just diving in immediately... because I was using it for smaller
projects less than 1k lines of code... but now that I am building everything in PHP
and becoming more proficient, and writing programs with 5k + lines of code, I am
discovering a need to write at least a basic
Oh yeah: I forgot:
*AFTER* the loop, you need to add another spurious /TR.
You'll have an empty row with no TD's in it, and the browser won't even put
in a blank line or anything.
Just spew out an extra /TR at the end and call it done.
--
WARNING [EMAIL PROTECTED] address is an endangered
Jason, your scripts works prefectly in creating a table. But, It only ouputs
the first query from the databse. Others are not shown.
Jason Lotito [EMAIL PROTECTED] wrote in message
000f01c0fc67$abfe3a90$72003bd0@genric">news:000f01c0fc67$abfe3a90$72003bd0@genric...
This should work...
?php
, PostgreSQL Tutorials, Code Snippets, and so much more
-Original Message-
From: McShen [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 24, 2001 10:45 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] -coding help
Jason, your scripts works prefectly in creating a table. But,
It only
McShen [EMAIL PROTECTED] wrote in message
9h3lrv$dn$[EMAIL PROTECTED]">news:9h3lrv$dn$[EMAIL PROTECTED]...
Hi
I have a script which queries mySQL and outputs 32 links at once.
How 'bout this?
===
define(PER_ROW, 2);
$row = Array();
$in_row = 0;
//
McShen wrote:
Hi
I have a script which queries mySQL and outputs 32 links at once. Here is my
scipt
?php
$connection = mysql_connect(***,,);
if ($connection==false)
{
echo mysql_errno().:.mysql_error().;
exit;
}
$end = $list + 16;
$query = SELECT *
This should work...
?php
$connection = mysql_connect(***,,);
if ($connection==false)
{
echo mysql_errno().:.mysql_error().;
exit;
}
$end = $list + 16;
$query = SELECT * FROM refer ORDER BY hits desc LIMIT $list, $end;
$result = mysql_db_query (celebzone, $query);
$num =
See http://www.php.net/manual/en/function.mysql-num-rows.php
Kirk
-Original Message-
From: midget2000x [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 3:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] coding for 'no match found'
This is a simple yet fundamental programming
Or, try count() in the sql statement..
?
$sql = SELECT count(email) from table WHERE email = '$email';
$result = @mysql_query($sql);
if (mysql_result($result, 0, count(email)) == 0) {
echo No good.;
}
?
I think that's faster than:
?
$sql = SELECT email FROM table WHERE email =
96 matches
Mail list logo