Hi,
Please can someone tell me how i can tell if a string contains a full stop?
thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
please could someone tell me how i can return a month in text from an int ie
getMonth(12)
returns Decmber. Is this possible?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
weleve and want
to revert back to january?
Thanks for your input
"Dl Neil" <[EMAIL PROTECTED]> wrote in message
0ebf01c29ad8$1d733c60$c900a8c0@jrbrown">news:0ebf01c29ad8$1d733c60$c900a8c0@jrbrown...
> Hi Shaun,
>
> > please could someone tell me how i can re
Hi,
I am moving my site from one server to another, how can i copy all the data
in my datbase to my new server? Also is it possibel to do this one table at
a time?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I am trying to backup my database can someone please tell me why the
following commande wont work?
mysqldump -h localhost -u username -p databasename > backup.sql
thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
OTECTED]...
Take off the " > backup.sql" and see if you get any error's
that might explain it.
On Mon, 2002-12-09 at 10:07, Shaun wrote:
Hi,
I am trying to backup my database can someone please tell me why the
following commande wont work?
mysqldump -h localhost -u username -p
Hi,
i am using a form to upload an image to the server, is it possible to get
the image size during this process so i can store it for later use (i.e.
determining the size of the popup window to view the image)?
thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubs
Hi,
please could someone tell me what the sql command is to add a colummn to a
table?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Say i have a set of non sequential numbers for example: 1 3 8 12 13 16 19
21.
How can i get php to take a random number from this set?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
what is the best way to check if a textfield is empty, and is it the same
for file fields?
thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Is it possible to ensure that a user is uploading a jpeg file from a form
and nothing else?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
My webserver doesn't have the GD library installed, please can someone tell
me how I can resize uploaded images for thumbnails?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I am using the folling code to list all of my tables in a database:
Table
Action
Records
";
while ($row = mysql_fetch_row($result)) {
print "
$row[0]
add
data
edit
data
Hi,
Is there a way of updating a table so that I can add some sort of identifier
to each field, something as simple as x=1 will do. I want to be able to
modify the table so I can set a variable for each column so I can tell
whether I can let a user modify that field. If I modify the fieldname then
http://calendar.msn.com/ has some great controls for veiwing dates
day/week/month view etc. Are these windows specific (ie ASP only) or ise
there a way to use these in my PHP?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
Is there an easy way to scan through an array of values sent from a form to
see if any of them are empty?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$_POST['your_input_name'] == '' ) //etc
// field is empty
this would be particularly useful for forms with lots of fields...
"Niels Andersen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Since input from a form are strings, you can
I would really appreciate some advice from anyone who has worked with or
developed their own content management system.
This is my scenario, when i have finished creating a site, i want to be able
to add in the CMS with a minimum amount of fuss. I want to be able to get
the CMS to recognize all th
Hi,
i would like to list all of the tables and field names in my database
e.g.
table 1
field 1
field 2
field 3
table 2
field 1
field 2
field 3
table 3
field 1
field 2
field 3
etc
is there a simple way to do this?
thanks for your help
--
PHP General Mailing List (http://ww
Hi,
i have a form on a page which is built dynamically and consists of fields in
a certain table and checkboxes. The puropse of the form is to update the the
status of a table called CMS_FIELDS which stores data of all the fields for
all the tables in the database.
Using the following code i am a
Hi,
The following code snippet is supposed to return the current page i am on
and append some variables.
$s = getenv('SCRIPT_NAME');
$link = "$s?month=$month&year=$year&goto_date=yes";
However, since upgrading to PHP version 4.3.2 it returns the following URL:
execscriptdir/php.cgi?day=19&month
Hi,
due to a current PHP upgrade i am unable to use the following code to get
the filename of the page:
$s = getenv('SCRIPT_NAME');
I need to get the filename without any avariables attached. For example if
the URL is
www.mydomain.com/test.php?test=yes
using $s = getenv('PHP_SELF');
returns t
thanks for your reply,
but that doesn't seem to work either, how about removing everything after
and including the ?, how would i do that?
"Manoj Nahar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> u can try
> $filename=$_SERVER[SCRIPT_NAME];
Hi,
I am designing a system which will have a different menu option for
different users i.e. admin/standard etc.
If I am using frames how could I change the page a user sees in the top
frame for each different type of user? I know how to do this with standard
pages, its just the frames that are p
i use two files for this purpose as i use sessions to check the user is
always logged in:
validate_session.php
authenticate_user.php:
you would want to replace authorization_required.php with login.php.
i hope this helps
"Bobby Rahman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTEC
Hi,
I get the following error when using using the following script to
authenticate a user. The login form is inside a frameset, is this whats
causing th eproblem, and is there a way round this?
Warning: Cannot send session cookie - headers already sent by (output
started at /home/w/o/workmanagem
gt; session_start();
> require("...
> ...
>
> or
>
> ob_start();
> require("...
> ...
>
> You're trying to output stuff to the screen (which implicitly sends the
> headers) then trying to send more headers by calling session_register()
> (which implicitly c
Hi,
Using the following code I am able to authenticate which type of user is
visiting my page, however if I try to log in again with a different type of
user the session variables still assume that the original user was logged
in, is there a way to reset the session variables, I have tried
session
"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> --- shaun <[EMAIL PROTECTED]> wrote:
> > Using the following code I am able to authenticate which type of user is
> > visiting my page, however if I try to log in again with a d
;something';
>
> instead of:
> > session_register("ses_name");
> > session_register("ses_pass");
> > session_register("ses_level");
>
> All $_SESSION entries are automatically registered.
>
> See the following for more info
> http
27;ses_pass'] = 'something';
> $_SESSION['ses_level'] = 'something';
>
> instead of:
> > session_register("ses_name");
> > session_register("ses_pass");
> > session_register("ses_level");
>
> All $_SESSION entrie
Hi,
I have a date stored in a table in my MySQL Database using a DATE type for
the column.
How can i compare the date in the table to today
e.g.
$today = mysql_result($result, $i, Booking_Date);
if($today = *HELP*){
echo "you are booked today";
}else{
echo "you are free today";
}
than
hi,
using date(dS); how can i can increase the days so that it shows
19th 20th 21st
I have tried
while ($i < 2){
$day++;
echo' '.$day.'';
$i++;
}
but i get:
19th 19ti 19tj
thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.
Hi,
when retrieving a date from MySQL in n/MM/DD, how can I present this to
the user of a site in readable format i.e. 19th March 2003?
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I would be very grateful if someone could explain to me why this is
happening. I am trying to convert a date sent from a textfield. The
textfield is initially populated by a JavaScript calendar control. Using the
following code I am attempting to read in the date sent from the textfeild:
//i
Hi,
could someone tell me why this:
";
$month = $month + 1;
echo "\$month: ".date(F,strtotime($month))."";
?>
outputs this:
$month: March
$month: March
surely it should be:
$month: March
$month: April
Thanks in advance for your help.
--
PHP General Mailing List (http://www.php.net/
hi,
I include a file called bottom.php which goes at the bottom of all my pages
and looks like this:
I use this to make sure that I haven't left a connection open accidentally,
however I sometimes get an error message even though I am using the @
symbol:
Warning: mysql_close(): n
Hi,
I'm not sure if this is a PHP or a JavaScript question but I have found the
following code to enable me to select all of the checkboxes on my form.