Search found 312 matches

by bezmond
Sat Feb 11, 2006 2:10 am
Forum: PHP coding => Mail
Topic: Mailto Problem. Been messing with it for days! PLEASE HELP!!
Replies: 1
Views: 2554

Or, do you mean it as a feedback style form, i.e. they fill out the form to send to you? If that's the case, then unfortunately it won't work quite how you are trying to do it... You would need to send the e-mail from an e-mail address that uses the same domain as you are on (for example whoever@wha...
by bezmond
Sat Feb 04, 2006 12:02 pm
Forum: PHP General
Topic: An Easy one but i am stuck
Replies: 24
Views: 12060

is it always just the first 3 letters, or is it variable (e.g. g4_2, f234_5 ?)

Andy
by bezmond
Tue Jan 31, 2006 9:14 pm
Forum: PHP coding => General
Topic: phpbb editing3
Replies: 5
Views: 1867

:D
by bezmond
Mon Jan 30, 2006 4:29 am
Forum: PHP coding => General
Topic: phpbb editing3
Replies: 5
Views: 1867

table phpbb_topics - field "topic_replies" - this number doesn't include the original post, only the replies.

Andy
by bezmond
Tue Sep 06, 2005 11:40 am
Forum: PHP coding => General
Topic: PHP chat
Replies: 3
Views: 976

If you want it to look nice, go with Flash... personally, I would have to use PHP as I don't know much JS or Flash...

I can't see PHP being bad on bandwidth, RAM etc though...

Andrew
by bezmond
Sat Sep 03, 2005 2:45 am
Forum: mySQL & php coding
Topic: Select One
Replies: 5
Views: 1450

yeah, use LIMIT 1 and order by rand() - that will get you just the 1 random result you want...

Andrew
by bezmond
Tue Aug 30, 2005 7:23 am
Forum: PHP coding => General
Topic: Working with "Implode"
Replies: 1
Views: 723

you could also use the str_replace() function if you wanted to replace the space between names with a , and a space...

Andrew
by bezmond
Sat Aug 27, 2005 3:18 pm
Forum: mySQL & php coding
Topic: SQL function CONSTRUCT in MySQL
Replies: 1
Views: 1096

you'll need to use a LOT of if statements to do it - e.g.

"select * from table " then if ($_POST["where"] <> '')... and so on for the entire statement.

Andrew
by bezmond
Sat Aug 27, 2005 2:00 am
Forum: mySQL & php coding
Topic: LIKE operator
Replies: 1
Views: 927

I wonder if mysql is using it as 'year=1 and column1=something' OR 'column2=something' try changing the order - where column1 or column2 AND year - might be different then?

Andrew
by bezmond
Wed Aug 24, 2005 7:30 am
Forum: PHP coding => General
Topic: Problem with session's life short
Replies: 5
Views: 1296

a session is usually destroyed if Internet Explorer (or other) is closed completely - is this perhaps the root of your problem?

Andrew
by bezmond
Tue Aug 23, 2005 10:30 am
Forum: PHP coding => General
Topic: i need yr help
Replies: 6
Views: 1423

there are 2 things wrong with this part of your query... <?$query= "select *from student,drejtimet you actually wanted to use $query = "select * from student.drejtimet" (note the space after the * and a . instead of a ,) Also, try echoing your $query to see if it reads how you want it to read... And...
by bezmond
Tue Aug 23, 2005 10:28 am
Forum: PHP coding => General
Topic: Help with create CHMOD files 644
Replies: 1
Views: 819

I don't know if you can get it to auto-create as 644, but you could always chmod() the file in the script?

Andrew
by bezmond
Tue Aug 23, 2005 10:25 am
Forum: mySQL & php coding
Topic: Will anyone give me a hand on this code...
Replies: 8
Views: 2757

line 75 will be either a blank line or not exist in a viewer... unexpected $end simply means that you have missed a } somewhere...

Andrew
by bezmond
Mon Aug 22, 2005 10:17 am
Forum: mySQL & php coding
Topic: Will anyone give me a hand on this code...
Replies: 8
Views: 2757

you are missing a } - from what I can see, it comes from here:

Code: Select all

if (isset($_POST['guestname']) && ($_POST['email']) && ($_POST['message'])) 
{


So at the end of that IF, then insert your } :)

Andrew
by bezmond
Tue May 10, 2005 6:30 am
Forum: PHP General
Topic: editing text
Replies: 44
Views: 15917

I don't think so - but try it, you never know ;)

Andrew
by bezmond
Tue May 10, 2005 6:02 am
Forum: PHP coding => General
Topic: HTML display problem (Solved)
Replies: 1
Views: 1354

no problem
by bezmond
Tue May 10, 2005 5:40 am
Forum: PHP coding => General
Topic: HTML display problem (Solved)
Replies: 1
Views: 1354

does environdata.txt contain any blank lines in it after the report?

Andrew
by bezmond
Tue May 10, 2005 3:50 am
Forum: PHP General
Topic: editing text
Replies: 44
Views: 15917

Try simply echoing $data["contact"]; somewhere else... it might be a case of the $data array not being set correctly.

Also, simply click "Code" at the top of this window

Code: Select all

<?php
echo "Then any code you enter simply appears in colors";
$i = 5;
?>


Andrew[/code]
by bezmond
Mon May 09, 2005 6:04 am
Forum: PHP & MySQL Security
Topic: Preventing attacks when you cannot filter data
Replies: 8
Views: 5722

Also try using the strip_tags() function - I find this very useful for removing unwanted HTML tags (I don't want links or bold being posted!)

Andrew
by bezmond
Sat May 07, 2005 10:27 pm
Forum: mySQL & php coding
Topic: Multiple records delete with checkbox
Replies: 18
Views: 4811

Line 10 of your code... you appear to only be calling the checkbox del[] - you need to add your $i in there too to uniquely identify that field

Also, I'm not sure about line 5 - "method=$_POST['checkbox']>";" - that's not the correct syntax for the method field of a form...

Andrew
by bezmond
Tue Apr 26, 2005 8:02 am
Forum: Free time
Topic: php project
Replies: 1
Views: 2995

What others are currently doing: (well, what we were doing when we posted it!)

http://www.php-forum.com/p/viewtopic.php?t=3519

Andrew
by bezmond
Sun Jan 30, 2005 12:12 pm
Forum: PHP coding => General
Topic: Compare different items
Replies: 1
Views: 722

while ($row = mysql_fetch_array($rs)) { ?> <tr> <td><?= $row["name"]; ?></td> <td><?= $row["price"]; ?></td> <td><img src="images/<?= $id ?>.jpg"></td> </tr><? } ?> Something like that would pretty much do what you want... $id being a unique I...
by bezmond
Sun Jan 16, 2005 1:13 pm
Forum: News and Announcements
Topic: phpBB Version
Replies: 2
Views: 5567

Graz upgrades to the latest version almost as soon as it's available. So shouldn't be any problems there.

Andrew
by bezmond
Wed Jan 12, 2005 10:17 am
Forum: PHP coding => General
Topic: PHP code updating in file mgr, but not on interface
Replies: 26
Views: 10981

no, but always a good place to start with stuff like that.

Andrew
by bezmond
Tue Jan 11, 2005 1:12 pm
Forum: Free time
Topic: Migrating to PHP5
Replies: 10
Views: 5180

I've got it setup on my IIS config, but not my apache config - but at the minute just using apache one all the time. We'll have to see what happens with companies upgrading.

Andrew