[EMAIL PROTECTED] (Andy B) wrote in
news:[EMAIL PROTECTED]:
> hi...
>
> is it better to give the mysql query string to a variable instead of
> directly doing it with mysql_query?
>
> i.e.
> $query="select * from table";//is this a better way?
> $query=mysql_query("select * from table");//or is
[EMAIL PROTECTED] (Andy B) wrote in
news:[EMAIL PROTECTED]:
> anybody know what the exact path for the php binary on linux is?
If all else fails, try locate php if your locate database is up to date, or
check the logs or whatever of your install package tool.
--
PHP General Mailing List (http
[EMAIL PROTECTED] (Ken Heath) wrote in
news:[EMAIL PROTECTED]:
> Please remove me from the mailing list. Many different efforts has
> failed.
>:-(
>
> I apology to everyone who receive this message.
This is the last place to send that to. Try looking in the headers of any
mail you get from t
quot;This\" and
\'that\'
Escape: \"This\" and\n\'that\'
Is this a bug, or am I totally missing something?
Cheers
--
David Robley
Useless Invention: Avalanche prevention goggles.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Wed, 3 Nov 2004 04:04, Apexeleven wrote:
> I can't wait for the replies...
What! I just voted three weeks ago- you mean I have to do it again?
--
David Robley
Why doesn't the Bat Computer ever crash?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
On Wed, 3 Nov 2004 05:49, Michael Sims wrote:
> John Nichel wrote:
>> ApexEleven wrote:
>>> I can't wait for the replies...
>>
>> cat $you > /dev/null
>
> Or the slightly more destructive variant:
>
> cat /dev/null > $you
>
> :)
P
e doesn't seem to do anything. I'm guessing that you are trying
to replace the < /BR> that you added above with a newline; this is
redundant and if it actually worked, would add an extra newline at each
occurrence of < /BR>. Note that nl2br doesn't replace a newline, i
there a way to get around this?? either displaying the
> blank line or by hiding the HTML tags in the textarea (but still saving
> the paragraph with them in)
Use nl2br() when you display the data; nl2br will add a before each
newline.
--
David Robley
"I hope I can still
he value of $server in the above while loop and if the value matches a
list of exclusions, don't echo the value.
For mysql, in the select use WHERE NOT IN('a','b'...) for a comma separated
list of exclude values, or simply WHERE server <> 'badname' for one se
now.
Try something from here:
http://directory.google.com/Top/Computers/Usenet/Public_News_Servers/
Google is your friend
--
David Robley
Thesaurus: ancient reptile with an excellent vocabulary.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
use. Is there
> a command similar to the phpinfo() command that can tell me how an already
> installed Apache in configured?
Enable server-info in your httpd.conf and be amazed at the amount of
information http;//localhost/server-info will chuck at you.
--
David Robley
Useless Inventio
ror messsages
that may be returned from the connect; I would get rid of that. Then add
here:
echo mysql_error();
> exit();
> }
> // Select the jokes database
> if ([EMAIL PROTECTED]('ijdb')) {
And use mysql_error() here too.
> exit('Unable to locate the joke ' .
>
hose are handled differently.
http://www.php.net/manual/en/language.types.string.php will tell you more
about the difference in handling of single quoted and double quoted
strings.
--
David Robley
This isn't right. This isn't even wrong.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t;
> I am using PHP5 and MySQL 4.1
You may find this article on storing hierarchical data useful.
http://www.sitepoint.com/print/hierarchical-data-database
--
David Robley
On the other hand, you also have 5 fingers.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
rt of the form data to
the target script.
>
> value="Name,Email,Subject,Updates,Message">
>
>
>
>
>
--
David Robley
A cat is the universe's way of showing us perfection.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ST['user'] . " \n\n";
print "Your address is:\n\n " . $_POST['address'] . " ";
?>
> The output dont show the user value or address value.
--
David Robley
"I commanded a group of ships for a week," Tom said fleetingly.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Any more hints ? :)
>
> Apparently my hint was not obvious enough as the message seems not to have
> gotten through.
>
Jason
Dig around under the desk and see if you can find the clue-by-four! Seems
this is a case for repeated application of same.
--
David Robley
Send $20 and I will double your IQ or no money back.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hose apps as csv files
--
David Robley
Every thing in this world is an idea acted on.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
much and where does it go is it in the .lib or
> the .php file
Regretfully my crystal ball is out for it's pre-Christmas service so I have
no idea of the code you are using. Perhaps if you were to post the relevant
part of your script someone might be able to help you.
--
David Robley
Sou
clipse is a totally
> good work around but this would be great.
I suspect you may find the answers here:
http://www.phpeclipse.de/tiki-forums.php
--
David Robley
2400 Baud makes you want to get out and push!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7;t say whether you restarted apache; this is required to read and
utilise the changes to php.ini.
--
David Robley
That does not compute.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ateToString ( $todayDt,'DD/MM/' );
>
> Anyone know of any functions that do this or have pointers as to how
> it can be done.
>
> Ben
Have you looked at date() and strtotime() ?
--
David Robley
How do you make Windows faster ? Throw it harder
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>> $headers .= "X-MSMail-Priority: High\n";
>> $headers .= "X-Mailer: php\n";
>> $headers .= "From: $emailfrom\n";
>>
>> $mailsent = mail($emailto, $subject, $msg, $headers,"-f" . $emailfrom);
>
> 1) Use the proper delimiters between
Thanks
Maybe http://www.interactionarchitect.com/articles/toggle.htm ??
Cheers
--
David Robley
Those who can't write, write manuals.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t;
> In Apache, the user and group are set to Apache, and in PHP the safe mode
> is off
The directory where you are trying to write should also have write and scan
(x) permissions for the user; this probably means making the directory
chmod o+wx
Cheers
--
David Robley
My hat covers my head
ther for example $_POST[cb][7] is empty or null, so I can set
> the error message to one if it's empty?
I think you might find empty() and isset() fairly useful here.
Cheers
--
David Robley
Don't play stupid with me! I'm better at it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay Paulson wrote:
> Does anyone know of a good polling script that is, obviously, written
> in PHP?
>
> Thanks!
Does http://www.google.com.au/search?q=php+polling+script help? I haven't
used any so I can't comment on 'good'
Cheers
--
David Robley
Radioactive
refox et al,
FCKEditor may be worth a look: http://fckeditor.com/
Cheers
--
David Robley
IBM: I Buy Macinstosh
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7; IN BOOLEAN MODE)
or maybe something else depending on the version of Mysql and exactly what
you are trying to do with your fulltext search.
Cheers
--
David Robley
Why do cats have canine teeth?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ot;$main[$i]"))
with
if ($handle = opendir( trim($main[$i]) ))
You don't need the quotes in opendir in this case.
Cheers
--
David Robley
Put on your seatbelt. I'm gonna try something new.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
FollowSymLinks
> AllowOverride None
>
>
> Where realtors is the root directory of my site...how can I get it to
> work?
>
> Thanks!
I think you need to look again at the apache documentation, especially
http://httpd.apache.org/docs/1.3/mod/core.html#allowoverride
Cheers
--
blackwater dev wrote:
> Thanks David,
>
> I just set it to AllowOverride All and restarted apache but it still
> doesn't seem to work.
>
> On 9/13/05, David Robley <[EMAIL PROTECTED]> wrote:
>> blackwater dev wrote:
>>
>> > I am using .htacc
bit daunting; echo might be easier for a beginner
unless you are used to C. To use echo, in example 3 replace
printf("ID: %s Name: %s", $row["id"], $row["name"]);
with
echo "ID: {$row["id"]} Name: {$row["name"]}";
Cheers
--
David Robl
recommended in this september forum -
haven't used it myself so I can't give a personal opinion.
Cheers
--
David Robley
Toys are made in heaven, batteries are made in hell.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, a look in the changelog confirms this.
php.net/ChangeLog-5.php#5.0.0b1
So if you are using php < 5.0, that would explain your error.
Cheers
--
David Robley
Be nice to your kids. They'll choose your nursing home.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ls very well with the plethora of rubbish that seems to
issue from Word. These seem to be mainly in the range (but not all of the
range) ASCII 128 - 159
TIA for any pointers.
Cheers
--
David Robley
"I commanded a group of ships for a week," Tom said fleetingly.
--
PHP Gener
Ross wrote:
> When I try to insert a field into my database it shows as Resource id#21?
>
> I must be doing something dim.
Indeed you are; perhaps if you show a code snippet someone can guide you to
the light :-)
Cheers
--
David Robley
Do not believe in miracles -- rely on them.
ne have experience compiling PECL extensions on Windows?
>
> I'd appreciate any help you could give me.
>
> Thanks,
> Chris
Have you looked at uniqid() ? http://php.net/uniqid
Cheers
--
David Robley
Nothing is more relaxed than a sleeping cat.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, I think it might be something quite unexpected. Try commenting out
the two calls to header, then run the script and do a 'view source'. My
guess is there is a syntax error message being output which will of course
cause header to bleat. My second guess is that the syntax error w
t;
> Fatal error: Call to undefined function: init_auth_user() in
> /usr/local/www/pearweb/include/pear-format-html.php on line 112
>
Very much online, but until someone fixes the code
Cheers
--
David Robley
People own dogs. Cats own people.
--
PHP General Mailing List (http://w
rong name. Name not in db
> {
> unset($action);
> header("Location: loginerror.php");
> }
>
> }
>
> ?>
>
> (form.php)
>
>
>
>
>
>
>
>
> Login as:
>
>
>
>
)
>> {
>> return mysql_real_escape_string( trim( $value ) ) ;
>> }
>>
>> the 'decrypt' function uses MCRYPT_RIJNDAEL_256 with a $key stored
>> outside the web folder.
>>
>> many thanks :)
>
> My understanding is that mysql_real_escape_s
John Nichel wrote:
> David Robley wrote:
>> Ben wrote:
>
>>>My understanding is that mysql_real_escape_string will only work while
>>>you are connected to mysql. Not sure if that is the case in your
>>>situation.
>>
>>
>> That is i
le_handle = fopen("./" . $file_name, "r");
> $file_bytes = $file_record[0];
> fwrite($file_handle, $file_bytes, strlen($file_bytes));
> $return_value = "./" . $file_name;
> }
> }
> return($return_value);
> }
>
> Thank for your help.
> Ndagi
Cheers
--
David Robley
A cat will go "quack" - if you squeeze it hard enough.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anyone have any idea why
> this is happening?
>
Been there, done that, upgraded the PMA :-)
Cheers
--
David Robley
I lost a button hole today.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e="; .
$_POST['message']);
}
exit();
if (isset($_POST['cancel']) ) {
header("location: http://f.q.d.n/path/to/index.php";);
}
Add other sanity checks as required.
Cheers
--
David Robley
Do not put statements in the negative form.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t; Hi
> Your email
>
> The contents of $_POST['name'] and $_POST['email'] appear to be
> unavailable to action.php. If I understand the documentation correctly
> this should not be the case and whatever strings are filled in the form
> of action.html shoul
class that creates a new socket, however on my client's shared
> server, the creation of sockets is not allowed. With a new socket, I am
> able to pass the variable information via the socket (POST).
>
> Todd
>
> David Robley wrote:
>> Todd Cary wrote:
>>
Max Belushkin wrote:
> John Nichel wrote:
>> Jay Blanchard wrote:
>>> [EMAIL PROTECTED] ?
>>>
>>> I am getting failure notices out the wazoo for some very old messages
>>> to the
>>> general list.
>
> I am too.
Ask me! Ask me!
No,
one knows that you
>>> cannot edit php with punch cards. Hanging chads will cause too many
>>> fatal errors. ;)
>>> [/snip]
>>>
>>>
>>> ROFLMMFAO
>>
>>
>> Why these clumsy interfaces?
>>
>> Just plug the Fi
gt;Homesite (because I already have a licensed copy) or
>> Textpad (because it's
>> >>>better than Notepad).
>> >>>
>> >>>IDEs? Who needs 'em ;)
>> >>>
>> >>>Best,
>> >>>Jason
>> >>
#x27;Nuff said.
>>
>
> Come on now Jay, we know you're old and all, but everyone knows that you
> cannot edit php with punch cards. Hanging chads will cause too many
> fatal errors. ;)
>
Suitable underware will prevent hanging... oh wait, he said _chads_
Cheers
--
David Robley
If little else, the brain is an educational toy.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e anyway) is to check what
is actually being passed, with print_r or var_dump.
Cheers
--
David Robley
Support bacteria - it's the only culture some people have!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
submit and use the submitted values in a if-else or CASE
> statement. This is all on the same page.
You would need to add a VALUE property to each of the OPTION tags, and
depending on the METHOD property of the form, chech the $_POST or $_GET
array
Cheers
--
David Robley
Vote Democratic.
7;d imagine that others such as htdig would be similarly
configurable.
Cheers
--
David Robley
Shin: A device for finding furniture in the dark.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
zlib-dir=/usr \
> --with-xpm-dir=/usr/X11R6 --with-libxml-dir=/usr/contrib/ \
> --with-freetype-dir=/usr/X11R6 --with-tsrm-pthreads --enable-mbstring \
> --enable-imap --with-bz2 --with-apxs2=/usr/contrib/bin/apxs
>
> What am I missing?
What is not happening that you expect to be
William Stokes wrote:
> Hello
>
> What is the best way to determine if a variable has no value?
>
> if ($var= '')
>
> or
>
> if ($var= 'null')
>
>
> Can 'null' be used here?
Look at isset() and empty()
Cheers
--
Davi
rver\ework\classes\page.class.php on line 8
>
> If I change to
> var $myID;
> it works.
>
> What is wrong?
I think you will find that the Visibility feature you are trying to use was
introduced with PHP 5
Cheers
--
David Robley
I'm sure it's in the manual somewhere...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Weber Sites LTD wrote:
> What is the best (Free) way to create good looking graphs with PHP?
>
> Sincerely
>
> berber
I haven't used it, but when this question comes up, jpgraph is the most
common answer.
Cheers
--
David Robley
I hit the CTRL key but I'm still
> php_value upload_max_filesize 8388608
>
>
> php_value upload_max_filesize 8388608
>
>
> Nothing seems to work. This didn't used to be a problem. I can
> upload files smaller than 2M just fine. Any ideas?
>
> TIA
Have you checked the value for
how
foreach works :-)
In simplified terms, the first time through the foreach loop, this happens:
pointer at element 0
$key gets value 0
$value gets value Yellow
pointer moved to element 1
Then you use key(), which gives you - guess what?
Cheers
--
David Robley
"I'll tempt Adam tonight," she said evilly.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ing
--with-config-file-path=PATH
Sets the path in which to look for php.ini.
defaults to /usr/local/lib
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.fli
mber of elements in the
array with count($varname) and proceed according to the result; ie if it's
zero, there is nothing to do/an error has been made; if one, just grab the
value of the variable ; or if >1, cycle through the elements of the
array(s) and do what you need.
--
David
sen, this won't work for me.
Drop down lists can be multiple select types - use the keyword MULTIPLE
when defining the SELECT.
>
> How do I store all the choices from each subsequent
> page and bring them all together on the final page?
>
> Thankyou,
Pass them as hidden fiel
with a switch statement.
switch($singlerooms) {
case 1:
$roomType ='Single Room';
break;
case 2:
$roomType ='Double Room';
break;
..
}
Cheers
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIE
result memory is automatically freed at the end of the script's
execution.
For downward compatibility mysql_freeresult() can also be used.
Cheers
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
A
35
>
>
> Anyone know why?
What version of PHP are you using? From TFM:
Also note that the optional second argument was added in PHP 3.0.17 and PHP
4.0.3.
Cheers
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES
On Fri, 2 Feb 2001 01:47, Karl J. Stubsjoen wrote:
> Is this a tab character \t
Yes - but remember that you won't be able to see it on a page rendered by a
browser, as they tend to treat tabs, multiple spaces and line feeds as a
single white space.
--
Davi
avid
php.ini is not installed - you need to modify php.ini-dist or
php.ini-optimized from the top level directory of your source and place it
in the directory you have specified at compile (if you did) or the the
default (/usr/local/lib) location.
--
David Robley| WEBMAS
On Fri, 2 Feb 2001 10:32, David Robley wrote:
> On Fri, 2 Feb 2001 02:37, WreckRman2 wrote:
> > Actually it isn't on a windows system. Looking at my phpinfp.php file
> > it shows "Configuration File (php.ini) Path" as /usr/local/lib but I
> > see no file
ve it return a result, thus:
function CheckBirthday($year,$month,$day) {
if (($day) && ($month) && ($year)) {
if (checkdate($day,$month,$year) {
$birthday = "$year/$month/$day";
} else {
$birthday = "Invalid";
}
}
return $birthday
}
g = "This is my dog, Jack";
> str_replace(" ", "%20", $my_string);
>
> $my_string remains with spaces, not %20s.
>
> Thanks.
>
>
>
> Kevin McCarthy
rawurlencode seems to be what you want if you want %20; or see urlencode
which uses + for space
On Fri, 2 Feb 2001 11:36, David Robley wrote:
> On Fri, 2 Feb 2001 11:22, Kevin McCarthy wrote:
> > All -
> >
> > Any easy way to take a string and fill the spaces in it? Say like a
> > URLencoding:
> >
> > This is my dog, Jack
> > becomes
> >
the ID field. How can I get the script to determine what
> id number was given to that row?
>
> thanks
>
> /sunny
If you are using mysql, mysql_insert_id will do that for you.
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDI
>
> Ankur Verma
> HCL Technologies
> A1CD, Sector 16,
> Noida
There is a nice program called procmail, which may already be on your
system. Alternatively, under sendmail you can use entries in /etc/aliases
to play around with redirecting emails.
--
David Robley
un through the for loop, you are assigning a new value to
$contents, rather than appending new information to it. I think you need
$content .= printf(blah blah);
or without the printf complexity
$content .= "First Name: " . $array["FirstName"] . "\nLast Name: " .
which should give you some ideas for getting the values and keys
from an array. You might also be interested in count and sizeof for
determining the number of elements in the array.
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH C
ertion);
>
> The post is updated fine but the time is changed as I stated...Now I know
> I could pull the time_added field out and assign it to a separate
> variable and re-insert it when im updating but I'm curious as to why this
> would be happening...These are the only places
ate tables from the dump and assuming you have
created the necessary database, you can simply do this on the command line
mysql database < your_mysqldump_file
or you can nominate the file in the data import part of phpMyAdmin
--
David Robley| WEBMASTER & Mail Li
t;,"b"=>"banana","c"=>"cucumber","d"=>"apricot",);
show_elements($fruits);
?>
That's pretty much plagiarised from the array functions in the manual :-)
--
David Robley| WEBMASTER & Ma
On Wed, 7 Feb 2001 11:28, enthalpy wrote:
> anyone have example code for randomly grabing an item from a mysql table?
>
Mysql 3.23 will let you order by RAND() and you could use a LIMIT to
restrict to one result. I haven't tried it, though.
--
David Robley
file_type" value="applresults"> name="submit" value="Upload File">
>
>
>
> I think it may be how you specify the enctype?
>
> - Shane
A quick search turned up this URL:
http://www.w3.org/TR/REC-html40/interact/forms.html
which s
On Wed, 7 Feb 2001 13:58, David Robley wrote:
> On Wed, 7 Feb 2001 13:42, Shane McBride wrote:
> > > How can I ensure that a file is transferred in ascii mode using the
> >
> > following: > action="do_upload.php">
> >
> > File to U
; $message = explode ("|", $line);
42>
43> while (list (, $value) = each($message))
44> {
45> echo "chop($value)";
46> };
The comma in Line 43 is important!
Alternativel
uot;";
>
> if ($op == "ds") {
> $url = 'http://www.bigcharts.com/quickchart/quickchart.asp?symb= .
> $symbol'; header ("Location: $url");
> }
> ?>
If you are going to use header, you _must_ make sure that nothing is output
to the
mp; installed without any whine ..
What do you mean 'don't work'? Are there error messages? Create a
document with just
in it and see if in fact GD support etc are enabled in PHP
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENT
to strip out escape sequences?
>
> - John Vanderbeck
> - Admin, GameDesign
addslashes and stripslashes are the functions you need.
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet
ncoder has some information.
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRAL
use it to index a database directly. Search google
> for the URL.
It's http://search.mnogo.ru/
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.fl
0 ][ pager - 208.387.9983 ]
Keystone? http://www.stonekeep.com/keystone.php3
It and some others are listed on the projects page of your favourite PHP
mirror.
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.n
; }else{
> echo "Success";
> }
> while (!feof($file)) {
> $line = fgets($file, 255);
> if(eregi($oldemail, $line, $out)) {
> str_replace($oldemail, $newemail, $line);
You need to assign the output of this function to a string:
#x27;0' NOT NULL auto_increment,
> date text,
> indice text,
> indice_url varchar(255),
> PRIMARY KEY (id)
> );
>
Date as a _text_ field? You'll never have a Year 20 bug
problem :-0
--
David Robley
--with-config-file-path --enable-debug=no --enable-track-vars=yes
--enable-bcmath=yes --bindir=/web/webdocs/cgi-bin
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet
sql="select path from table where pid =1"; //obvious
$link_id = mysql_connect($host, $usr, $pass); //get connection handle
$result = mysql_db_query($database, $sql, $link_id);
/* put a die on the above or better use mysql_error */
$i = 1; //initialise counter
while($row
u can't is there a away around this?
>
> Thanks
>
> Peter
In SQL queries, you normally separate the required fields with a comma, so
$sql="SELECT id, email FROM table WHERE user='$user' and pass='$pass'";
would work, assuming id and email are fields in the
o the power of 3 calculation and
> I cant get it to spit out 27 like I know it should.
>
> Any suggestions ?
>
>
> Thanks
>
>
> Chris
Check out exp() and pow()
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY
table)
>
> Peter
>
> > Hi,
> >
> > Can you have a SELECT statement (using mysql) that goes something
> > like
> >
> > $sql="SELECT id && email FROM table WHERE user='$user' and
> > pass='$pass'";
What i
ni_date day"));
> $val_date = date("Y-m-d", strtotime ("+$ini_date day"));
> echo("\t[$ini_date]
> $dis_date\n");
> }
> while (++$ini_date <= $max_date);
>
> -----
Can you be a little more specific? Details o
in lib under that path for the libraries and
include for the include files.
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
ally
outsite your webserver document root. So for some security, put your
passwords etc outside the web root. Also, see the php.ini file if you
have access to it for how to define a search path for include files.
As for downloading the manuals, try right clicking and choosing the 'Save
L
1001 - 1100 of 1128 matches
Mail list logo