Forum: PHP 13 Hours Ago |
| Replies: 2 Views: 51 Re: Insert Multiple Records create a parents table. when a new parent signs up add their information into that table. then add a foreign key column 'parent_id' into a children table. this way, you won't have repeated records,... |
Forum: PHP 1 Day Ago |
| Replies: 3 Views: 73 Re: php -> classes problem if the thread is solved, please mark it as so. This way I don't waste anymore time replying to something that you already figured out. |
Forum: PHP 1 Day Ago |
| Replies: 3 Views: 73 Re: php -> classes problem example:
class test {
var $var;
function __construct() {
$this->var = 'something';
}
function testing() {
echo 'This is the parent function'; |
Forum: PHP 1 Day Ago |
| Replies: 3 Views: 73 Re: php -> classes problem you can send a reference to the parent class through the constructor and set it as a local var in the class. |
Forum: PHP 2 Days Ago |
| Replies: 9 Views: 148 |
Forum: PHP 2 Days Ago |
| Replies: 10 Views: 143 |
Forum: PHP 2 Days Ago |
| Replies: 10 Views: 143 Re: fwrite not working with ob_start, Any ideas? i rewrote the code. see if it works. sometimes you miss the smallest things and rewriting it all over usually solves the problem.
i also included a function because repetitive code drives me... |
Forum: PHP 2 Days Ago |
| Replies: 9 Views: 148 |
Forum: PHP 2 Days Ago |
| Replies: 3 Views: 101 |
Forum: PHP 2 Days Ago |
| Replies: 9 Views: 148 |
Forum: PHP 2 Days Ago |
| Replies: 10 Views: 143 Re: fwrite not working with ob_start, Any ideas? i really cannot see how ob_start() would have anything to do with not being able to write to a file. are there any php errors you are getting?
also, you are overwriting $to_write at the end of your... |
Forum: PHP 2 Days Ago |
| Replies: 4 Views: 101 Re: assing a value to DEfine you could get the file contents and then use str_replace.
$file = 'values.inc.php';
$fh = fopen( $file,'r' );
$data = fread( $file,filesize( $file ) );
fclose( $fh );
//or you can use... |
Forum: PHP 2 Days Ago |
| Replies: 3 Views: 101 Re: fetching arrays from ajax, php/zf have javascript send the script a comma seperated list of only the checked check boxes.
then change:
var param="c=delete&"+ajaxfields+"sid="+Math.random();
to |
Forum: PHP 2 Days Ago |
| Replies: 1 Views: 59 |
Forum: PHP 2 Days Ago |
| Replies: 3 Views: 70 Re: having trouble with my code From an xhtml perspective:
<html xmlns= "http://www.w3.org/1999/xhtml">
has an extra space.
you have two <html> tags. you didn't define any <head> or <body> sections. |
Forum: PHP 2 Days Ago |
| Replies: 3 Views: 70 Re: having trouble with my code before i look through it, let us know if there are errors and such. Or maybe try telling us what it is that you are trying to do. |
Forum: PHP 3 Days Ago |
| Replies: 4 Views: 91 Re: Unfamiliar syntax ok, sorry i just thought you went crazy with question marks.
i don't think there is such a function in php. if it existed, php.net would have documentation for it. |
Forum: PHP 3 Days Ago |
| Replies: 4 Views: 91 Re: Unfamiliar syntax it sends raw HTTP headers.
A nice Google Search (http://www.google.com/search?hl=en&q=header+php&aq=f&oq=) will give you all you need.
remember, php.net has almost everything.
also, here is more... |
Forum: PHP 4 Days Ago |
| Replies: 18 Views: 220 |
Forum: PHP 4 Days Ago |
| Replies: 7 Views: 97 |
Forum: PHP 4 Days Ago |
| Replies: 7 Views: 97 |
Forum: PHP 4 Days Ago |
| Replies: 7 Views: 97 |
Forum: PHP 4 Days Ago |
| Replies: 2 Views: 83 |
Forum: PHP 4 Days Ago |
| Replies: 3 Views: 118 |
Forum: PHP 4 Days Ago |
| Replies: 4 Views: 147 Re: Problem in uploading images in the move_uploaded_file() function you are moving the file to the file name itself without the upload directory prepended to it. you need to specify the directory the file needs to go to.
i... |
Forum: PHP 4 Days Ago |
| Replies: 11 Views: 165 Re: Duplicate entry '' for key 2 the ` (which are different than ') are not necessary, but I see phpMyAdmin and other programs use them a lot so it kind of became a habit of mine. it also helps me identify database and table names... |
Forum: PHP 5 Days Ago |
| Replies: 11 Views: 165 Re: Duplicate entry '' for key 2 you can't have the same primary key twice. hence the "duplicate entry". you are setting it as NULL. just omit the primary key entry in the values all together.
like this:
$sql = "INSERT INTO... |
Forum: PHP 7 Days Ago |
| Replies: 2 Views: 127 |
Forum: PHP 7 Days Ago |
| Replies: 8 Views: 431 Re: submit onchange not working i was referring to replacing of the double quotes with single quotes. i was just wondering why you would do that. I really doesn't make much of a difference. |
Forum: PHP 10 Days Ago |
| Replies: 38 Views: 1,637 Re: Chat Application here is the download link:
http://www.banditssoftball.org/chat.v3.zip
Please remember that this chat will not support a lot of users. Its writing to a file and once that many people are trying to... |
Forum: PHP 10 Days Ago |
| Replies: 8 Views: 263 |
Forum: PHP 10 Days Ago |
| Replies: 1 Views: 100 |
Forum: PHP 11 Days Ago |
| Replies: 8 Views: 431 |
Forum: PHP 12 Days Ago |
| Replies: 7 Views: 186 |
Forum: PHP 13 Days Ago |
| Replies: 8 Views: 431 |
Forum: PHP 13 Days Ago |
| Replies: 4 Views: 213 Re: Image resize in php do you want the photo to be viewed in original size again?
i have a resizing function. i just need to know if i need to customize it to work with your app. |
Forum: PHP 14 Days Ago |
| Replies: 2 Views: 205 Re: help with my insert query try using the query:
$query = "INSERT INTO `user` (`Mail`,`Pass`,`Name`,`LName`,`Details`) VALUES ('sdfsdsfdf','sdf','wer','m4n','asa4sd')";
and if that doesn't work...
add |
Forum: PHP 14 Days Ago |
| Replies: 5 Views: 269 Re: php chat sorry, i saw that the thread title "php chat" and figured i would give an example of one. i didn't know it was a debate over which method is better.
obviously languages like java can handle a task... |
Forum: PHP 15 Days Ago |
| Replies: 4 Views: 364 |
Forum: PHP 15 Days Ago |
| Replies: 5 Views: 269 Re: php chat i built one a few months back. look here. it still has a test script up. this one was made for people who wanted a chat but didn't have access to a database. it can be modified to do anything. i... |