Search found 31 matches

by influx
Wed Feb 01, 2006 4:56 pm
Forum: Installation and Configuration
Topic: Slight .htaccess Problem
Replies: 4
Views: 1778

Hey all, I tried changing it to the following: RewriteEngine on RewriteBase / RewriteRule ^([A-Za-z_0-9-]+)((/)|())?$ redirect.php?user=$1 I even tried adding a / in front of redirect.php to call for the home directory. None of this seems to work for me. If i type in http://www.website.com/username/...
by influx
Wed Feb 01, 2006 11:24 am
Forum: Installation and Configuration
Topic: Slight .htaccess Problem
Replies: 4
Views: 1778

Slight .htaccess Problem

I have the following code in my .htaccess file for my website. RewriteEngine on RewriteBase / RewriteRule ^([A-Za-z_0-9-]+)((/)|())$ redirect.php?user=$1 Now let me explain. I basically host a blog site for a few friends of mine and I make it possible for users to view their blog by visiting http://...
by influx
Wed Aug 31, 2005 3:18 am
Forum: PHP - Code
Topic: mail() function woes
Replies: 3
Views: 498

mail() function woes

Hi all, I am writing a script to email all fifty of my contacts from my address book from a CSV file. Everything is fine with the CSV file, i fgetcsv() without problems, but when I am sending my message, it is a good ten lines long with three paragraphs. When I input my \n into the e-mail, it doesn'...
by influx
Mon Aug 29, 2005 2:59 pm
Forum: PHP - Code
Topic: Weird error
Replies: 1
Views: 229

Weird error

function email_checker($tess) { $name_check = $db_object->query("SELECT m_email FROM mail_list WHERE m_username = '{$_SESSION['username']}' AND m_email = '$tess'"); $name_checkk = $name_check->numRows(); if ($name_checkk != 0) //if number of rows isn't 0, there obviously is already a row ...
by influx
Mon Aug 29, 2005 11:36 am
Forum: PHP - Code
Topic: General mailing list question
Replies: 7
Views: 360

Throughout building my site, I've been pretty careful to keep my code as short as possible. Is it really important to do this from my standpoint, you think?
by influx
Mon Aug 29, 2005 11:32 am
Forum: PHP - Code
Topic: General mailing list question
Replies: 7
Views: 360

Interesting...I'm just thinking of it as the most effecient way for the server I'm running.

You really think it's better to store it in temp variables? Why?
by influx
Mon Aug 29, 2005 11:21 am
Forum: PHP - Code
Topic: General mailing list question
Replies: 7
Views: 360

here is what it outputted: INSERT INTO mail_list (m_id, m_username, m_email, m_name) VALUES ('862','johndoe', '', '') INSERT INTO mail_list (m_id, m_username, m_email, m_name) VALUES ('862','johndoe', '', '') Meaning, even though I inputted the last two things that should be inputted (SESSIONemail a...
by influx
Mon Aug 29, 2005 11:13 am
Forum: PHP - Code
Topic: General mailing list question
Replies: 7
Views: 360

General mailing list question

I am incorporating a mailing list feature for my blog users and I was wondering what I need to fix in the database query. I have a page where my users can input up to 10 email addresses with 10 accompanying names. Everything in this code works fine except for the last two values I want inputted (SES...
by influx
Mon Aug 29, 2005 10:57 am
Forum: PHP - Code
Topic: What the..this should be so easy
Replies: 5
Views: 369

thanks a lot guys, very helpful...I'm looking into it
by influx
Mon Aug 29, 2005 10:45 am
Forum: PHP - Code
Topic: What the..this should be so easy
Replies: 5
Views: 369

Alright, that makes sense... However, on every other one of my pages where I execute the code after accepting a form (via the POST method), I use the || statements when checking the code, and it works fine. Take for example this one for id_add.php: if($code && ($code!=1 || $code!=2 || $code!...
by influx
Mon Aug 29, 2005 10:31 am
Forum: PHP - Code
Topic: What the..this should be so easy
Replies: 5
Views: 369

What the..this should be so easy

I have the following code in profile_add.php. $code=$_GET['c']; //check and see if propagated code is between 1-7 to prevent anything fishy if($code && ($code!=1 || $code!=2 || $code!=3 || $code!=4 || $code!=5 || $code!=6 || $code!=7)) { die('Invalid code. Please contact us if this problem p...
by influx
Mon Aug 29, 2005 12:14 am
Forum: PHP - Code
Topic: Form return data retrieval?
Replies: 5
Views: 886

how long do they typically last on the server?
by influx
Sun Aug 28, 2005 11:19 pm
Forum: PHP - Code
Topic: Form return data retrieval?
Replies: 5
Views: 886

So i should save 20 session variables??

Isn't that pushing it a bit?
by influx
Sun Aug 28, 2005 4:03 pm
Forum: PHP - Code
Topic: Form return data retrieval?
Replies: 5
Views: 886

Form return data retrieval?

Hey all, I am offering users at my blog site a 'mailing list' feature for them to be able to send newsletters to all their subscribers. In addition to having a textbox on their blog homepage for people to subscribe, I am allowing the blog owner, in their member control panel, to add up to 10 email a...
by influx
Mon Aug 15, 2005 3:51 pm
Forum: PHP - Code
Topic: Formatted text + database insertion/retrieval
Replies: 2
Views: 258

Formatted text + database insertion/retrieval

Hey all, I have a site similar to any other blog site, where I have a few friends coming and posting whatever they want. I found this "Rich-text Editor" online, a WYSIWYG editor for posting to their blog...and have a few questions about database input and future output. Since the WYSIWYG e...