Search found 97 matches

by frogrocker
Wed Jun 22, 2005 2:21 pm
Forum: PHP coding => General
Topic: Extracting info from an array
Replies: 3
Views: 1092

Oh actually, I should probably have read your post properly (the same happens in exams with me!). If the 'name' and 'age' columns aren't going to change, then it's much easier. My script also let's some info be left out. If you don't need that, you can do this: <?php print "<table border=\"...
by frogrocker
Wed Jun 22, 2005 2:14 pm
Forum: PHP coding => General
Topic: Extracting info from an array
Replies: 3
Views: 1092

Re: Extracting info from an array

There's probably a much easier way, but I quite like this, and it's just what I came up with as I went along. <?php $columns = array(); foreach ($data as $key=>$value) { $columns[] = $key; } print "<table border=\"1\"><tr>"; foreach ($columns as $val...
by frogrocker
Thu Jun 16, 2005 2:01 pm
Forum: PHP General
Topic: I am beginner.Just asking a simple question.....
Replies: 37
Views: 14689

But note that it's really horrible coding in Dreamweaver.
by frogrocker
Tue Jun 14, 2005 1:43 pm
Forum: PHP coding => General
Topic: SQL Importing
Replies: 0
Views: 809

It sounds as though there's something wrong with the SQL being imported. Can you post that maybe?
by frogrocker
Sat Jun 11, 2005 7:07 am
Forum: PHP coding => General
Topic: Can't figure it out
Replies: 10
Views: 2371

Zend is nice, but expensive. There are plenty of free ones too, look in that thread in this forum.

Will.
by frogrocker
Sat Jun 11, 2005 1:05 am
Forum: PHP coding => General
Topic: Can't figure it out
Replies: 10
Views: 2371

Oops - my mistake something else as well. <?php session_start(); //site_defines $SECURED_PAGE = 'mmr_login.php?reason=1'; // If the form was submited check if the username and password match if($_POST['submitid'] == 2){ $username = $_POST['username']; $dbconn = mysql_connect ...
by frogrocker
Sat Jun 11, 2005 12:58 am
Forum: PHP coding => General
Topic: Can't figure it out
Replies: 10
Views: 2371

$html_message.= 'website. Please note that this email address is the only way to access your password.';
$html_message.= '<p>';

What do you write your code in? You can get programs which check these for you you know.
by frogrocker
Sat Jun 11, 2005 12:20 am
Forum: PHP coding => General
Topic: Can't figure it out
Replies: 10
Views: 2371

Re: Can't figure it out

$html_message.= "<html><head></head><body>";
by frogrocker
Fri Jun 10, 2005 10:48 am
Forum: HTML Basics
Topic: Table size
Replies: 10
Views: 6996

No, sorry this doesn't work unless you use pixels, and then it may make it bigger than the page.

The problem is, the table is being used as a container for the rest of the page, and I want it to grow to fill the screen no matter how much text is in it.

Any other ideas?

Will.
by frogrocker
Fri Jun 10, 2005 8:02 am
Forum: HTML Basics
Topic: Chat and frames
Replies: 9
Views: 6621

How do you know until you try? :D
by frogrocker
Fri Jun 10, 2005 6:19 am
Forum: HTML Basics
Topic: Table size
Replies: 10
Views: 6996

Table size

Is there any way of making a table fill to the bottom of a page? What I mean is, if a table doesn't contain much, so doesn't reach the bottom of a page, is there a way of making it stretch to fill the page, but when it already fills at least the page, it doesn't change? Do you understand? Thanks in ...
by frogrocker
Fri Jun 10, 2005 6:13 am
Forum: HTML Basics
Topic: Chat and frames
Replies: 9
Views: 6621

Can't you show new messages at the top?
by frogrocker
Tue Jun 07, 2005 12:06 pm
Forum: mySQL & php coding
Topic: Newbie Question
Replies: 28
Views: 9958

You've used mysql_fetch_row which returns an enumerated array $row[0], $row[1], etc. But you've used an associative index with $row['Primary_Key'].. So try this: <td><a href="modules/OSi-applicants/view.php?id=<?php echo $row[0];?>"><?php echo $field;?></a></td> Also have a read through th...
by frogrocker
Tue Jun 07, 2005 9:53 am
Forum: PHP coding => General
Topic: Wikipedia style text editing
Replies: 3
Views: 1681

looks good, cheers swirlee
Will
by frogrocker
Tue Jun 07, 2005 12:34 am
Forum: PHP coding => General
Topic: move_uploaded_file using wrong temp dir!
Replies: 3
Views: 1197

I don't think /tmp does need root permissions, but I may be wrong. Are you sure that you don't need to change the permissions for /var/www/html/College/files ?

Try setting that folder to 777 or somthing like that

Will
by frogrocker
Mon Jun 06, 2005 11:55 pm
Forum: PHP coding => General
Topic: upload protection
Replies: 6
Views: 1686

Re: upload protection

Yes, but what I mean is that his code didn't have brackets:

southriver wrote:
die 'Invalid filename !';


Sorry, still busy - exams :(
Will
by frogrocker
Mon Jun 06, 2005 2:20 pm
Forum: PHP coding => General
Topic: upload protection
Replies: 6
Views: 1686

Do the die functions need some brackets? When I run it like this it doesn't give any errors, but I've not got any time at the mo to have a look throught it. <?php //include('permission.php'); $file_folder = '/var/www/html/alpha/icom/upload/raw/'; if(isset($_GET['file'])) ...
by frogrocker
Sat Jun 04, 2005 7:32 am
Forum: PHP coding => General
Topic: Wikipedia style text editing
Replies: 3
Views: 1681

Ah... Literally straight away, I've half solved it. It works like this, but it's a bit nasty - and I think that it could easily trip up, so help still appreciated!! <?php $text = "==Hello=="; $search = array ("/(''''')(.+)(''''')/", "/(''')...
by frogrocker
Sat Jun 04, 2005 7:28 am
Forum: PHP coding => General
Topic: Wikipedia style text editing
Replies: 3
Views: 1681

Wikipedia style text editing

I'm trying to make a little function using preg_replace that let's me format text inputs like wikipedia. i.e: ''text'' means italics '''text''' means bold '''''text''''' means bolded italics ==header== means header 1 ===head=== means header 2 ====head==== means header 3 , etc. I've only just learnt ...
by frogrocker
Thu Jan 13, 2005 3:46 pm
Forum: PHP coding => General
Topic: Protected Downloads
Replies: 5
Views: 1939

OK, thanks everyone. I've tried it out now and I've seen how it works. I don't even think I need to protect the folder as the address of the file is never shown.

Thanks everyone, great answers as usual.

Will.
by frogrocker
Thu Jan 13, 2005 9:32 am
Forum: PHP coding => General
Topic: Protected Downloads
Replies: 5
Views: 1939

Thanks swirlee.

I mostly understand, but could you elaborate on how to send it to the output?
For example, how would the download actually start, also what about naming the file? Thanks again,
Will.
by frogrocker
Thu Jan 13, 2005 1:01 am
Forum: PHP coding => General
Topic: Protected Downloads
Replies: 5
Views: 1939

Protected Downloads

I'm planning on setting up a system where a user pays for credits (thats another story) and uses these to download certain files, say mp3. My problem is how do I only allow the person who pays to download the file. I could make an unguessable file name but then you could just copy where it came from...
by frogrocker
Mon Aug 16, 2004 4:41 am
Forum: PHP General
Topic: Protecting PHP scripts?
Replies: 6
Views: 1966

There is Zend Encoder, I've never tried it though and you have to pay.

http://www.zend.com/store/products/zend-encoder.php?home
by frogrocker
Sun Jul 18, 2004 11:59 pm
Forum: PHP coding => General
Topic: What's function convert from string to integer?
Replies: 1
Views: 796

Why do you want to?

There's something in the manual here:
http://uk2.php.net/manual/en/language.types.string.php#language.types.string.conversion
by frogrocker
Sun Jul 18, 2004 10:48 am
Forum: PHP Installation
Topic: installing PHP on win98 PC
Replies: 7
Views: 4070

WiZARD wrote:for newby it's maby ok, but i still recommend use apache, and other....


As far as I knew, it is Apache, just already preconfigured?

:?