cter in PHP ?
>
> I have been searching for documentation on this matter so if anyone
> could help me...
In this respect, PHP is not like C. Strings are defines within quotes,
single or double depending on the circumstances. So \0 does not define
the end of a string.
--
David Robley
Temporar
>
> Thx
>
> Vaso
>
Nope - unsubscribe and use the newsgroup at news.php.net might be an
option.
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t off illegal stuff. I want something a little like
> Slashdot's stuff.
>
> Easy?? anyone know anything about this?
>
> Thanks
>
> David R
Striptags()
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
blem as above
> {
>
> echo "";
> echo "Feed my pet";
> echo "Put in my shop";
> echo "Put into my Footlocker";
> echo "Discard this item";
> echo "Donate this item";
> echo "";
> echo "";
> echo "";
>
>
> }
> }
> }
>
> Thanks for your time
> Jennifer
>
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
= "INSERT INTO mytable VALUES(" . $mystring . ")";
where of course $mystring is the correctly formatted set of values to
insert. Note that using this method you must have a value for each field
in the table, in the order in which the fields appear in the table.
--
David
Look at addslashes/stripslashes
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.= $cat->name + $indent; // here is where I want to assign
diff. colors
$color == "red" ? $color = "blue": $color = "red"; // Cycle color for
each iteration
if ($cat->id != $parent)
build_folder_tree($output, $cat->id, $indent." ");
}
}
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
o the DB, then check mysql_num_rows. If it is zero, print
the error message; otherwise go into the while loop to display your
results.
--
David Robley
Temporary Kiwi!
Quod subigo farinam
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
erhaps if you could show what you are doing and which is not working,
someone might be able to help you. As it is we have no idea of the format
of your data or the method you are using.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES
lhost:/spider/index.html?query=ihateIIS";)
>
> outcome - blank screen, headache from staring at screen too long ..
>
> HELP!!!
I guess first question is - does View Source show you anything?
Isn't it wonderful how unis, of all places, insist on running stuff like
r = str_replace("", chr(10), $buffer);
> //replace html breaks with returns
> $buffer = str_replace("", chr(10), $buffer);
> //strip all other html tags
> $buffer = strip_tags($buffer);
>
> //email away...
> mail("[EMAIL PROTECTED]", "Auto F
he result of the include to a variable and examine the
variable; try including just the base file without parameters; are the
logs on the target system showing naything as a result of your connect?
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES
e passed in, you
might want to check your magic_quotes settings, and also perhaps echo the
incoming value for description to see whether it is as you expect.
You might have to play around with addslashes to get the right result.
> OUTPUT
>
> SQL: SELECT ID,Category,description FROM ca
criptviewer.html
This windows application is designed to show a parsed script file without
the need of a web server. This may be useful for CD-ROM distribution,
Stand-Alone materials, and other uses. The application starts the php
executable with a file parameter, showing the result in a HTML
e is also a link to a PHP
editors page from www.php.net/links.php
[Kurt, I undertand how you feel :-)]
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Life would be easier if I had the source code.
--
PHP G
age can probably include another page that itself
> include another one.
>
> Any help would be great
> Thx
You'll find in the docs about include/require that when a file is
included, the parser drops back to 'text' mode; if you want the contents
of an included file parsed
uot;] . ">" . ";";
> }
>
>
> echo $email;
You would probably want to append the values to $email in your loop,
then. As it is, you are overwriting the value in $email each pass through
the loop.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin,
t does that and if so does someone have an
> example?
>
> thanks
You can dealt with the string as if it were an array of characters.
Or you could use substr to work your way through the string.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDI
ted since
4.06. Changing to mysql_query is recommended.
> #2) Does anyone know of a convention / conference which will have any
> PHP coverage in the North East?
Northeast of where :-)
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES F
ike
phpmail: "| /pathto/your/php/script"
and run newaliases to update your alias database.
You'll also need to compile php as a standalone, and put as the first
line of your php script
#!/path/to/php -q
Cheers
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin,
transport agent
on the local host; the SMTP setting in the ini file is (or should be)
clearly marked as Windows only.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"I don't know any sha
)
Quicker to ask online than look in the manual, is it?
http://www.php.net/manual/en/function.checkdate.php
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Oxymoron: Unusual Routine.
t; before you try to fopen($filename) again. Otherwise, PHP maintains
> > the file open for
>
> reading
>
> > (and writing, if that's how you opened it.)
> >
> > hth
> >
> > --kurt
This may be a 'feature' of your ftp target. There may be limitations
hanks ahead of time!
>
> Rick
If you have logging enabled for mysql, check that log. It might be in
your mysql/data directory. Also check ~/.mysql_history for caommands ent
via the mysql command line monitor.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FO
so if you have
an earlier version you need to upgrade to get the function.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Swap read error. You lose your mind.
--
PHP General Mailing List (http://ww
> eregi_replace("\\n", "", $foo); and
> eregi_replace("\r", "", $foo); with no luck.
>
> Am I missing something when using ereg on special characters?
>
>
> Justin French
What about
$newfoo = eregi_replace("\n", "",
esident, I have to say that I think most of the
Aotearoans should be awake at this time of day - albeit possibly on their
way home from work :-0
Cue sheep joke.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALI
> Physical inserts newlines into the text whenever needed
> Virtual just wraps the text in the area.
And of course you'll need to use nl2br() if you want the text to break in
a HTML page.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES
; -Kevin
Backslash works for mysql. Have a look at the addslashes (for putting
into Oracle) and stripslashes (for displaying data retrieved) functions,
also the magic_quotes settings in your php.ini.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIE
t; hard disk this image.
>
> I need to show this image in the browser, How can I do it?
>
> Thanks in Advanced,
>
> Regards,
You may need to send a header including the correct mime type.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJUR
>
> sc
Er, want to be a little patient? That is three requests in seven minutes?
Your query is probably broken - do some error checking after your
database call with mysql_error() and see what the problem is.
Guess; the table name.
--
David Robley Techno-JoaT, Web Maintainer, Mail L
the table name.
That's what I meant - but I was hoping he'd do a bit of work :-)
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
This is Borg. is futile is inevitable
--
PHP General Mailing L
, you'll
need to set up appropriate permissions for mysql. Check the mysql docs,
under Mysql User Account management.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
My favourite mythical cr
ke
Since 4.06, according to the docs.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Keyboard Not Found - Press [F1] to Continue
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
AddType application/x-httpd-php .php .php3 .html
which tells apache to use php to parse files with extensions listed.
I don't know whether the redhat apache rpm uses DSO or not - ther may be
problems there also.
But check for the addtype entry first - and remember to 'apachectl
gr
ch should both be in the same relative position in the list of
LoadModule and Addmodule items (probably last in both cases)
If all else fails, I'll be in Auckland in six weeks :-)
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinder
otherwise what
> you're saying is that the AddType isn't being executed if the
> is false, yes?
>
> What a pillock. I can see this is going to be some learning curve.
> Warwick
>
Well, now check if the Loadmodule and Addmodule lines are in the conf
file.
Pillock? How
On Wed, 31 Oct 2001 22:04, Adrian D'Costa wrote:
> On Mon, 29 Oct 2001, David Robley wrote:
> > On Sat, 27 Oct 2001 03:23, JSheble wrote:
> > > A while ago an email came through here about how to parse out email
> > > message from a php script. The thing that wa
say tabs as cell
separators, EOL as row separators, but you would also need some
indication of where table starts and ends.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Check book: a book with a unhap
produce an executable called,
strangely, php.
I think there are a few lines in the docs about it somewhere in the
compile section.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"I th
thingy in there.$products->Fields("itm_aship")?>
>
> Could I do this
> Fields("itm_aship")-0.5*1?>
> or am I thinking all wrong... Thanks!
That idsea should work - but also consider doing the same thing in your
database query.
--
David Robley Tech
g through 1000's of lines of
> phpMyAdmin code :)
>
Justin
You might want to have a look at mysql_field_name and mysql_field_type.
There is an example in the docs for the latter that I think will point
you in the right direction.
--
David Robley Techno-JoaT, Web Maintainer, Mai
On Fri, 2 Nov 2001 18:33, Adrian D'Costa wrote:
> On Fri, 2 Nov 2001, David Robley wrote:
> > > > > What if we need both version??
> > > >
> > > > There's nothing stopping you running both.
> > >
> > > How do you compile it f
ion(?) but I just cant get it to send
> mail!
>
> Thanks.
I assume you aren't getting a message like 'mail is not implemented in
this build"?
If not, the first place to check would be php.ini, to ensure that it is
pointing at whatever you are using for mail.
--
David
s, including / ... how can
> I do this?
>
> thanks...
If you mean only being able to ftp into the defined structure, and you
are using a unix variant, look into chroot - system command, not php.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIE
TDIN be a PHP variable, that is because I want to make
> the updates over the net.
>
> Thanks!
> Hey, sorry for my bad english!
>
> Take care!
Look at exec(), system() and perhaps the use of backticks [``] to executa
a command and pass a variable.
--
David Robley Techno-JoaT
ted.
>
> here's the site so you can see what i'm talking about:
> http://your-az-realtor.com
Out of curiosity, why do you not want to make multiple accesses to the
DB? It would seem to be the easiest, and probably best way of dealing
with the problem.
--
David Robley Techno-J
les; in which case the answer is a qualified 'yes' - qualified because
earlier versions of Winzip (and no, I don't remember when it changed)
don't do compressed tar files.
I believe this info is also on the Winzip site.
--
David Robley Techno-JoaT, Web Maintainer, Mail L
pping is a common way of doing this, however. (Not tarring and
feathering, usually reserved for those who give wrong advice...)
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
I'm at the corn
y that
> the logging.inc file is added to.
>
> Can anyone help?
> Steffan
../data/access_log.txt seems to be a relative address to me, pointing to
the directory data which hangs off the parent of the current directory.
Why not give full path information, so there is no ambiguity? Or use
c on your system - it makes a
fair stab at parsing M$ Word files. If not, google will find it for you.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Change is inevitable, except from a vendin
md");
>
>
>
> It seems weird to have use months possibly greater than 12 ($adv =3D =
> $cmonth + 6;), but hey... it works.
It is documented for mktime - it says '...it will automatically calculate
the correct value for out of rnage input' and the examples include o
/install.configure.php#install.configure.data
bases
There are several odbc options - I don't know which is better or worse
but a search through the mail archives will probably turn up some recent
discussion.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR
atement, it fails. Is what I want to do
> > against
>
> the
>
> > rules? I'm converting an ASP script I have to PHP and I have it all
>
> working
>
> > under ASP. That means it should be eaiser with PHP right? ;-)
> > Thanks in advance.
> >
> > ...Brad
t; It seems (to me) that it is a precedence problem, as it does not look
> in the include_path first to see if the file exists but simply creates
> it in the active documents directory.
>
> Any ideas would be appreciated!
>
> Steffan
>
>
> -----Original Message-
s Subway", "Her har du ditt
> passord: $myrow["id"] \n God appetitt! Hilsen Subway");
The value you are passing in $myrow["id"] doesn't exist in your code. You
need to do
$myrow = mysql_fetch_row($id);
after your mysql_query to populate the row data. And your
hp.ini was updated? Check umm, I think it
is register_globals
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"I flatly deny this," said Tom under pressure.
--
PHP General Mailing List (http
-xpm-dir=/usr/X11R6
This assumes that you have freetype2 installed along with the libjpeg and
libpng libs under /usr
-Rasmus
Keep an eye on the output of configure as sometimes you'll see messages
in there about the image libs - but the absence of same even if specified
doesn't seem
c++-3.0.1-3
> compat-egcs-c++-6.2-1.1.2.16
> libsigc++-devel-1.0.3-5
>
> Thanks a lot
>
> roy
> --
> Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA
>
> Computers are like air conditioners.
> They stop working when you open Windows.
Do you have appropriate permissions i
On Mon, 19 Nov 2001 11:15, Martin Towell wrote:
> add:
> $mailheaders.="CC: $other_email\n";
>
>
> $mailheaders.="BCC: $other_email\n";
> should also work but I haven't managed to get blind carbon copy to work
> for me :(
>
Try Bcc and Cc - note
he value I
> inserted).
>
>
> Any ideas?
>
>
> Justin French
mysql_insert_id is your friend, in this case. Even if someone inserts
another record, this function will return the auto ID for the last insert
performed using a given link identifier. So you feed it the link
identifie
essentially, if you do
mysql_db_query($DB, 'INSERT INTO blah');
$newid = mysql_insert_id();
you can be assured that the $newid will be the ID of the record inserted
by the previous line, notwithstanding that forty other people are
inserting new records almost simultaneously.
-
t; MySQL-3.23.44 and PHP-4.0.6. I have set this same system up on several
> other machines and have never come across this error.
> What am I missing that is causing this problem?
> --
> Chip W.
It would appear that you don't have gd on that machine, or it is not
where the config i
flaw in your logic in the code snippet above :-)
What you are saying is:
gethostname for IPADDR;
if HOSTNAME = IPADDR
print HOSTNAME
which will only work if the resolved hostname is the same as the IP
address; I suspect that is not what you want?
--
David Robley Techno-JoaT, Web
into my mail() script. Sorry for the
> trouble.
>
> Ben
>
> -Original Message-
> From: David Robley [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 19, 2001 4:29 PM
> To: Ben Clumeck; [EMAIL PROTECTED]
> Subject: Re: [PHP] IP Address Converted to Computer Na
> not to be the case with GET variables passed via the URL.
Anything coming via get/post is a string, regardless of what it looks
like :-).
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"This
On Tue, 20 Nov 2001 13:39, Chip wrote:
> On Monday 19 November 2001 15:54, David Robley wrote:
> > On Tue, 20 Nov 2001 01:11, Chip wrote:
> > > I am setting up a new system for a friend and am getting the
> > > following error when running ./configure -
> > &g
haven't seen anything like this. Whats the story with
> variables with $$ in them??
> Thanks..
They are variable variables. Check out
http://www.php.net/manual/en/language.variables.variable.php for more info
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
C
ng text. Even though the r+
> >> option is supposed to put the pointer at the beginning of the file
> >> and add to it as
> >> opposed to overwriting it doesn't seem to be working for me.
> >>
> >> What am I doing wrong?
> >>
> >> I
by using file() to read the
file into an array, then adding that array to the array of stuff you want
at the beginning of the file and then writing the whole array out to
file; that way you only have to do one fopen.
I dunno how you would do it in PERL, but the principle is the same at the
coa
mething wrong?
>
> Thanks
If you are talking about the mcrypt functions, you need the mcrypt
library - see the section of the manual on Mcrypt Encryption Functions -
and you need to configure with --with-mcrypt[=DIR]
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
nd make sure
that you don't have say several instances all writing to the same file at
the same time - use locking where it is not provided by the tool you are
using.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University
On Wed, 21 Nov 2001 14:52, Ashley M. Kirchner wrote:
> David Robley wrote:
> > The OS will take care of this by firing up another instance of
> > your script. All you need to do is be aware of the possibility of
> > multiple instances doing ?things? at around the same time a
a script to see where it expects to find the ini file to be,
then put one there, if you need other than the default settings.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Brain fried - core dumped.
this function in an while loop
>
>
>
> (I translated it into english so maybe some mistakes!)
>
> When i try to call the function i get a mysql error every time, even
> when i make $resultactive ("SELECT * FROM EIAProjecten") // NO DATE
>
> 1. Is it possib
much luck.
>
> Any ideas..
>
> Regards,
>
> Joseph
It sounds like you want to capture the output of the script - so you just
end up with what you would see in View Source???
Is this a one off thing, or what exactly is the problem you are trying to
solve?
--
David Robley
t() system
call.
#
It may be that you don't have crypt on your system; also, you might want
single quotes around the ENCRYPT and double quotes to delimit the string
and salt, thus:
VALUES ( 'henri', 'ENCRYPT("diesel","henri")' )";
--
David Ro
On Fri, 23 Nov 2001 17:05, De Necker Henri wrote:
>
> -Original Message-
> From: David Robley [mailto:[EMAIL PROTECTED]]
> Sent: 23 November 2001 08:24
> To: De Necker Henri; PHP-General (E-mail)
> Subject: Re: [PHP] MySQL query problem!
>
> On Fri, 23 Nov 200
ut how to separate message header and text and then temporary
> store it and then put it into database for future use.
>
> Thank you,
>
> Youri
http://www.w3.org/Protocols/rfc822/rfc822.txt
STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES
--
David Robley Techno-JoaT, Web Mainta
ris box with PHP 3.0.16 and MySQL
> 3.23.31
>
> Thanks
Presumably each event will have a unique ID? Then pass that ID as part of
the URL on the link for the detailed information, and use the ID to
select the detailed information.
--
David Robley Techno-JoaT, Web Maintainer, Mail Lis
of 1970 to sometime in the
year 2037, with a resolution of one second. Values are displayed as
numbers.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
WWhhaatt ddooeess dduupplleexx mmeeaann?
-
>
>
> I copy & pasted your code onto a test HTML page and modified the mysql
> commands to appropriately connect to my MySQL server. There was
> absolutely no problem with this code at all. What version of PHP are
> you using?
Just about to do that but he saved me the effort
rsing error from PHP, all the pages display as if the
> update had taken place.
>
> Can anyone see what I'm doing wrong?
>
> This all seemed like a good way of learning PHP and MySQL, it's just
> leading to further hair loss!
>
> Oh, and I'm sorry if this r
ource and php source ?
> Is Any the best practise of guide installation ?
You might want to get the latest PHP, 4.0.7
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Never eat prunes when you'
it.org/search.asp?page=49&s=ALLFILES
> >
> > Way beyond my capabilities and patience. :)
>
> Eugh
>
> Hrm, well ... it can be done at least. We just need someone to require
> it be done :)
>
s/require it be done/want to do it
;-)
--
David Robley
you have a match and they can enter; if not, they aren't
allowed in. You may need to pass the authorisation aacross scripts - you
could use a cookie, hidden field, sessions
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders Univ
['fname'];
> $lname = $row['lname'];
>
> $option_block .= "$lname, $fname";
> }
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
> The mySQL query that is executed returns a result set when I use the
> mySQL shell, and the connection string is valid. If someone could
> advise me as to
itle', something
like this might do the job:
$gethot_result = mysql_query ($gethot_query) or die ("Cannot get hot
items! Error: " . mysql_error());
while ($gethot_row = mysql_fetch_array ($gethot_result)) {
extract($gewthot_row);
$your_array[] = $title;
}
and here you have
y
> suggested (and which I have tried), well, it doesn't work, because the
> series must be sorted in a non-alphabetical way.
If you make the series field an enum type, it will sort in the order in
which the values are inserted
Put them in the order Baby>Genesis>Super>Predato
info();
> >?>
> >
> >Zliy Pes, http://www.zliypes.com.ua
> >- Original Message -
So do a "View Source" - if you see
in your source then your server is not correctly configured to parse php.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin,
I should use so that when the
> field is empty, "NULL" will be entered into that table field?
>
> Thank you, Shawna
If memory serves me correctly, you need to test for an empty variable; if
empty, assign it the value NULL (no quotes around it!)
--
David Robley Techno-
ote that you do not put single quotes around the values you assign to
non-char type fields.
It is useful to use mysql_error() after a call to the db where you
encounter problems.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders Univ
ne tools, but I'm not sure which
> one[s] to use.
I don't understand?
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
Friends come and go, enemies accumulate.
--
PHP General Mailing List (http
ut when I run it from the MySQL command line, copy/pasted from the
> code, it sets the value of starttime to 30 as expected.
>
> Anyone have any clue why this is?
mysql_error() is a good debugging tool; it will return an error string
that may be useful.
--
David Robley Techno-JoaT,
for
> OUTSIDE HTML. Please advise. Thanks.
>
Among other uses, it makes your source code easier to read in a 'View
Source'.
--
David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA
"I'm
t;
> Phpinfo() shows that PHP was compiled with: --with-gd, --with-jpeg-dir
> and --with-png-dir, among others. Why then am I not able to see any
> image?
Try taking the header line out; that way if there is an error message you
should be able to see it in 'View Source'.
--
Dav
very much for any hint...
>
> Greetz,
> Kilian
You saty the _directory_ is world readable, but the file being uploaded
may not be world readable - you may have to chmod it as part of the
process.
--
David Robley| WEBMASTER & Mail List Admin
RESEA
wordview, or
alternatively you could check the www.htdig.org site for document parsers
(catdoc.pl and parsedoc.pl, I think).
If you are on Windows you could of course use Turd itself, but I think
there is also some sort of Word doc viewer; whether they will do what you
want is another story.
--
he Filesystem section of
the docs.
--
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 A
doing a 'view source' on signup.html will reveal it.
--
David Robley| WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet| http://auseinet.flinders.edu.au/
Flinders Un
401 - 500 of 1128 matches
Mail list logo