Ryan A | 1 Jun 2005 01:52

Re: php forum and (almost certainly 0T) client editor


> > Thanks guys,
> > Yep, it certainly sounds like a PITA (pain in the ... ) project but the
> > client is paying....and so..the
> client's right :-)
>
> out of interest (and maybe to spark new ideas) can you give specs?
> what kind of user management system do you have to integrate with?
(describe)

Its kind of hard to explain the specs but to give you an idea...its realllll
simple..no big bells and whistles.
Its for a site very close to this one: http://www.snicksnack.nu
so the functionality of the forum too will be pretty much like that
(sites in Swedish)

> end of the day a forum lives and dies on its content/dialogue.
> everything else is gravy. :-)

True, but this is one of the small parts of the site...the site has other
major sections and this is just a
minor section so not really that important.

Cheers,
Ryan

--

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.3.1 - Release Date: 5/31/2005
(Continue reading)

Chris W. Parker | 1 Jun 2005 01:25

RE: Variabels in stored txt

Niels Riis Kristensen <mailto:nrk <at> nrk-gruppen.dk>
    on Tuesday, May 31, 2005 2:09 PM said:

> On 31/05/2005, at 22.19, Jay Blanchard wrote:
> 
>> [snip]
>> $get_var1 = mysql_query("SELECT * FROM table1 WHERE id LIKE '1'
>>      LIMIT 1"); while($record=mysql_fetch_assoc($get_var1))
>>          {
>>          $show_var = $record['text'];
>>          }
>> [/snip]
>> 
>> do an echo $show_var; to see what is returned right here
> 
> Allready did, no result.

Do you get anything with:

$get_var1 = mysql_query("SELECT text FROM table1");

Chris.

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

mayo | 1 Jun 2005 02:32

FW: write to file, difficulty inputting data

I'm writing customer orders into a file. I'm 

1. getting data from session variables and a database,
2. putting it into a variable called $fileContent
3. then touch($filename);
4. then writing $fileContent to $filename - the code is at the bottom

The test versions of this have all gone well.

The file must contain the data in a preset format. All the data is on
one line (no line breaks) and each field has a preset limit, The file is
FTPed and the data parsed.

So far so good. It works with one customer order

Now when I want to write multiple customer orders it doesn't work?
Abbreviated code is below

// CODE FOR MULTIPLE ORDERS

while($row = mysql_fetch_array( $result ))
{

$theItemID=$row["orderedItems.itemID"];
$theItemPrice=$row["itemPrice"];
$theItemQty=$row["itemQty"];

$thisItemID= sprintf("% 6d",$theItemID);
$thisItemPrice= sprintf("%7.2f",$theItemPrice);
$thisItemQty= sprintf("% 7d",$theItemQty);
(Continue reading)

bruce | 1 Jun 2005 04:58
Picon
Favicon

mysql 4.1.3beta

hi...

i'm integrating php/mysql into apache. can anybody tell me if it's possible
to have a mysql v.4.1.3beta client version from doing a php4 install, or do
i have to go php5 to get beyond the mysql v.3.23.58 client.

i've tried to use the FC3 php4.3.9 rpms with no luck. i'm also using the
mysql4.1.12 server/client...

any reasonable pointers!!

thanks

-bruce
bedouglas <at> earthlink.net

--

-- 
fedora-list mailing list
fedora-list <at> redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

Rory Browne | 1 Jun 2005 04:14
Picon

Re: Questionary Development - Continued

That being the case, you may want to consider ajax, so that users
answers are recorded as soon as they make them.

On 5/31/05, ...helmut <forum <at> helmutgranda.com> wrote:
> Hello All,
> 
> Thank you for all the wonderful ideas, there are so many things that can be
> over look when working by yourself.
> 
> When I asked help for a questionary, in reallity I meant a long form. With
> that said I apologize for having some people in mind more like a question
> answer type of thing(school test and similar).
> 
> So, after reviewing this project I have come out with the final descicion...
> 
> In order to fill out a form the user must have an UN and PASS, so that I can
> write their answers to the DB as they are filling out the form, reason for
> this is in case they have to stop in the middle of the form they can come
> back on a later time to finish with their UN and PASS, they should be able
> to continue their form or to start all over.
> 
> I decided to divide the forms into 5 different sections, and as some one
> suggested divide the sections by groups so people can fill out the form and
> concentrate in the section they are working on.
> 
> Similar to when you have to fill out your taxes online:
> https://taxes.hrblock.com/hrblock/login/LoginRegistration.aspx
> 
> the difference is that this has been done with ASP (ewww! :) )
> 
(Continue reading)

Danny Brow | 1 Jun 2005 05:48

dynamic drop down

Could someone point me to an example with code for dynamic drop downs in
PHP? I would like to be able to have drop downs like "Select Country"
and another drop down show the states/provinces based on the selected
country.

Thanks,
Dan.
Michael O'Neal | 1 Jun 2005 05:46

Re: Craig's List Clone part deux

Anyone else?  I have a hard time believing it's not out there...but I 
could be wrong!!!

On May 31, 2005, at 1:48 PM, Michael O'Neal wrote:

> Thanks John.  That's one of the reasons I haven't gone that route.  
> The whole operation seemed cheesy to me.
>
> I appreciate the feedback though.
>
> On May 31, 2005, at 11:48 AM, John Nichel wrote:
>
>> Michael O'Neal wrote:
>>> Hi...I posted a while back looking for an open-source or affordable 
>>> Craig's List clone built in PHP, and the advice was to 
>>> "search...there are a ton out there".
>>> So far, the only one I've been able to come up with is AJ Classified 
>>> Pro (http://www.ajsquare.com/ajclassifieds.php) which had some 
>>> half-hearted reviews, and has a really cheesy website supporting it. 
>>>  So...I'll ask again to see if anyone knows of any others before I 
>>> plunk down $250 for this semi-ok reviewed software.
>>> Does anyone know of a Craig's List type setup out there that is 
>>> worth trying?
>>
>> I can't help you with finding other software to accomplish this, but 
>> I can advise you to steer clear of the AJ Classifieds.  I've spent 
>> the better part of the last two months doing side work for a company 
>> who purchased it, couldn't get the developers to fix the bugs, and 
>> can't get them to complete the modifications that they paid for.
> mto
(Continue reading)

Niels Riis Kristensen | 1 Jun 2005 06:44
Picon

Variabels in stored text - retry

I don't know what is going wrong, but I keep getting an error  
messages. I'll try one more time, and if this doesn't work I'll stop.

Problem:
I have a table, table1, in which I have standard text for letters. I  
would like to put data from table2 in the letters, so that the data  
is automatically placed in the letter through code in the standard  
text. It sounds complicated, I know, but I hope I make myself clear.  
English is not my native language.

What happens is, that the $show_var IS displayed. What I in my  
frustration haven't conveyed properly is, that the text in table1 in  
the the form

                 ordinary text to output to html ". 
$var_from_the_result_query_on_table2." some more html text

shows up just like that, no data from table2 is processed. I know  
that I am probably using the wrong function, but I can't seem to find  
one.

And the reason I use SELECT * is that there is more than one field I  
need to output. There is only one in the example so that the post  
wouldn't be to voluminous.

Niels Riis Kristensen
(nrk <at> nrk-gruppen.dk)

NRK Group
- Electronic Music Engraving
(Continue reading)

Richard Lynch | 1 Jun 2005 07:08

Re: dynamic drop down

On Tue, May 31, 2005 8:48 pm, Danny Brow said:
> Could someone point me to an example with code for dynamic drop downs in
> PHP? I would like to be able to have drop downs like "Select Country"
> and another drop down show the states/provinces based on the selected
> country.

Well, the "dynamic" part of it isn't gonna be in PHP at all ; It's gonna
be JavaScript.

I *do* use PHP in a cron job to routinely check the ISO (IEEE?) standard
for country codes and names and re-build my list of countries from their
list, so that when/if a country has a civil war or whatever I have a
CURRENT list.

I suppose one could/should do the same with states and provinces, though
those seem less likely to change, actually.

You can Google for "JavaScript dynamic menus" to find what you want.  Then
you just need to use PHP to spew out the JavaScript you want to spew out,
but that's no different than spewing out the HTML you want to spew out,
really.

-- 
Like Music?
http://l-i-e.com/artists.htm

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

(Continue reading)

Richard Lynch | 1 Jun 2005 07:13

Re: FW: write to file, difficulty inputting data

On Tue, May 31, 2005 5:32 pm, mayo said:
>     if (!$handle = fopen($filename, 'w')) {

This will WIPE OUT the existing file, and write a *NEW* file, from 0,
starting from scratch.

So you'll never have anything but the LAST item.

You could use "a+" to append to the end of the file...

But you *SHOULD* be using a database to avoid concurrency issues.

You're going to have a MUCH better application if you store your data in
the database, and it's EASIER than messing with a file.

Only use a file if a database is absolutely forbidden by outside factors. 
Like badly-design homework assignments.  Or not-very-smart
pointy-haired-bosses.

-- 
Like Music?
http://l-i-e.com/artists.htm

--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Gmane