Search found 826 matches

by Redcircle
Wed Nov 30, 2005 8:24 pm
Forum: mySQL & php coding
Topic: edit and delete button for each record displayed !!!!
Replies: 8
Views: 3253

NOTE: it wouldn't let me post most the code I wanted to so here's what it would let me post <?php while($row = mysql_fetch_assoc($result)){ echo '<a href="index.php?menu=edit_user&user_id='.$row['user_id'].'">Edit User</a>'; } ?> Understand? it will create a link that will lead you to the edit page.
by Redcircle
Wed Nov 30, 2005 8:20 pm
Forum: mySQL & php coding
Topic: edit and delete button for each record displayed !!!!
Replies: 8
Views: 3253

hrmm... won't let me post code
by Redcircle
Wed Nov 30, 2005 7:29 pm
Forum: News and Announcements
Topic: Help the poor gesf!
Replies: 9
Views: 11369

Count me in.. maybe you can help me on my projects!

It'd be great experience working with another developer which I've never had a chance to do
by Redcircle
Wed Nov 30, 2005 4:03 pm
Forum: PHP coding => Images
Topic: OnLine Gallery
Replies: 1
Views: 2316

ok this might be way over your head but here is a tutorial for nested tree heirachy which is essentially what you want to do/use

http://www.phpriot.com/d/articles/php/a ... index.html
by Redcircle
Mon Nov 28, 2005 9:03 pm
Forum: PHP coding => General
Topic: Need session timeout longer than default
Replies: 10
Views: 2306

you could always use session_set_cookie_params(0) and have the session cookie active till the browser is closed.
by Redcircle
Mon Nov 28, 2005 8:38 pm
Forum: PHP coding => General
Topic: create a forum
Replies: 5
Views: 1617

the only drawback to phpbb is that it's so popular that any exploit found is usually attacked.. so keep it up to date and it's all good..

people still use M$ products too..

did I just compare phpbb to M$.. wow..

phpbb++ imho
by Redcircle
Mon Nov 28, 2005 8:36 pm
Forum: mySQL & php coding
Topic: edit and delete button for each record displayed !!!!
Replies: 8
Views: 3253

there are two ways I know of that you can do. the first one is with javascript and an onclick action that sets a hidden variable to the record you select that also submits the page. the other one is to have images/href link that goes to a page and gets the data within the $_GET superglobal. I ususal...
by Redcircle
Mon Nov 28, 2005 8:31 pm
Forum: Free time
Topic: Background image... of sub header row
Replies: 3
Views: 3953

I'm not following what you mean.
by Redcircle
Mon Nov 28, 2005 8:29 pm
Forum: mySQL & php coding
Topic: upgrade to PHP 5.1
Replies: 9
Views: 3354

ok you check is_file("./$z") but you include it as include($z) those two aren't the same try include("./$z") also the inlcude("main.php") try include("./main.php") I'm guessing it's the include_path you can find out what that is by get_include_path and that's the directory it looks in for includes. ...
by Redcircle
Sun Nov 27, 2005 8:00 pm
Forum: PHP coding => General
Topic: failed in retrieving data from database
Replies: 4
Views: 1603

well.. your query is failing... if you know a.MobileNumber=b.MobileNumber then you don't need to check both a.MobileNumber=$MobileNumber and b.MobileNumber=$MobileNumber one will suffice. echo it out and see what happens when you put it in phpMyAdmin.. when the query fails it usually means you have ...
by Redcircle
Sun Nov 27, 2005 1:52 pm
Forum: PHP coding => Mail
Topic: PHP and Outlook Encryption
Replies: 3
Views: 3753

I agree.. imho email is not secure at all.. you shouldn't send critial info via email even if it is encrypted.
by Redcircle
Sun Nov 27, 2005 1:34 pm
Forum: PHP coding => General
Topic: Headers and file downloading
Replies: 2
Views: 1150

The only thing that I can think of is that your script is hitting the timeout. Some computers will download faster than others depending on their connection.

try putting set_time_limit(0) at the top of the script

NOTE: some hosts do not let you set this.
by Redcircle
Sun Nov 27, 2005 1:26 pm
Forum: PEAR and PECL
Topic: Pear Mail with special SMTP settings
Replies: 4
Views: 6379

