dear list,
I've noticed that the longer i work on a project, the more i use my
'organic' way of adding features and filter, and the less i understand what
my own code is doing. Now I do have some projects of, say, 5000 lines and i
started very organized with flow diagrams and function descripti
At 22:21 4-1-2003, you wrote:
completely failed, the results were wrong every time:
if (strpos($REQUEST_URI, "register.php") !== 0) { // you're in login.php }
try
if (!strpos($REQUEST_URI, "register.php") === FALSE)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
I'm looking for a *free*, pre-built CMS with PHP/MySQL.
I've looked at ezpublish but I'm having trouble installing.
Criteria:
* Must have SE friendly urls (example.com/4/34/)
* Must allow different 'sections' for articles
* Must be easy to fix templates for the html/css
I happen to kno
CTED]
This seems to work:
$text =
preg_replace("/([^\/a-z0-9_])(([a-z0-9_]|\\-|\\.)+@([^[:space:]<>]*)([[:alnum:]-]))/i",
"\\1mailto:\\2\";>\\2", $text);
I did not check the entire regexp but it seems to do what you need.
Um, the NOT thingy in a regexp is the
in function i call to $smarty variable
"
function showLoginForm(){
global $db, $smarty; // $smarty = new Smarty in main code
Fatal error: Call to a member function on a non-object in
Are you sure
$smarty = new Smarty
is in the main code?
Can it be in another function?
Try setting
globa
ackup/backup.php.txt
Pick out what you need. I would like to get a copy of what you do with it.
In case it turns out you do not have access to mysqldump i have made a hack
on PHPmyAdmin to make it email the database as an atachment at a mouseclick.
Chris Hayes
--
PHP General Mailing List
At 10:07 15-1-03, you wrote:
I have table with six records in it. I can use "while" to display them all,
but in form. Is there any way I can edit all six records, and update them
all with one submit.
One of the many ways to do it:
When writing the form, number the fieldnames with the ID's of the
At 11:57 15-1-03, Marek Kilimajer wrote:
"SELECT Newsheadline, News, Contact FROM news WHERE Newsid = $_GET[id]";
- removed single quotes
I think that that is a really bad advice.
Let me explain.
For one, the single quotes are not in the way here because the query is
written between double q
At 14:29 15-1-03, you wrote:
> not with the same data
>
You can put your data and the primary keys in arrays and exec a loop
but the data[0] must be the data for the id[0],
data[1] must be the data for id[1] etc.
The loop should be something like this:
for (int $i=0; $i<=total_records_select_re
At 15:39 15-1-03, you wrote:
Hello
Is it possible to send all incoming requests to the same script within
PHP?
In other words: How can I get http://mysite/script.php to point to the
same script as http://mysite/anotherscript.php ? And is it possible to do
send a request like
http://mysite/someext
At 00:41 16-1-2003, you wrote:
Hello all,
Newbie here I need to know if there is a way I can get my dynamic IP
address for use in a php script?
--
There are loads of variables in the arrays $_SERVER and $_ENV, dump these
arrays and see if there is something in it that you can use. Maybe y
n please try to explain it again....
Chris Hayes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 09:05 17-1-2003, you wrote:
> I put the output of the database query in a table. It works fine. Now I
have a need to make the alternate rows of a different color.
>
> Can someone please help me with the code?
$cols = array('#ff','#00ff00');
$i = 0;
while(your_loop_to_output_each_
At 13:11 17-1-2003, you wrote:
> I want alternating colours in the output table. Can someone tell me what
is wrong with this code? I get the data but no alternating colours.
It has to do with the $cols[$i++%2] part.
When I try to print $i++%2 the outcome varies between 1 and none. Somehow
the
At 14:05 17-1-2003, you wrote:
On Friday 17 January 2003 20:59, Artur Bereniewicz wrote:
> how can I open text file and start reading in the middle of it?
AFAIK it's not possible to jump directly into the middle of a file and start
reading.
You would have to read it line-by-line until you ge
At 17:17 22-1-03, you wrote:
I was wondering what the licensing issues for app frameworks (or any
included PHP classes/libs) are. I'm creating a rather large PHP
application for a company, and they'd like to potentially resell it to
some of their customers.
Can I safely use GPL'd libraries, clas
At 20:19 22-1-03, you wrote:
Hi,
I want php to print " \tab"
but when I do, I only get "ab" as output.
How do I keep the \t?
Jan, between "double quotes", several things are translated
this becomes
\t a tab
\r a carriage return
\n a newline
\" "
\\ \
There are more,
At 00:48 24-1-2003, you wrote:
hello friends,
I am hosted with an ISP called Apexon. I have written php scripts to send
mail from a webpage. When I send this mail, the from address
becomes [EMAIL PROTECTED] . Their website says that the variable
sendmail_from is [EMAIL PROTECTED] . I want t
>Re: [PHP] Found a PHP bug!
uh oh...
I don't see why a string wouldn't work when I use "08" (string) and match it
against the integer 8, or 08.
They're just different types. Normally PHP is veeery flexible with
types, like javascript, but it just can't be flexible for you here becau
I'm more comfortable writing stuff in PHP. I use PHP alot more, and I
find the resultant code more readable and easier to maintain. Aside
from Perl's ubiquity and the dubious advantage of future flexibility by
using Perl's DBI interface to talk to different SQL servers (I'm using
MySQL at the m
At 07:52 28-1-03, you wrote:
Hi All Guru's here,
Sorry, i am not a guru. I do have visions to become the enigmatic leader of
a sekte but i think that's slightly out of scope here.
(Actually i have 500 html files containing this table struction,and need
to read all 500 files and convert the
I have a file which contains the following syntax:
; Events listings
[event]
month = january
day = 23
year = 2003
venue = some club
description = this is an event
[event]
month = january
day = 12
interesting function, i had not seen it yet.
You could have a look at the alternative function m
At 01:38 29-1-03, you wrote:
Using a fairly simple fsockopen and POST I'm sending form data to a script
which populates fields in a database. Everything works fine, however I've
been trying to figure out how to send a value set on the other machine
(database) back through the open socket (note:
At 15:52 29-1-03, you wrote:
Just curious, is there a PHP function that will break up the string for us?
Here's the example
--clip--
//Original
$name = "Jennifer B Cuff";
//Whatever is to be end result of the original
$first_name = "Jennifer";
$middle_name = "B";
$last_name = "Cuff";
--clip--
At 20:33 29-1-03, you wrote:
Does anyone have any suggestions for a good small FREe chat room to add to a
family site? A friend here at work is hosting a site from home and is
looking to add a chat room. Some of his site is php so if it is php based,
that would be great. We even talked today a
At 07:49 30-1-2003, you wrote:
Hello,
Is it possible via PHP to :
- join a pop3 server
- make a "query" to recover mails header, subject, date, sender, to
create a list.
- we I have the list when I click on an element of the list recever the
email content (text and attachment) and why not see
At 12:14 30-1-2003, you wrote:
I try to use a SQLqry in PHP, but i get this anwser in my browser:
FATAL: emalloc(): Unable to allocate 1073741824 bytes
Somthing i can do to fix it in PHP?
(I have no rights at the server)
could you add some code, this is far too cryptic.
also tell us what php
At 12:18 30-1-2003, you wrote:
sure this would work but it'd be VERY inefficient in my application. It's a
file browser application so i have hundreds of folder icons on a page .. the
'submit' element will pass back the name of the button clicked and it would
be available immediately/directly, wh
can it be related to the double slash in that path?
/usr/local/php/bin//php
At 15:42 30-1-2003, you wrote:
i have an script, it send a header response:
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 11:11 31-1-2003, you wrote:
hi all
I'm writing a mail client and I got problem with attachments. I have no
idea how to read and save attachments. Mayby someone already did something
like that a can help me with some advice or giving me link to some
resourses.
Maybe it helps to see how an
At 14:11 31-1-2003, you wrote:
So I'm using ereg(pattern, input) to see if the pattern matches or not.
SO for exclusion I build the following pattern [^$] and pass it to ereg
above. So if the input includes a $ the ereg should return false and the
processing shouldn't take place.
Well the thin
At 21:36 1-2-2003, you wrote:
> I am studying on php. And the book say, when the server see php
extension it
> is running php file and giving results to the visiting browser.
>
> But as I see related directories are normal directory, doesn' t like
cgi-bin
> directories.
>
> Is there any change t
At 11:39 3-2-03, you wrote:
what you did should work (you must be root to change owner). You can use
-R switch to change owner recursively
Gurvinder Singh wrote:
hi
i create a php page dynamically in my php script. this page include one of
my other php file. when i run the newly created script
At 17:54 3-2-03, you wrote:
if (is_object($_REQUEST['page']))
for me
if (isset($_REQUEST['page']))
works.
I often add a check against an empty value after this check.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Apparently it does not like the function name to be the same as the class
name. So change one of them.
first(35, "chris");
print $test;
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 21:51 4-2-2003, you wrote:
hi..
posted a message about what the code was to test an update query to see if
it was successfull using mysql and i tested my code and for some reason even
if none of the fields were updated it still reports the success message...
heres the code i have:
$query=mysql
Date: Tue, 04 Feb 2003 22:02:12 +0100
To: "Leonard Burton" <[EMAIL PROTECTED]>
From: Chris Hayes <[EMAIL PROTECTED]>
Subject: Re: [PHP] Function to make a select box
Could anyone offer any suggestions? The following function prints a blank
select box.
$result= "
There is a php file that retrieve the source code from the url www.url.com
and this source is treated and you get content from this file and show it
on the response page.
Is this possible? Can anyone show me the right direction?
yes, codeword is 'ripping', i found some hits on google with
php
At 13:28 5-2-03, you wrote:
Try:
$image_array = array();
$image_array[$file_name] = $image_url;
PHP wrote:
I am trying to create associative array in a while loop..
$image_array = array(); $image_array =
array_push("$file_name"=>"$image_url");
i agree with the suggestion, but maybe (this may
How can I get the value of an javascript string and pass it to a php variable?
var x = "test";
Well as you know, but just as a reminder, when you make a page with both
php and javascript in it, the PHP code is executed on the server and then
the resulting html plus javascript is send
i have to check if there's a dot in a string, and i need nothing but the
regex pattern for this... tryed a lot, but the dot itself means to matches
all.
you can read a little and not very clear introduction here:
http://nl.php.net/manual/nl/pcre.pattern.modifiers.php
and
http://nl.php.net/manua
At 00:25 9-2-2003, you wrote:
Hey all.
I'm coming from Cold Fusion to PHP; in CF I could alternate rows with the
following:
Any ideas how to do this in PHP?
one way would be:
$color_toggle=true;
$color1='red';
$color2='white';
$output="";
for ($i=0;$i<10;$i++) //or any other way to w
At 17:21 8-2-2003, you wrote:
Hi
I have to alter this code:
http://www.whatever.ee/', 'r');
for ($src = ''; !feof ($fp); $src .= fgets ($fp, 1024));
fclose ($fp);
if (preg_match ('/\([^<]*)\<\/font>/i', $src, $matches))
echo'Match: '.$matches[1].'';
else
echo'No match !';
?>
It
I have an array called $array_of_files.
I want to echo each element of that array as a link to itself.
That way when I click on an element I can send it as an actual value
/usr/local/plesk/apache/vhosts/myserver.com/httpdocs/php/categories/links1.txt
Once I place the variable $category inside th
At 22:00 9-2-2003, you wrote:
Hello,
How do search engines react to PHP pages? If every page of a
site has a .php extension will search engines not react well to that?
If it does, is there a possible way to handle tracking sessions with
php, without being punished by the search engines?
At 22:18 9-2-2003, you wrote:
Hi, I'm a bit of a newbie to PHP, I've done some stuff in Java/VB/C++
but I'm having a few problems finding info on this issue.
Does PHP support something like static functions in Java?
afaik the answer is no, but please do not rely on my pitiful opinion. I
only us
At 22:49 9-2-2003, you wrote:
yes, you can call a static method on a class by specifying the class name,
then 2 colons and finally the function name:
classname :: functionname([arg,.])
(of course properties can not be accessed by such methods)
ah ok, cool
--
PHP General Mailing List (http
At 23:09 9-2-2003, you wrote:
you may find the following link interesting
http://www.tek271.com/articles/JavaOrPhp.html
David Eisenhart
I cannot suppress the feeling that someone out there has a slight prejudice
in favour of Java!
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
At 09:27 10-2-2003, you wrote:
hi there,
i'm having a small problem, wondering if anybody can help
// a line in my script defining $url
$url = $directory . '/main.php?id=' . $id;
// a line later on in the frameset calling this $url
echo '';
this gives me a paring error on the last line
ple
I need to write some data to a text file but when I use
$this->ao_file_handle = fopen($this->ao_file_name,"ab");
$str_txt.= "\n";
fwrite($this->ao_file_handle,$str_txt);
It does not display the new line. I saw somwhere that for DOS files you need
to use ASCII LF and CR. Which I did. It still
Is it possible to "embed" a Word document with-in a PHP-GTK app (Windows)?
I'm thinking of the way Internet Explorer does it. Then to have a button to
Save the document to the harddrive, or a Print button which would somehow
cause the Word Doc to be printed.
Any thoughts?
some tuppences:
- fro
At 10:59 10-2-2003, you wrote:
I'm having a dispute with an ISP (surprise) about the non-functioning of
a PHP error script.
Currently, the error script is at
http://www.touristguides.org.uk/error.php - a direct click on that link
will redirect you, using:
header("Location: http://www.touristg
At 23:28 10-2-2003, you wrote:
G'day all
I've been trying for a day or so to get a script to traverse all the levels
of a directory.
did you see the first user comment on
http://nl.php.net/manual/nl/ref.dir.php ? may help!
With help from list archives and web sites I've come up
with this:
";
At 07:47 11-2-2003, you wrote:
I am new to regex and broke my head on it the other day...in vain...
Can any one tell me a place to get a step by step tutorial on it or help me
out on how to work it out ?
Some tutorials:
http://codewalkers.com/tutorials/30/3/ Codewalkers - Using PCRE
http://sam
At 13:46 12-2-03, you wrote:
The code I am trying to get working is shown below however, as the # is
interpreted as a comment the header function is only redirecting to
./itemadmin.php3?submittedby=$submittedby&cat=$cat
$head = "./itemadmin.php3?submittedby=$submittedby&cat=$cat#$edit";
header (
At 15:43 12-2-03, you wrote:
Hello friends.
Sorry I sent the wrong code in my last mail. Here is my correct code.
I want the output of my query to be formatted such that after every 7th
output, the 8th one should start on a new row in the table. I have written
the following code but does not w
woops i did not finish that line:
If you imagine to walk through your code, with every step $i increases. If
you start the second row,
then the counter is at 8 and will never be 7 again.
And some bad english:
Besides, your second print '' for every cell, which will break your
table, and p
At 20:38 13-2-2003, you wrote:
The PHP manual neglects to tell us what these assignment operators are,
can somebody point me to what they mean?
http://nl.php.net/manual/en/language.operators.bitwise.php
please also chek the user annotations for examples
&=
|=
^=
~=
<<=
>>=
just curious
hi,
maybe not the most professional way but my mailbox is jammed and i want to
clear it. My ISP host is doing some office refurnishing and needs all his
attention to pick the right color hues.
So i thought maybe i can send a simple POP command to delete all mails in
the mailbox? It's 14000 mails
At 15:33 19/02/03, you wrote:
I have a script which adds header information to a different page, on my
server I get a Cannot add header information - headers already sent by.
But on other servers it works fine, does any1 know why??
Are you sure you did not edit a file?
Take care that there is
At 14:36 22-2-2003, you wrote:
index.php:
choice your gender
male
female
x.php:
but at last it said that the gender had not been defined???
help me!
"by your command."
( a 'please' would be nice, X!)
Since PHP 4.1 form data are not automatically available as variables in the
followup fi
my friend Google told me this is explained at
http://www.thickbook.com/extra/php_email.phtml !
how can i make the server email me
the results of this form __
no
At 09:21 23-2-2003, you wrote:
[i] How or why do researchers adapt technology to their research projects?
Should they adapt their projects to technology? Indeed, how often does the
research assistant end up reinventing the wheel? [/i]
'Research' is an extremely broad field, with many places where
hi Luis,
I would like to ask you to _please_ (<--see i used the magic word so you
have to do it! :) ) make your mails fitting to the generally accepted formats:
1) Keep the mail title the same if the question is the same. Use the reply
button of your program, in such a way that in in replies we c
print "";
print "";
if ($_POST['Update'])
{
print "updated!!";
}
I do not see the statement "updated!!!" printed, but I cannot see anything
wrong with my syntax. Any help would be appreciated.
You are looking for a value, where the array is of the form
$_POST['form_element_NAME'='form_element
At 00:05 24-2-2003, you wrote:
trying to parse a URL and write html code to a file, then search the file
for a string between ... how would I implement the fread
function below, and regular expressions to read the specific conent. thx
or is there a php function that can return the TITLE of a UR
At 02:04 24/02/03, you wrote:
Hi,
yes in fact it worked...I also had the $numrows with wrong mysql command, it
should be mysql_num_rows() instead of the mysql_fetch_rows().
Thx Ernest
But now that this is working, i have another big problem...my
$drop_down_list isn't assuming the value of the show
At 03:48 24/02/03, you wrote:
Hi, please see the following red code...
(i get plain text, so not red)
it adds info to a MySQL Table called "Schools". Whats the problem?
Although the first time you execute it, it works, after the first time you
send the form you get ERROR.
$qs = 'INSERT INTO
At 15:01 24/02/03, you wrote:
Hello,
I have an sql statement that pulls data into a dynamic list box, the problem
is, I have this list box twice on my form, since the query returns a lot of
rows, I do not want to have the query executed twice but I populate my list
box using the while loop so when
At 15:31 24/02/03, you wrote:
I want to automate the process of connecting to a web-page and sending it as
a HTML email (like a weekly newsletter in html).
I've been reading up a bit on PEAR's Mail_mime
(http://pear.php.net/manual/en/core.mail.mime.php) but I just wanted to know
what the fastest wa
At 01:27 25-2-03, you wrote:
Thank you, but it doesn'T explain why i can run the other script for 5
minutes without any set_time_limit
In php.ini the default time limit is set.
And when you set the time limit in a script at the start of a loop, the
limit counter starts counting at zero again, or
At 11:16 25-2-03, you wrote:
Hi all!
i have to solve one problem, but i have no idea how to make this. I have
got a tree strucutre in mysql table, id - parent - name. I need make
function, which return array which will contains a strucutre of this
tree-menu, table example:
ID Parent Name
-
(buildtree( $ID)) );
}
return $branch;
}
It should iteratively call itself, adding the branches, untill it exhausted
all branches, then finally return the entire array.
You might like to check Google for iterative functions in PHP with arrays.
At 12:09 25-2-03, Chris Hayes wrote:
At 11:16 25
At 13:25 25-2-03, you wrote:
Please,
How do I make to format my date in the my format? For Example:
you forgot to tell how the date in the database is formatted, that is quite
important.
did you read the php manual on date() ?
http://www.php.net/manual/en/function.date.php
## I filter
$filter =
At 16:54 25-2-03, you wrote:
I am new to PHP.I have manually installed it to my Windows 2000 server
that runs on IIS 5.0 .
But also it included a .php file if i write correct url it could not
displayed the file on ÝE5.5.
What is the problem?
* does the server work with html files?
* which instal
i made some adjustments to the internet settings via internet explorer on
win98, and now when i try to access a file on the localhost (apache) i get
with every browser a file download dialog.
ie's dialog says
when i try http://137.224.157.67 (used to work)
filename 137.224.157[1]
filetype 157[1]
At 17:01 25-2-03, you wrote:
are you preloading graphics using JavaScript?
well, i turned javascript off so that can't be it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 17:06 25-2-03, you wrote:
i made some adjustments to the internet settings via internet explorer on
win98, and now when i try to access a file on the localhost (apache) i get
with every browser a file download dialog.
ie's dialog says
when i try http://137.224.157.67 (used to work)
filename 1
At 17:49 25-2-03, you wrote:
Hi guys, I have installed a test sever from those guys are FirePages.com.au
on my Windows XP Machine at home to test websites on http://localhost.
The only problem is the forms are not passing on the variables. I have used
the same scripts on a webserver and they work f
There is no need to post this thrice.
Anyway. What went wrong? Did you get an error message? Are both sites on
the same machine?
At 18:40 25-2-03, you wrote:
Hello all,
I am having problems with a script. The script works great on one of my
sights, however, when I transferred it to anothe
k for http://www.nypalet.com/Mail.html .
I do not know jack about PDP, I got the script from www.flashkit.com.
Thanks so much for the response.
Mark J
- Original Message -----
From: "Chris Hayes" <[EMAIL PROTECTED]>
To: "bionicegg" <[EMAIL PROTECTED]>
Sent: Tuesday, Februar
At 16:42 26-2-03, you wrote:
$result=unlink('$dir_to_upload/$row->Photo');
what do you get when you echo
echo htmlspecialchars('$dir_to_upload/$row->Photo');
and do you use the full file path? Images accept relative links but in my
experience PHP's file handling functions want the full path.
-
At 17:10 26-2-03, you wrote:
I have a conditional that looks like this:
if ((is_array($HTTP_POST_VARS['cart_quantity'])) &&
(is_array($HTTP_POST_VARS['products_id']))){
//do stuff
}
The evaluation returns false. What makes this confusing is just before
this block, for debugging purposes, I
At 18:32 26-2-03, you wrote:
I have a confirmation of "membership" page a user would arrive at after
clicking on a URL in an email. After they click on a link in this page I
want to delete the page itself so it will only exist for this one use. The
URL in the page does go to another "Welcome" pa
...and the problem that the form immediately goes to the real url is that
people see the real url?
What about one of the following:
- chop off the subdir again by only putting the last part of $PHP_SELF as
form action (f.i. with a combination of substr($PHP_SELF,...,...) and
strpos('/') )
or
> What is someone spells their name Desilva?
>
> On February 28, 2003 06:21 am, Justin French wrote:
> > What about DeSilva And McSomething?
I found another thread on this subject here:
http://www.phpbuilder.com/mail/php-general/2002102/2138.php, but i did not
read it.
Looking at all the exampl
I am putting my gamma-epsilon-psycho telepathy beamer to the maximum but
there are too many coders inbetween us, i cannot receive you.
Please give a little hint on what these functions are and what value comes
from where and goes where.
At 04:00 1-3-2003, you wrote:
I'm trying to implement the
At 18:13 3-3-03, you wrote:
is there a way you can change the text color on buttons as well as the
background color for a button?
you do that by making a css style for the button, plenty of examples on the
net, if you can figure it out from a german site try
http://www.webmatze.de/webdesign/css/b
At 19:17 26-2-03, you wrote:
On Thu, 27 Feb 2003 01:02:54 +0800, Jason Wong wrote:
>On Thursday 27 February 2003 00:54, {R}ichard Ashton wrote:
>> I have the body ov a Usnet article, all of it, in $body. I want to
>> split it into lines.
>>
>> I have tried
>>
>> $lines = explode( X, $body);
>>
>> w
At 13:35 5-3-03, you wrote:
can you assign global value in a class like:
class test{
global $arr;
}
anyone?
try! :)
if it does not work in this place, try setting it in the constructor
function, which is a function in the class with the same name as the class,
class test{
var $test_arr;
At 15:29 5-3-03, you wrote:
having to use coockies to identify visitors I seem to have a problem with
visitors using windows xp.
the command I use is setcoockie("coockie1", "true", time()+600)
any ideas???
Did you test this with various versions of windows?
Do these people have cookies turned on,
At 17:49 5-3-03, you wrote:
I'd like to add a mortgage calculator to a client's site. I've been unable
to find the formula.
Well the calculation depends on the companies policy of course.
1. Normal rent calculation would go like this:
where
i = interest or rent over a certain the period of time (
At 01:27 6-3-2003, you wrote:
// Code start
$i = 0;
$fp = fopen ("./../../cgi-bin/Classifieds/data/ads.data", "r");
while($tmp= fgetcsv($fp,5,"\|")) { $array[]=$tmp; }
fclose ($fp);
$rand_array=array_rand($array, 10);
foreach($rand_array as $line) {
did you check to print_r($line); here to s
At 13:37 9-3-2003, you wrote:
I want to display the first 3 words of my record in
the my table and following is the code i'm using.
When i use the SQL Query in mySQL.. it works great..
but when i try to implement it in my php page.. i'm
not getting anything.. no error, no display, no
result.. just
At 13:37 9-3-2003, you wrote:
if ($myrow = mysql_fetch_array($result)) {
do {
echo(" $myrow[title] ");
} while ($myrow = mysql_fetch_array($result));
}
PS same result with
while ($myrow = mysql_fetch_array($result));
{ echo $myrow['title'];
}
--
PHP General Mailing List (http://www.php.n
At 22:23 9-3-2003, you wrote:
You're looking for the str_pad function.
http://www.php.net/str_pad
$i = 3;
$i = str_pad($i, 5, '0', STR_PAD_LEFT);
echo $i; // outputs '3'
Just keep in mind that it won't help you if your input is greater than 5
to begin with, you'll have to check that seperately
At 22:15 9-3-2003, you wrote:
Hi,
I have a php script which does some stuff and at the end of the file I have
it include a file which has a form in it. The problem I am having is that it
is missing code. If you go down to the second input - it has a value="0"
field - this does not show up when I
At 12:54 10-3-03, you wrote:
what problem I want to use eval in my script but its generate this error :
Parse error: parse error, unexpected T_LNUMBER in
C:\Projects\phpmag\admin\functions\admin_cont.php(22) : eval()'d code on line 4
eval ("\$all_types_list .= \"$all_types_list\";");
For tho
PS: If you want a tool which really cleans up HTML you should use HTMLTidy
of course. :)
http://tidy.sourceforge.net/#source
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At 18:40 11-3-03, you wrote:
We are using Apache/PHP and using ORACLE as the database. When I submit
the page with hugs database when the server side script (PHP) running I am
getting an error "Page not found". But on the background it is adding
records to the database. Though I modified all the
1 - 100 of 319 matches
Mail list logo