Miller, Terion wrote:
Shawn you know repeatedly have been nothing but an asshole to me on this list,
I have said before I'm not a php programmer, I was a front end designer, need
graphics , need a css layout...see meneed backend programming..I'm trying...
Stop being such a egomaniacal dickh
On Wed, Aug 05, 2009 at 02:55:07PM -0700, Ben Dunlap wrote:
> > In my navigation.php include file, I had if ($page = about) echo href
> > I changed it to if ($page == about) echo and it suddenly
> worked! Imagine
> > that...
>
> Another good case for putting the variable on the right side
I am new to php...
I try to make a php page that displays form submitted data and image. There
are 3 php files,
tampil_tamu_admin.php, edit_tamu.php and display_img.php.
The user lists are displayed in the tampil_tamu_admin.php, and when the user
clicks one record, it shows edit page (edit_tamu.p
why do u stick to php 6?
i would recommend www.scribd.com and have a search on PHP. there are books
on beginners for php5 and articles of the difference to php 6.
a very usefull site by the way, made me stopping buying books. loads of
material on IT stuff.
ralph
ralph_def...@yahoo.de
wrote in
Has anyone read this book by Larry Ullman yet? If so, what do you
think about it? I'm looking for a well-rounded book that covers PHP
for e-commerce websites and from what little I've been able to find
online, it looks pretty good. Or would you recommend another book?
I know that no bo
Ben Dunlap wrote:
>> OK, I think I understand most points except the start and stop time.
>> Every time sheet I have used, SAP and several other smaller ones, I
>> enter a weeks worth of time data like:
>>
>> Project Sun Mon TuesWed ThurFri Sat
>> --
Ralph Deffke wrote:
> as I said, the job is to store a time sheet.
> u came up with:
>
> 1. One record for each 7 day week (year, week_num, d1, d2, d3, d4, d5,
> d6, d7) where the dX field holds the hours worked
> 2. One record for each day (date, hours)
>
> it seems that just the first record is
You can use variable variables
...
You can make more complicated statements with this technique.
$var1 = 'apple';
${ 'Fruit_' . $var1 } = 'organic';
echo $Fruit_apple; // here you are
thank you all 3, for your help!
That was just what I wanted!
-Govinda
--
PHP General Mailing List (http://www
On Wed, 5 Aug 2009 09:25:20 -0400, phps...@gmail.com (Bastien Koert) wrote:
>On Wed, Aug 5, 2009 at 8:02 AM, Ashley Sheridan
>wrote:
>> On Wed, 2009-08-05 at 21:49 +1000, Clancy wrote:
>>> Thank you to all of you who have commented on this query.
>>>
>>> On the subject of comments, I feel that La
as I said, the job is to store a time sheet.
u came up with:
1. One record for each 7 day week (year, week_num, d1, d2, d3, d4, d5,
d6, d7) where the dX field holds the hours worked
2. One record for each day (date, hours)
it seems that just the first record is fine. in a data design u dont hold
> OK, I think I understand most points except the start and stop time.
> Every time sheet I have used, SAP and several other smaller ones, I
> enter a weeks worth of time data like:
>
> Project Sun Mon TuesWed ThurFri Sat
>
Ben Dunlap wrote:
>> sorry man, but a good data design keeps only data in a table u can not
>> calculate. in ur case that would be only and time.
>> refernces to user and project/tasks in other tables.
>>
>> ur time sheet is definately a job for a report. that type of design limits u
>> to nothi
u can "dynamical" chosse a variable name with a variable using a "douple" $
charachter eg.
$a = "this is a":
$b = "a";
echo $$b; outputs "this is a"
this is an all open feature to u
have fun
ralph
"Govinda" wrote in message
news:a215e849-2602-4cb3-9da7-718ff047a...@gmail.com...
> HI all
>
> O
http://us2.php.net/manual/en/language.variables.variable.php
Jerry Wilborn
jerrywilb...@gmail.com
On Wed, Aug 5, 2009 at 5:17 PM, Govinda wrote:
> HI all
>
> One thing I have been working around but now would love to just do it
> finally (and save workaround/longer code hassle) is when:
>
> I ne
You can use variable variables
} syntax.
I often use this for hidden global variables.
${ 'try to use this variable directly' } = 'something';
print_r( get_defined_vars() ); # [try to use this variable directly]
=> something
On Wed, Aug 5, 2009 at 7:17 PM, Govinda wrote:
> HI all
>
> One thin
off course, but this is a different subject, means a finished, not changing
time sheet is to store. in that case I would prefere to use a single record
for each sheet holding an id, possibly a date and then a medium text holding
a simple xml notation of the sheet. the benetit of that concept is aga
HI all
One thing I have been working around but now would love to just do it
finally (and save workaround/longer code hassle) is when:
I need to be able to create a variable (name it, and assign it a
value) whose name is built up from a fixed string concatenated with
another string which
Yes, that's a golden rule for a bug free code.
The rule shoudl be something like this...
Whenever you have a constant value evaluated to a non-constant value
put them in the left side of the expression.
if( 'constant' == $non_constant )
echo ' variables has that name for anything ';
if( fals
> In my navigation.php include file, I had if ($page = about) echo href
> I changed it to if ($page == about) echo and it suddenly worked! Imagine
> that...
Another good case for putting the variable on the right side of "==":
if ("about" == $page)
Then if you mis-type "==" as "=", PH
> sorry man, but a good data design keeps only data in a table u can not
> calculate. in ur case that would be only and time.
> refernces to user and project/tasks in other tables.
>
> ur time sheet is definately a job for a report. that type of design limits u
> to nothing. a user can start an
I just wanted to let know I figured out my last issue (last as in, for now).
In my navigation.php include file, I had if ($page = about) echo href
I changed it to if ($page == about) echo and it suddenly worked! Imagine
that...
Thanks all for you help, you are celebrities in my book now.
You are using a value-filled array as a key-filled. Try this snippet
and look the results...
$pages = array('about' , 'services', 'portfolio', 'contact');
$page = array_key_exists( 'page', $_GET ) ? $_GET[ 'page' ] : 'about';
/*if*/ false === array_search( $page, $pages, true ) && (
$page
Okay, I see how href="?page=contact" would work, and I do indeed have only
one file (which loads includes), but it still is not working. Clicking a
link, be href=?page=contact, href=?page=services, whatever, it still loads
the page with the ?page=whatever attached to the URL, but it is not
subsitut
sorry man, but a good data design keeps only data in a table u can not
calculate. in ur case that would be only and time.
refernces to user and project/tasks in other tables.
ur time sheet is definately a job for a report. that type of design limits u
to nothing. a user can start ans stop as ma
On Wed, 05 Aug 2009 22:18:31 +0300, Shawn McKenzie
wrote:
So, obviously not PHP related, but I'm looking for thoughts on the best
way to record time sheets in a DB. A time sheet for hours worked per
day, not like a time clock where you start and stop.
The two possibilities that I have thoug
Shawn McKenzie wrote:
> So, obviously not PHP related, but I'm looking for thoughts on the best
> way to record time sheets in a DB. A time sheet for hours worked per
> day, not like a time clock where you start and stop.
>
> The two possibilities that I have thought of are (these are sim
You don't mention what DB you're using, but mySQL can be quite a pain when
dealing with multiple time zones. Not impossible, but a hassle none the
less. Be sure to set aside a place to store this (and another spot for user
preferences to keep track of their TZ).
Jerry Wilborn
jerrywilb...@gmail.com
On Wed, 2009-08-05 at 14:18 -0500, Shawn McKenzie wrote:
> So, obviously not PHP related, but I'm looking for thoughts on the best
> way to record time sheets in a DB. A time sheet for hours worked per
> day, not like a time clock where you start and stop.
>
> The two possibilities that I have th
So, obviously not PHP related, but I'm looking for thoughts on the best
way to record time sheets in a DB. A time sheet for hours worked per
day, not like a time clock where you start and stop.
The two possibilities that I have thought of are (these are simplistic,
of course I'll be storing refer
On Wed, 05 Aug 2009 20:19:00 +0300, Allen McCabe
wrote:
Sure.
When I load my site, default.php loads ( displaying:
http://uplinkdesign.hostzi.com/ in the browser as expected). $thisPage is
set to "about" via:
in the tags.
I am seeing this:
The first 2 includes work just fine, loading
I think you are looking for something like this:
$page = array_key_exists( 'page', $_GET ) ? GET['page'] : 'index';
Then you MUST sanitize the $page variable.
I often use the querystring to wrapp the module you are requesting:
www.example.org/?path/to/molude (note that .htaccess is required)
#
Sure.
When I load my site, default.php loads ( displaying:
http://uplinkdesign.hostzi.com/ in the browser as expected). $thisPage is
set to "about" via:
in the tags.
I am seeing this:
The first 2 includes work just fine, loading to proper middle section and
proper right-hand-side page conte
I'm having trouble understanding your description of the problem. Can you
tell us what you're seeing and what you expect to see?
Jerry Wilborn
jerrywilb...@gmail.com
On Wed, Aug 5, 2009 at 12:00 PM, Allen McCabe wrote:
> I am trying to generate pages by importing content in includes, and using
I am trying to generate pages by importing content in includes, and using my
navigation include to tell PHP to replace a $thisPage variable which all the
includes use
The idea behind it (I know tons of people do it, but I'm new to this
concept), is to have a 'layout' page where only a variable ch
On Wed, 5 Aug 2009 18:11:44 +0200, "Ralph Deffke" wrote:
> I assume that the comments are collected by a browser form provided by you !
> do u use the form attribute "accept-charset" ? I always do and I always use
> UTF-8 homogeniously throughout my application I never had that problem.
Don't for
I assume that the comments are collected by a browser form provided by you !
do u use the form attribute "accept-charset" ? I always do and I always use
UTF-8 homogeniously throughout my application I never had that problem.
"Sándor Tamás (HostWare Kft . )" wrote in message
news:9ac01674e03a4
Build some script to convert to these comments.
Check this out:
Regards,
Igor Escobar
Systems Analyst & Interface Designer
+ http://blog.igorescobar.com
+ http://www.igorescobar.com
+ @igorescobar (twitter)
2009/8/5 b
> On 08/05/2009 07:05 AM, Sándor Tamás (HostWare Kft.) wrote:
>
>>
On 08/05/2009 07:05 AM, Sándor Tamás (HostWare Kft.) wrote:
Hi,
I have a mysql database, which the users can insert comments. As the users can
be from different countries, with different character encoding, the mysql table
can contain various special characters.
How can I be sure to display t
I finally got a chance to play with this and it looks like it is
exactly what I need.
Thanks!
On Fri, Jul 31, 2009 at 11:50 PM, German Geek wrote:
> have you tried mysqldiff?
>> I want to be able to compare the structure of two different clients
>> databases that might be on different servers tha
Terion,
I've been sitting in the background watching all this unfold and
thought I would chime in. I passed along your "all caps" email to a
co-worker of mine (she programs in FoxPro) and she said she could
definitely relate to what you were going through! As for people being
honest (es
...
Peace and Happy Wednesday
Terion
:-)
nice!
In the end, I imagine that if it was all taken away suddenly and for
good, that we'd all miss the real people here more than any of the
rules, logics, and practicalities of getting paid work done..
--
PHP General Mailing List (http://www.php
Thank you all for being so brutally honest, I am doing my best, and yes I do
get hung up on syntax errors, I mean who doesn't stare at code looking for a
misplaced or missing ; or . For what seems like hours with a boss asking
repeatedly "is it done, is it done" before freaking out and asking f
What we can do is make a "Report Web Forgery" for this site.
If you use Firefox there is an option in the "help" menu.
Also you can report to search engines like Google or Yahoo (that's what I did)
well... in this thread we are doing something
On Wed, Aug 5, 2009 at 11:14 AM, Ashley
Sheridan wro
On Wed, 2009-08-05 at 15:14 +0100, Ashley Sheridan wrote:
> On Wed, 2009-08-05 at 11:10 -0300, Martin Scotta wrote:
> > Nobody can actually do anything. This happen all the time.
> >
> > Sites like facebook or myspace send invitations to all your mail's
> > contacts, but that's not the problem. Wh
On Wed, 2009-08-05 at 11:10 -0300, Martin Scotta wrote:
> Nobody can actually do anything. This happen all the time.
>
> Sites like facebook or myspace send invitations to all your mail's
> contacts, but that's not the problem. What I can't understand is why
> do they do pre-signup just you for th
Nobody can actually do anything. This happen all the time.
Sites like facebook or myspace send invitations to all your mail's
contacts, but that's not the problem. What I can't understand is why
do they do pre-signup just you for the "easy" of you.
I have _created_ an account just to edit my perso
On Wed, 2009-08-05 at 09:54 -0400, Eric Butera wrote:
> On Wed, Aug 5, 2009 at 3:06 AM, Ashley Sheridan
> wrote:
> > On Tue, 2009-08-04 at 20:49 -0700, Steve wrote:
> >> Daniel Brown wrote:
> >> > Just as a heads-up, in case you guys weren't yet aware
> >> > (cross-posting):
> >> >
> >> >
On Wed, Aug 5, 2009 at 3:06 AM, Ashley Sheridan
wrote:
> On Tue, 2009-08-04 at 20:49 -0700, Steve wrote:
>> Daniel Brown wrote:
>> > Just as a heads-up, in case you guys weren't yet aware (cross-posting):
>> >
>> > Elance.com was the victim of an SQL injection attack earlier this
>> > summ
On Wed, Aug 5, 2009 at 8:02 AM, Ashley Sheridan
wrote:
> On Wed, 2009-08-05 at 21:49 +1000, Clancy wrote:
>> Thank you to all of you who have commented on this query.
>>
>> On the subject of comments, I feel that Larry Garfield settled this query by
>> pointing out
>> that halving the size of a p
On Wed, 2009-08-05 at 21:49 +1000, Clancy wrote:
> Thank you to all of you who have commented on this query.
>
> On the subject of comments, I feel that Larry Garfield settled this query by
> pointing out
> that halving the size of a particular document gave a barely noticeable
> increase in sp
Thank you to all of you who have commented on this query.
On the subject of comments, I feel that Larry Garfield settled this query by
pointing out
that halving the size of a particular document gave a barely noticeable
increase in speed.
Paul Foster pointed out the problem of maintenance, but
Hi,
I have a mysql database, which the users can insert comments. As the users can
be from different countries, with different character encoding, the mysql table
can contain various special characters.
How can I be sure to display these comments properly? I've found the
mb_convert_encoding, a
Dave M G wrote:
Bob, Ben, David, Robert,
Thank you all for responding.
Just to recap, I'm trying to find out why I can write text into a PNG
image on one server, but not on another.
After much playing around, I have a list of the different configuration
modules installed on the two servers.
On Tue, 2009-08-04 at 20:49 -0700, Steve wrote:
> Daniel Brown wrote:
> > Just as a heads-up, in case you guys weren't yet aware (cross-posting):
> >
> > Elance.com was the victim of an SQL injection attack earlier this
> > summer (they apparently missed our billions of threads on sanity).
54 matches
Mail list logo