Search found 826 matches
- Fri Nov 20, 2009 9:09 am
- Forum: mySQL & php coding
- Topic: Somebody...i need some help
- Replies: 0
- Views: 592
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.
- Fri Nov 20, 2009 9:03 am
- Forum: PHP coding => General
- Topic: Php Ajax Dropdownlist Problem
- Replies: 2
- Views: 820
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.
- Wed Mar 26, 2008 2:47 pm
- Forum: mySQL & php coding
- Topic: [array] and insert into ....Mysql
- Replies: 1
- Views: 1221
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.
- Wed Mar 26, 2008 2:38 pm
- Forum: PHP Scripts
- Topic: Go to URL?
- Replies: 0
- Views: 1041
Re: Go to URL?
header('Location: http://www.yourdomain.com/index.html');
- Wed Mar 26, 2008 2:36 pm
- Forum: PHP Scripts
- Topic: database variable
- Replies: 0
- Views: 941
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....
- Wed Mar 26, 2008 2:21 pm
- Forum: PHP coding => General
- Topic: Parse error: syntax error, unexpected '<', expecting ',' or
- Replies: 0
- Views: 945
Re: Parse error: syntax error, unexpected '<', expecting ',' or
echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
you need to quote your output.
you need to quote your output.
- Wed Mar 26, 2008 2:18 pm
- Forum: PHP coding => General
- Topic: $_SESSION variables not carrying over to next pages?
- Replies: 0
- Views: 952
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...
- Sun Jul 16, 2006 1:01 pm
- Forum: PHP coding => General
- Topic: jpg animator?????
- Replies: 1
- Views: 1203
- Fri Jul 07, 2006 3:30 pm
- Forum: JavaScript
- Topic: changing a hidden field value from a checkbox
- Replies: 1
- Views: 2739
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"...
- Tue Jul 04, 2006 12:12 pm
- Forum: PHP coding => General
- Topic: about the simple feedback form..
- Replies: 0
- Views: 1025
- Tue Jul 04, 2006 12:10 pm
- Forum: HTML Basics
- Topic: Need help to integrate.
- Replies: 0
- Views: 2660
Contacting osDate support would be the best route.
http://www.tufat.com/forum/
http://www.tufat.com/forum/
- Tue Jul 04, 2006 12:07 pm
- Forum: mySQL & php coding
- Topic: Warning: mysql_fetch_array() stops the while loop
- Replies: 1
- Views: 1712
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(...
- Tue Jun 27, 2006 9:04 pm
- Forum: mySQL & php coding
- Topic: need help with group by ~
- Replies: 2
- Views: 2607
Re: need help with group by ~
Code: Select all
select * from table group by subject order by mark desc
- Sat Jun 17, 2006 6:25 pm
- Forum: mySQL & php coding
- Topic: Connect graph to database
- Replies: 0
- Views: 1562
- Wed Jun 14, 2006 8:07 pm
- Forum: phpMyAdmin
- Topic: POST buttons returning 500 page
- Replies: 0
- Views: 3557
- Wed Jun 14, 2006 8:05 pm
- Forum: PHP coding => General
- Topic: Calendar control to add to form
- Replies: 4
- Views: 1917
- Wed Jun 14, 2006 7:57 pm
- Forum: PHP coding => General
- Topic: global array declaration
- Replies: 1
- Views: 1209
$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
$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'
}
- Wed Jun 14, 2006 7:52 pm
- Forum: PHP coding => General
- Topic: permissions
- Replies: 1
- Views: 1434
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...
- Fri Jun 09, 2006 4:03 pm
- Forum: PHP coding => General
- Topic: do this after 5 seconds
- Replies: 4
- Views: 1901
- Wed Jun 07, 2006 7:54 pm
- Forum: PHP coding => General
- Topic: Upload pictures form and code
- Replies: 1
- Views: 1163
- Wed Jun 07, 2006 7:52 pm
- Forum: PHP coding => General
- Topic: using php to call a web page
- Replies: 1
- Views: 1113
- Tue Jun 06, 2006 6:50 pm
- Forum: PHP coding => General
- Topic: SMS function
- Replies: 2
- Views: 1903
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
tutorial - http://codewalkers.com/tutorials/90/1.html
- Tue Jun 06, 2006 6:44 pm
- Forum: PHP coding => General
- Topic: trying to make a delete form
- Replies: 7
- Views: 2482
you need to submit the id's as an array.. basically name all the checkboxes the same with a [] attached.
When you hit submit it will send an array called to_delete. Only those checked will be in the array.
Code: Select all
echo '<input type="checkbox" name="to_delete[]" value="'.$id.'" />';
- Tue Jun 06, 2006 6:40 pm
- Forum: PHP coding => General
- Topic: do this after 5 seconds
- Replies: 4
- Views: 1901
you can use sleep() http://www.php.net/sleep or do a meta refersh
Code: Select all
<meta http-equiv="refresh" content="600" />
- Tue Jun 06, 2006 6:36 pm
- Forum: PHP coding => General
- Topic: How to put water mark in the image using PHP.
- Replies: 1
- Views: 1227
here's a tutorial http://www.sitepoint.com/article/watermark-images-php