Search found 41 matches

by Wade
Mon Oct 15, 2007 10:47 am
Forum: Javascript
Topic: Help with processing records
Replies: 1
Views: 507

Help with processing records

Morning everyone, I'm having a real bad case of the Mondays (just can't seem to figure this out!) What Ia ma trying to do is give the user a page to administer an event invite list, this page will only show those that are invited so far. what I want to do is be able to remove records based on the un...
by Wade
Wed May 23, 2007 2:20 pm
Forum: PHP - Code
Topic: simple updating news page?
Replies: 4
Views: 367

The easiest method might be to check out pre-existing CMS (Content Management System) packages. There are alot out there, some are free, some are pay for.

I'd start with Google and see where that leads you...

Just my $0.02 :)
by Wade
Wed May 23, 2007 12:16 pm
Forum: PHP - Code
Topic: [SOLVED] - Select/Unselect all checkboxes
Replies: 2
Views: 350

feyd wrote:document.myform.record[] is not a specifier.

document.forms['myform'].elements['record[]'] is.
Awesome, works like a charm.

Thank you very much!
by Wade
Wed May 23, 2007 12:03 pm
Forum: PHP - Code
Topic: diplay a random number into html page
Replies: 4
Views: 508

-how can i pass a variable from php page to another without using forms? Try using PHP sessions... http://www.phptutorial.info/learn/session.php http://www.htmlgoodies.com/beyond/php/article.php/3472581 -how can i call a funtion located to a different php page from the current one? If you have the ...
by Wade
Wed May 23, 2007 11:53 am
Forum: PHP - Code
Topic: create a login
Replies: 3
Views: 373

How elaborate do you want the login system? if it's quick and dirty I might have something for you. I use it for an internal website that needs to have a few pages off-limits for everyone but an admin type. let me know and i can post what I have...
by Wade
Wed May 23, 2007 11:50 am
Forum: PHP - Code
Topic: Case sensitivity problems[SOLVED]
Replies: 10
Views: 745

If you use the

Code: Select all

$query = "SELECT * FROM members WHERE LOWER(loginid)='" . strtolower($loginid) . "'";
as The Moose suggested it won't matter if it's all caps or mixed case. only the spelling will matter
by Wade
Wed May 23, 2007 11:45 am
Forum: PHP - Code
Topic: [SOLVED] - Select/Unselect all checkboxes
Replies: 2
Views: 350

[SOLVED] - Select/Unselect all checkboxes

Hi every one, I've searched the site but haven't been able to find an answer to my issue. I'm creating a dynamic table of data with a check box on the leftside. What I want to do is be able to select all or unselect all with a master check box. I can get this to work with javascript if the checkbox ...
by Wade
Fri Feb 23, 2007 4:45 pm
Forum: PHP - Code
Topic: [Solved] Problem getting values in foreach statement
Replies: 5
Views: 883

Resolved with the following Info:

mysql_fetch_array() only returns one result row from the query. The most common idiom for looping through all the results is:

Code: Select all

while($row = mysql_fetch_array($result))
{
   // do whatever needs doing for this result row
}
by Wade
Fri Feb 23, 2007 3:17 pm
Forum: PHP - Code
Topic: [Solved] Problem getting values in foreach statement
Replies: 5
Views: 883

foreach($row as $i => $v){ write var_dump($row); foreach($row as $i => $v){ instead and think what and why happens. This: default : $searchStr = ""; is not wise, it will break your SQL. Try a default value of "0" if you want nothing to be shown (... WHERE 0=1) Hmmm still not wor...
by Wade
Fri Feb 23, 2007 2:47 pm
Forum: PHP - Code
Topic: [Solved] Problem getting values in foreach statement
Replies: 5
Views: 883

HA! That was the other part I was working on, yes that helps display the results properly, but it's still only showing 1 record instead of 2... any thoughts?

Good eye!!
by Wade
Fri Feb 23, 2007 12:51 pm
Forum: PHP - Code
Topic: [Solved] Problem getting values in foreach statement
Replies: 5
Views: 883

[Solved] Problem getting values in foreach statement

Hi there, I'm trying to construct a page that will print labels out depending on the selected criteria Here's the code: <?php include 'config.php'; include 'opendb.php'; date_default_timezone_set("America/Edmonton"); require_once('PDF_Label.php'); $pdf = new PDF_Label('5160', 'mm', 1, 2); ...
by Wade
Fri Feb 16, 2007 2:39 pm
Forum: PHP - Code
Topic: Setting the default or selected value in a select menu
Replies: 3
Views: 793

Thanks! part of the problem was Firefox, even after inserting you code, it did nothing. I switched over to IE and it works... any ideas on why it wouldn't work properly with FF?
by Wade
Fri Feb 16, 2007 2:27 pm
Forum: PHP - Code
Topic: I Don't understand why can't make a SELECT!
Replies: 2
Views: 569

Re: I Don't understand why can't make a SELECT!

Where is $cadn being set? from what I can see it's nothing so the query returns nothing...
by Wade
Fri Feb 16, 2007 2:06 pm
Forum: PHP - Code
Topic: Setting the default or selected value in a select menu
Replies: 3
Views: 793

Setting the default or selected value in a select menu

Hi there, I'm having an issue trying to get the correct item selected in a drop down menu. I'm populating the menu from one table and pulling the current value from another... the code is as follows: <?php //Get the Category name based on the CategoryID from user record $query2 = "SELECT * FROM...
by Wade
Fri Feb 09, 2007 10:32 am
Forum: Javascript
Topic: Using javascript with a link to confirm record deletion
Replies: 6
Views: 1493

confirm() returns a boolean so you can even just do: <a href="url" onclick="return confirm('Are you sure?');">x</a> As I mentioned in another post this very same day, using a GET request for an action that changes something like this is a bad idea. It should really be a POST req...