Search found 826 matches

by Redcircle
Fri Nov 20, 2009 9:09 am
Forum: mySQL & php coding
Topic: Somebody...i need some help
Replies: 0
Views: 509

Re: Somebody...i need some help

Inserts do not have where clauses. Your ID's auto increment so it will automatically advance the id. that is if the db is setup properly.
by Redcircle
Fri Nov 20, 2009 9:03 am
Forum: PHP coding => General
Topic: Php Ajax Dropdownlist Problem
Replies: 2
Views: 665

Re: Php Ajax Dropdownlist Problem

IIRC using innerHTML does not put it into the DOM that might be the problem opposed to creating node objects. I'd suggest using jQuery. I consider it the rosetta stone of javascript. Takes care of a whole bunch of cross browser stuff and super simple to use with ajax.
by Redcircle
Wed Mar 26, 2008 2:47 pm
Forum: mySQL & php coding
Topic: [array] and insert into ....Mysql
Replies: 1
Views: 1066

Re: [array] and insert into ....Mysql

when you get an error saying unknown column it means you have a typo. make sure it's referer and not referrer which is the correct spelling.
by Redcircle
Wed Mar 26, 2008 2:38 pm
Forum: PHP Scripts
Topic: Go to URL?
Replies: 0
Views: 929

Re: Go to URL?

by Redcircle
Wed Mar 26, 2008 2:36 pm
Forum: PHP Scripts
Topic: database variable
Replies: 0
Views: 846

Re: database variable

because $group is not defined in the function you would have to either define it our pass it into the function. function displayUsers($group){ } also I'd recommend to escape the string to avoid sql injections. see mysql_real_escape_string $q = "SELECT username,userlevel,email,group FROM ".TBL_USERS....
by Redcircle
Wed Mar 26, 2008 2:21 pm
Forum: PHP coding => General
Topic: Parse error: syntax error, unexpected '<', expecting ',' or
Replies: 0
Views: 792

Re: Parse error: syntax error, unexpected '<', expecting ',' or

echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';

you need to quote your output.
by Redcircle
Wed Mar 26, 2008 2:18 pm
Forum: PHP coding => General
Topic: $_SESSION variables not carrying over to next pages?
Replies: 0
Views: 808

Re: $_SESSION variables not carrying over to next pages?

So it is assuming that by the next page they are saying that the $_POST variables now equal ZERO. So it redoes the variable with the new post value of zero. Pretty lame to me. Functions do this to. SO variables are always changing even if a new variable is changed farther down the page. What I mean...
by Redcircle
Sun Jul 16, 2006 1:01 pm
Forum: PHP coding => General
Topic: jpg animator?????
Replies: 1
Views: 1052

jpg's aren't animated.. gif can be.
by Redcircle
Fri Jul 07, 2006 3:30 pm
Forum: JavaScript
Topic: changing a hidden field value from a checkbox
Replies: 1
Views: 2568

make a function that checks the value. <script type="text/javascript"> checkHidden(hidden){ if(document.getElementById(hidden).value == 1){ document.getElementById(hidden).value =2; } else { document.getElementById(hidden).value = 1; } </script> <input name="checkbox1" id="checkbox1" type="checkbox"...
by Redcircle
Tue Jul 04, 2006 12:12 pm
Forum: PHP coding => General
Topic: about the simple feedback form..
Replies: 0
Views: 916

name the radio buttons the same. it will only send the value of the selected on through the form.
by Redcircle
Tue Jul 04, 2006 12:10 pm
Forum: HTML Basics
Topic: Need help to integrate.
Replies: 0
Views: 2515

Contacting osDate support would be the best route.
http://www.tufat.com/forum/
by Redcircle
Tue Jul 04, 2006 12:07 pm
Forum: mySQL & php coding
Topic: Warning: mysql_fetch_array() stops the while loop
Replies: 1
Views: 1600

You are reassigning $result within the loop on line 12 you can do a delete query and not specify a result variable.. i.e. just delete $result = on line 12 $query = "SELECT idmatincom FROM materials_in_competitions WHERE record_competition = '$record_competition'"; echo $query; $result = mysql_query(...
by Redcircle
Tue Jun 27, 2006 9:04 pm
Forum: mySQL & php coding
Topic: need help with group by ~
Replies: 2
Views: 2471

Re: need help with group by ~

Code: Select all

select * from table group by subject order by mark desc
by Redcircle
Sat Jun 17, 2006 6:25 pm
Forum: mySQL & php coding
Topic: Connect graph to database
Replies: 0
Views: 1484

by Redcircle
Wed Jun 14, 2006 8:07 pm
Forum: phpMyAdmin
Topic: POST buttons returning 500 page
Replies: 0
Views: 3368

A lot of times 500errors can be permissions.
by Redcircle
Wed Jun 14, 2006 8:05 pm
Forum: PHP coding => General
Topic: Calendar control to add to form
Replies: 4
Views: 1755

I've used JS calendar.. it's great.
by Redcircle
Wed Jun 14, 2006 7:57 pm
Forum: PHP coding => General
Topic: global array declaration
Replies: 1
Views: 1018

$GLOBALS['delete_entry'] = $delete_entry;


$GLOBALS is a superglobal and can be access throughout the entire scope.

you my just want to pass the array as a parameter

Code: Select all

function a(){
    $foo = 'bar'
    b($foo);
}

function b($foo){
    echo $foo; //echo's 'bar'
}
by Redcircle
Wed Jun 14, 2006 7:52 pm
Forum: PHP coding => General
Topic: permissions
Replies: 1
Views: 1286

keep a folder below the public_html for your images that will allow you to have a little safer 777 folder. Only other way around that is to run the webserver as the user. Check out http://suphp.org or http://httpd.apache.org/docs/1.3/suexec.html note: for suPHP and suEXEC to work you must be using t...
by Redcircle
Fri Jun 09, 2006 4:03 pm
Forum: PHP coding => General
Topic: do this after 5 seconds
Replies: 4
Views: 1717

using javascript then

setTimeout
by Redcircle
Wed Jun 07, 2006 7:54 pm
Forum: PHP coding => General
Topic: Upload pictures form and code
Replies: 1
Views: 1078

make a dir called c:\tmp and update your php.ini to reflect that.
by Redcircle
Wed Jun 07, 2006 7:52 pm
Forum: PHP coding => General
Topic: using php to call a web page
Replies: 1
Views: 1023

best thing would be to use curl

http://www.php.net/curl
by Redcircle
Tue Jun 06, 2006 6:50 pm
Forum: PHP coding => General
Topic: SMS function
Replies: 2
Views: 1744

Doing SMS requires you to use a SMS Gateway. Basically a server that sends out the messages to the correct people kinda like a DNS finds the correct ip's for a host.

tutorial - http://codewalkers.com/tutorials/90/1.html
by Redcircle
Tue Jun 06, 2006 6:44 pm
Forum: PHP coding => General
Topic: trying to make a delete form
Replies: 7
Views: 2340

you need to submit the id's as an array.. basically name all the checkboxes the same with a [] attached.

Code: Select all

echo '<input type="checkbox" name="to_delete[]" value="'.$id.'" />';
When you hit submit it will send an array called to_delete. Only those checked will be in the array.
by Redcircle
Tue Jun 06, 2006 6:40 pm
Forum: PHP coding => General
Topic: do this after 5 seconds
Replies: 4
Views: 1717

you can use sleep() http://www.php.net/sleep or do a meta refersh

Code: Select all

<meta http-equiv="refresh" content="600" />