also here's a smtp mail function

http://expert.no-ip.org/?free=smtp_mail&func
by Redcircle
Wed Nov 23, 2005 2:03 pm
Forum: Free time
Topic: Where r the moderators?
Replies: 13
Views: 8990

What!?! I've been pretty active for the past month.. I guess I slipped through the cracks.
by Redcircle
Tue Nov 22, 2005 3:20 pm
Forum: mySQL & php coding
Topic: what different between
Replies: 1
Views: 1374

mysql_fetch_array -- Fetch a result row as an associative array, a numeric array, or both. The type of array that is to be fetched. It's a constant and can take the following values: MYSQL_ASSOC, MYSQL_NUM, and the default value of MYSQL_BOTH. i.e. mysel_fetch_array($result, MYSQL_ASSOC) for associ...
by Redcircle
Tue Nov 22, 2005 3:03 pm
Forum: mySQL & php coding
Topic: just wont INSERT
Replies: 4
Views: 2682

Re: just wont INSERT

What I like to do so I don't do any mistakes is include the field names i'm inputting into. If you want to insert you have to have all fields accounted for if not lising the fields <?php $query = 'INSERT INTO kontakter (first_name, last_name, phone, mobile, email, website) VALUES ("'.$first.'","'.$l...
by Redcircle
Tue Nov 22, 2005 2:54 pm
Forum: Free time
Topic: Where r the moderators?
Replies: 13
Views: 8990

Hey!! I'm right here!!
by Redcircle
Tue Nov 22, 2005 2:53 pm
Forum: PHP coding => General
Topic: php with flatfiles
Replies: 1
Views: 711

you can use file() to read in the file into an array. Each line will be a new record in the array.

Code: Select all

<?php
$array = file('/path/to/file.txt');

echo $array[0];

?>
that will read the file in and print the first line.
by Redcircle
Wed Nov 16, 2005 10:59 am
Forum: PHP General
Topic: problem displaying text field (cross join query)
Replies: 3
Views: 1893

putting it into an actual list may be appropriate.
by Redcircle
Wed Nov 16, 2005 10:58 am
Forum: PHP General
Topic: problem displaying text field (cross join query)
Replies: 3
Views: 1893

Re: problem displaying text field (cross join query)

Usually what I would do is put all the results into an array and for loop through the array $current_heading = ''; $headings = array(); while ($row=mysql_fetch_array($result)) { $headings[] = $row; } $size = count($headings); for($x=0; $x<$size; $x++){ if($current_heading != $heading[$x]['heading_ti...
by Redcircle
Thu Nov 10, 2005 8:42 pm
Forum: mySQL & php coding
Topic: Accessing a single database from two domains
Replies: 7
Views: 2562

if he's on a shared host he probably does not have access to grant.
by Redcircle
Thu Nov 10, 2005 9:22 am
Forum: mySQL & php coding
Topic: Accessing a single database from two domains
Replies: 7
Views: 2562

if the database server is located on the same machine as both domains then you should have no problem. You'll be using localhost as your db host so you just need to use the correct username and pw.
by Redcircle
Wed Nov 09, 2005 10:51 am
Forum: Free time
Topic: Smallest PHP member
Replies: 17
Views: 11672

I agree.. I like seein yer guys faces.
by Redcircle
Wed Nov 09, 2005 9:19 am
Forum: PHP coding => General
Topic: trouble with sessions
Replies: 2
Views: 1008

I try to use the {} on all if statements even id one result condition.. also have the variable I'm checking first and the test condition second... code below reflects my best practices. hopefully that helps. <?php function checkAccess($access) { if ($access == 1 || $access > 5){ return true; }else{ ...
by Redcircle
Tue Nov 01, 2005 6:30 pm
Forum: mySQL & php coding
Topic: MySQL & php Dynamic display and filtering
Replies: 2
Views: 1831

Re: My drop-down menu

Hello, <?php echo '<form name="orderform" method="post" action="'.$_SERVER['PHP_SELF'].'">'; // Check to see if category has been sent $event_name = isset($_GET['event_name'])? $_GET['event_name']: 0; echo '<p> <select name="event_name" id="event_name" onchange=\'this.form.submit();\'> <option valu...