hello everyone.
thanks for the email re keyword constructor.
but what exactly does it do? i.e its function.
warmest regards
Andreea
-Original Message-
From: Ren [mailto:lobbyjo...@gmail.com]
Sent: 02 August 2011 06:29
To: php-general@lists.php.net
Subject: [PHP] Keyword Constr
Please can some one help me with a dynamic menu.
I have a 2 tables and I want to display the record from the first one as
parent and the second one as the child.
My problem is when I query the data I can't place the child at their
appropriate position.
Please you help will be appreciated.
{$row_menu_list['subget_name']}" ;
while ($row_pages = mysql_fetch_assoc($pages)){
echo "{$row_pages['page_name']}";}
} ?>
The query gives this result:
* informatica
* Dove Siamo
* Lorem
* web templates in vendita
* assistenza
* shop
* contatti
Read google!
-
http://ooyes.net Web design company | http://ooyes.net Graphic design
company | http://ooyes.net Outsourcing company
--
View this message in context:
http://www.nabble.com/First-stupid-post-of-the-year.-tp14583639p14618938.html
Sent from the PHP - General mailing list
WOW
-
http://ooyes.net Web design company | http://ooyes.net Graphic design
company | http://ooyes.net Outsourcing company
--
View this message in context:
http://www.nabble.com/automatic-caller-tp14582211p14618945.html
Sent from the PHP - General mailing list archive at Nabble.com
Someone?
-
http://ooyes.net Web design company | http://ooyes.net Graphic design
company | http://ooyes.net Outsourcing company
--
View this message in context:
http://www.nabble.com/Login-script-problem-tp14618073p14618942.html
Sent from the PHP - General mailing list archive at
Robert Cummings skrev:
I sincerely question the competence of someone who advocates a one size
fits all approach to programming. There are many reasons why a developer
may work with the old-school interface calls. For instance they may be
supporting an old school application. They might be writin
Eric Gorr skrev:
I haven't tracked this particular issue, but I know when PHP5 was first
released is wasn't recommended in a commercial/production environment.
However, a lot of time has passed and we're at v5.2 now...have things
changed? Have Google&Yahoo, for example, moved to PHP5? Or is PHP
headers.
hope this helps!
Pure Web Solution
http://www.purewebsolution.co.uk
PHP, MYSQL, Web Design & Web Services
Barry <[EMAIL PROTECTED]> wrote:
> Hello Everyone!
>
> What would be the best way to start a PHP Script via CRONJOB?
> Should i use the 'php' command
Hi
if you just want to sort of concatenate your arrays then why not just loop
through the whole thing in order to get the new single array. Need more info
for further consideration. Hope this helps!
for ($i=0;$ihttp://www.purewebsolution.co.uk
PHP, MYSQL, Web Design & Web Services
Results may well vary Depending on the complexity of the html pages, but have
you tried using the example script 'HTML Conversion'? you could modify
this/expand it to fit your needs. worth a try i would of thought.
Pure Web Solution
http://www.purewebsolution.co.uk
PHP, MYSQL, Web De
Hi
I have used fpdf quite a lot (http://www.fpdf.org) and have been really
impressed with its performance. There are plenty of example scripts on their
website and i think you can use it comercially for free although you will have
to check that one out.
Regards
Pure Web Solution
http
Hi
How about doing this in the query string you send to mysql:
DATE_FORMAT(fieldname, '%d %m %y')
this way you wont have to mess around with the array stuff. for more info look
here
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
Regards
Pure Web Sol
If someone doesn't give you an answer here, try php cookbook by O'reilly.
It has this exact recipe in it.
Best,
Thomas S. Crum
-Original Message-
From: James Nunnerley [mailto:[EMAIL PROTECTED]
Sent: Friday, December 03, 2004 9:56 AM
To: [EMAIL PROTECTED]
Subject: [PHP] SQL sums
I'm t
Incorrect syntax.
You likely have a set a variable and not ended it with ';'
For example,
$some_variable = "some_value";
is the proper syntax. Or, post the code as recommended.
Best,
Thomas S. Crum
-Original Message-
From: Greg Donald [mailto:[EMAIL PROTECTED]
Sent: Wednesday, Decem
There is no global variable.
Set a cookie the when they hit the login page and then check to be sure that
cookie isset when they post to it.
Example for login.php:
Best,
Thomas S. Crum
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: Monday, November 29,
Use a database query to verify the random number has not been used before.
$number_checker = 1;
while ($number_checker != 0){
#insert your $random_number code
$query = "SELECT COUNT(*) AS total FROM some_table WHERE
random_number_field = '$random_number'";
$result = mysq
I am new to PHP and couldn't find any Globals for the User's Screen
Resolution. (don't laugh at me please)
I used to use a Javascript function to pass the resolution using
screen.width and screen.height.
What I am actually trying to do is make a page resize depending on screen
resolution, in case
Thanks, tried searching for substitution and similar but couldn't find it.
should have looked for replace :)
Cheers,
Nigel
> -Original Message-
> From: John Nichel [mailto:[EMAIL PROTECTED]
> Sent: 20 October 2003 18:18
> To: Nigel Peck - MIS Web Design
> Cc: [EMAIL
Hi,
I'm looking for the PHP equivalent to the Perl:
$var =~ s/regex/string/g
Substitute all occurrences of regex in $var with string.
TIA
Nigel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I wrote a code to change the urls in my forum, to a new format. I
did it with output buffering and inside it, I used
preg_replace_callback, which worked great for me. But I shared
this code with the forum program community and there's a person
that can't make it work. He says his Apache gets c
Sorry wrong list lol.
(long day)
> -Original Message-
> From: Nigel Peck - MIS Web Design [mailto:[EMAIL PROTECTED]
> Sent: 29 July 2003 22:48
> To: [EMAIL PROTECTED]
> Subject: [PHP] Adding a set of templates
>
>
> I want to create my own templates but th
I want to create my own templates but the phpBB site says coming soon for the docs.
I copied the subSilver folder to a folder called default (in the templates directory)
but when I go to style/add in the admin screens it doesn't show up, the docs say that
the templates directory is scanned for n
||string *strtok*| (string arg1, string arg2);
|
Meltem Demirkus wrote:
>which function divides astring to the pieces accorrding to another string.
>for example according to a comma ..
>
>thanks...
>meltem
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
Easy,
Put a code to the beginning of the page that takes the unix time stamp,
and another one to the end. The difference is the execution time at the
server side...
-=[ Julien Bonastre ]=- wrote:
>I have seen it on many sites now and since I have been using PHP for so long and done
>a huge am
Hi there.
When an array is 'used' with something like do while I can't re-access it
later in the page. It is as if the array gets used up and doesn't exist.
The array is from a select statement using myself. I have inserted a
duplicate array with a different name to get around this but figure t
I have a contact form (form.php). I check the submitted data with the
same php file.
If the e-mail adress is not valid I ask the user for a valid e-mail adress.
Therefor I create a new form with the field e-mail. The valid date name,
adress, ...
I put into hidden fields, so they don't get lost.
What's the difference between mail() in PHP and sendmail?
Thanks!
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
I need to some help about example scripts on:
Question 1:
How to process the confirmation email by clicking the url given in the email
and by replying the email.
Question 2:
I know if using mail(), the "From" field of the mail sent out is always the
web host server's mail send
>
> --- Enclosed is a copy of the request I received.
>
> Return-Path: <[EMAIL PROTECTED]>
> Received: (qmail 84737 invoked from network); 22 Oct 2001 09:38:37 -
> Received: from unknown (HELO dns1.host2000.dk) (64.39.31.249)
> by pb1.pair.com with SMTP; 22 Oct 2
The original scripts of login.php have the line: require("lib.inc");, the
lib.inc is as below
After I deleted the require() line, and use myslq_connect() and
mysql_select_db() in the login.php,
the header() does work. So I think there must be some output while running
at the line of "return $ha
Why do the errors occur while running the scripts below? It seems that the
errors occured at the part of session and header(). Please give me some
advice!
Thank you!
Mike
System: PHP4.06 + Apache 1.3.20 Win32 + Win98 (the session configurations
are default in php.ini)
when the 1.php is running,
Hello,
First, Thank you all for your help!
I finally found the reason for why does the IE always show info as below:
"Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in c:\program files\apache
group\apache\htdocs\web\site1\list.php on line -
Hello,
First, Thank you all for your help!
I finally found the reason for why does the IE always show info as below:
"Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in c:\program files\apache
group\apache\htdocs\web\site1\list.php on line -
System: PHP4.06 + Mysql3.23.41 Win32 + Apache 1.3.20 Win32 + Win98
When PHP is running at the line: $arr=mysql_fetch_array($res);
The IE always show info as below:
"Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' in c:\program files\apache
gro
System: PHP4.06 + Mysql3.23.41 Win32 + Apache 1.3.20 Win32 + Win98
http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
speedboy wrote:
>
> What do people do with required files? I have a file called config.php
> which contains all my functions. It is 329526 bytes. Should I split this
> up into other files? I don't think so, but what do others think?
I too am curious about a recommended or best practice. I create
Hello,
Here are 2 tables:
airport
-
airport_id
name
code
city_id
destination
---
destination_id
dest_name
airport_dep_id // using airport.airport_id (departure)
airport_arr_id // using airport.airport_id has well (arrival)
I have 2 columns in the second table that uses the
It always gets HTTP 500 server error, when I try to run the php scripts on Windows98
SE + PWS4.0.
THE PHP installed is Ver 4.06 -win32, as a server module.
However I get a screen full of html codes when I run c:\php\php.exe -i in MS-DOS
command line
So what's problem with the installat
Henrik Hansen wrote:
>
> [EMAIL PROTECTED] (Web Manager) wrote:
>
> > Hello,
> >
> > I am testing a new DHTML code for navigation menus. I plan to use it
> > throughout my web pages made with PHP. The script is about 600 lines
> > long!
> >
>
Hello,
I am testing a new DHTML code for navigation menus. I plan to use it
throughout my web pages made with PHP. The script is about 600 lines
long!
Beside making a :
define (script1, "" .
"" .
"" .
"");
and calling the script1 name in my PHP pa
I have created a php page that accepts a variable called $file using GET. It
then displays this in a textarea box. You can then edit the file and click a
button to save it and it POSTS it to the same page (edit.php) on the server.
This works but it adds slashes before any speech marks (""). Can so
ated where the "Configuration File
> (php.ini) Path" is set to.
>
> -Original Message-
> From: Coulee Web [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 6:03 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Enabling short tags in PHP 4.0.6
>
> I have
ng? I even configured PHP with the --enable-short-tags option but
still no luck.
--
---
Shane Lambert, Owner
Coulee Web
http://www.couleeweb.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
I wrote a small function like the following to create my won thumbnails.
function make_tumb_nail($url){
$size=GetImageSize("image/$url");
$ht=$size[1];
$wd=$size[0];
if($ht>$wd){
$h=$ht;
for($i=1.01;;){
if($h<121){
break;
}
$h=$ht/$i;
$w=$wd/$i;
$i=$i+0.01;
}
Hello,
I am using PHP as my main language in my websites. I am planning to set
up my own server to host all my domains. Is there a place, where I can
see, how do I set up a server with PHP as the main language and what are
the hardware/software requirements for this?
All I need is just a url o
use the following code
$vals=explode("'", "'abc'");
$your_value=$vals[0]; //I am little confused, if it is not working try
index1
Elan wrote:
> Hi,
>
> I have a string, "'abc'". How do I convert it to "abc" (i.e. how do I
> strip the embedded single quotes) with a minimum of overhead?
>
> (In
If you declare the fields as NOT NULL in mysql table, during insert, if
you are nor insertint the field, it will default to 0 (for numbers) and
'blank' (for text fields). If you already have a table update column to
0 or blank and do 'alter table' to make the field not null
Johnson, Kirk wrote
I thought it will say, which function it can not redeclare.
How many functions you have in the file?
If it is small number, you could comment out each function and see which
one is casuing the problem.
Jack Sasportas wrote:
> I just finished coding everything on a project it was working (all
>
o be able to execute an SQL
> statement, and return all the results... which isn't very efficient if I
> have 500 results with 10 per page!
> Also, how do I change the cursor location?
>
> Regards,
>
> - James
>
> Editor, VB Web
> ==
>
Hi Michael,
Yes I do! Take a look at the code snippet below:
echo "";
$level2 = $db->execute("select typename from types");
do {
$value=$level2->fields[0];
echo "$value";
$level2->nextRow();
} while (!$level2->EOF);
$level2->close();
echo "";
Hi,
what's up Mick?!
Okay, what have you written in your script?! You never
wrote it! try include ('./domain.php') instead of
include ('domain.php') maybe it helps you! I tested
that on my FreeBSD 4.2+apache/php but it seems that
include ('domain.php') is also OK. Just give it a try or
add the d
Hello Php Gurus,
Need help on direction. I am using PHP for a while now, I was able to
develop very nice sites using PHP/MySql. Now I very comfortable in using
PHP and I want to learn more advanced features of PHP. Can anyone tell
me go from here??
I have used PHP for tradtional query based ap
Or better using:
create table test1 (t1 char(5), t2 char(5), primary key (t1), unique (t2));
when creating table. No duplicate records with the same t2 because it's unique.
Ahmad Anvari
- Original Message -
From: Kath
To: Brandon Feldhahn ; [EMAIL PROTECTED]
Sent: Sunday, Fe
define a UNIQUE field :)
- Original Message -
From: Brandon Feldhahn
To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED]
Sent: Sunday, February 25, 2001 4:03 PM
Subject: [PHP] No same username
how do i make somthing with my database that knows it the username
hi,
try $tomorrow = mktime(0,0,0,date("m") ,date("d")+1,date("Y"));
or maybe better than this, if you convert the date to the standard
unix timestamp and use DATE function.
Best of luck,
Ahmad Anvari
- Original Message -
From: kaab kaoutar
To: [EMAIL PROTECTED]
Sent: Sunday, F
Here?! Sunny today! ;-)
I highly suggest you use client side scripting in this case.
onLoad
Event handler. A load event occurs when Navigator finishes loading a window or all
frames within a tag. The onLoad event handler executes JavaScript code when
a load event occurs.
Here's a sample code
Hi Kaab,
There must be another problem, it should work. Maybe it helps if
you send your code here. To see how a simple script works, try
this tiny script named test.php:
Submit is pressed"; };
?>
If you first load the php page, you don't see anything rather than a
submit button. If you press
Hi,
I didn't get why you haven't used this:
switch $var
case something: $result=$build_result(); break;
case somethingelse: $result=$build2(); break;
blah blah blah...
Ahmad
- Original Message -
From: Peter Van Dijck
To: php gen list
Sent: Saturday, February 24, 2001 4:0
ay, February 24, 2001 11:55 AM
Subject: [PHP] Change dir mode to writable for uploading..
Hi!
I have problem uploading the file to a directory...
It says permission denied. THe problem is taht ther
directory is on the web.
I connect using WS_ftp.
THe directory is set to:
drwxr-x
My approach towards this problem was to parse the data before inserting
and before displaying.
Before inserting the data entered by user, do something like
str_replace($comments, "'","~") and do the same thing for " do a
different character like | and then insert it into database.
Do the revers
My understanding is, it simple supress the any messages generated from
the result. So I guess it is local.
Karl J. Stubsjoen wrote:
> When you @ "at" a command (supress error messaging) within a function, is
> the scope of the @ within the function?
>
> Example:
>
>
> CloseODBC(1);
>
> # is
I am doing the same with the following code
$rec1=@mysql_fetch_object($result);
$image=$rec1->iurl;
$alt=$rec->mnam;
$array=GetImageSize("image/$image");
echo "";
and it works a charm.
Malouin Design Graphique wrote:
> Hello,
>
> My problem is that I have in the table below an URL (see $in
Hi Ramiro,
Your code looks ok, why don't you try the following and tell me is
working or not
$arr_aantal = explode (",", $aantal);
$arr_str_men = explode (",", $str_men);
$arr_recht = explode (",", $recht);
$arr_rechtverstek = explode (",", $rechtverstek);
$arr_verstekgelijk = explode (",", $ve
the values the log table information. (may be
develop a admin screen, which manipulates the log table)
Hope this helps.
Ng Kok Chun wrote:
> hi... i need some help...
>
> currently i doing web base programming ( econsultant )using php, apache and mysql as
>well... now i facing a pro
Hello! My name is Brian Potter and I just finished the PHP Fast and Easy Web
Development book. A friend of mine suggested I subscribe to this list. I am eager to
interact with all of you! I do a webpage for my youth group as well as various
professional web pages. I appreciate all of your help
Hi Brandon,
You asked me in a private e-mail about anti-aliasing. As far
as I know if ImageTTFText function, if you use negative color
reference [such as -1, -2], It turns off the anti aliasing. I think
the text is automatically antialiased using a positive number.
Anyone, with a sharp idea? ;-)
A
Hi April,
I suggest you code your array into one string (it depends to the size)
then decode it at the other end using your own code. It's the easiest
trick to pass the array, compress it into one variable, then extract it at
the other end.
Any other ideas? ;-)
Ahmad
- Original Message
Hi,
Consider using ImageCreateFromGif will help you. Then
use ImageTTFText to write some text on the loaded gif
and ImageGIF it to output the image as gif :)
Ahmad Anvari
- Original Message -
From: Brandon Orther
To: PHP User Group
Sent: Tuesday, February 06, 2001 7:50 PM
Sub
Hi Karl,
Simply put a save button on your page. When it's clicked,
pass document.forms[0].textareaname.value to the other
script, (it's written in javascript, if you're familiar with that),
then you'll access the content of the text box.
to save it on a local disk, simply use javascript again, it
Hi Michael,
Use a temporary variable [counter], if counter%3 == 0 then
write in the output.
$counter=0; print "";
while($row = mysql_fetch_array($result)) {
echo "".$row["user_id"].""; $counter++;
if (!$counter%3) { echo ""; }
}
That's all ;-)
Ahmad Anvari
- Original Messa
Announcing the eTech Online Time Sheet system for gathering Employee Time over the
Internet.
Online TimeSheets easily integrate with Payroll, Billing & Project Management.
Simplified Time Tracking and Project Management is a click away.
http://www.solutioncorp.com/timesheet.shtml
Please call
Announcing the eTech Online Time Sheet system for gathering Employee Time over the
Internet.
Online TimeSheets easily integrate with Payroll, Billing & Project Management.
Simplified Time Tracking and Project Management is a click away.
http://www.solutioncorp.com/timesheet.shtml
Please call
Thank you and sorry for this stupid mistake
Hsieh, Wen-Yang wrote:
> - Original Message -
> From: "Web master" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 11, 2001 2:36 PM
> Subject: [PHP] Whats wrong with the following c
Hello,
Could any tell me whats wrong with the following code? Even though I
have more than 10 tables in the database, it is not showing any numbers.
$id_link = @mysql_connect('localhost',$uid,$pwd);
$result=@mysql_db_query($db,$id_link,"show tables");
$num_of_rows=@mysql_num_rows($result);
ech
better use 'root' user or create a user with enough privilage to create
database
Jesus Nava wrote:
> Hi everybody!!!
> I want to create a new database using a form to take the name of the database. For
>some reason I get "Couldn't create database". Can some body tell me what I am doing
>wrong.
I don't think so, I have bunch of include files, which have more than 5000 lines
and is running very fine.
Abe wrote:
> Hey Guys,
>
> I am developing an application in PHP. I make use of an include file that
> contains regularly used functions. As I am working I am taking more and
> more of th
you have generate a unique seed to generate random number srand, please read
http://www.php.net/manual/function.rand.php
has more info
Brandon Orther wrote:
> When I use random rand(1, 10) I always get 2?
>
> Thank you,
>
>
> Brandon Orther
> WebInt
try
http://www.php.net/manual/function.rand.php
Brandon Orther wrote:
> How can I get a random number
>
> Thank you,
>
>
> Brandon Orther
> WebIntellects Design/Development Manager
> [EMAIL PROTECTED]
> 800-994-6364
> www.webintellects.com
>
79 matches
Mail list logo