Showing results 1 to 40 of 500
Search took 0.04 seconds.
Posts Made By: kkeith29
Forum: PHP 13 Hours Ago
Replies: 2
Views: 51
Posted By kkeith29
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
Posted By kkeith29
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
Posted By kkeith29
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
Posted By kkeith29
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
Posted By kkeith29
Re: Parse error: syntax error, unexpected T_VARIABLE in C:\ on line 46

in the sql query, i forgot the username in the values. add that and it should work.
Forum: PHP 2 Days Ago
Replies: 10
Views: 143
Posted By kkeith29
Re: fwrite not working with ob_start, Any ideas?

make sure that directory is writable. there is nothing else that would stop it from making that file.
Forum: PHP 2 Days Ago
Replies: 10
Views: 143
Posted By kkeith29
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
Posted By kkeith29
Re: Parse error: syntax error, unexpected T_VARIABLE in C:\ on line 46

ok, i rewrote the code. i added some extra security but there is much more you need to do make it secure enough for actual use.

let me know if this works. its untested.


<?php

//DB Info
$dbhost =...
Forum: PHP 2 Days Ago
Replies: 3
Views: 101
Posted By kkeith29
Re: fetching arrays from ajax, php/zf

where is the fields variable defined at in the javascript.
Forum: PHP 2 Days Ago
Replies: 9
Views: 148
Posted By kkeith29
Re: Parse error: syntax error, unexpected T_VARIABLE in C:\ on line 46

i think that is the site trying to parse the url. not the code.
Forum: PHP 2 Days Ago
Replies: 10
Views: 143
Posted By kkeith29
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
Posted By kkeith29
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
Posted By kkeith29
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
Posted By kkeith29
Re: passing arrays back and forth php(zend)/javascript

can you post your code? i have done this before, put it would be pointless to make an example that won't make any sense to you since i don't know how you are setting everything up.
Forum: PHP 2 Days Ago
Replies: 3
Views: 70
Posted By kkeith29
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
Posted By kkeith29
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
Posted By kkeith29
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
Posted By kkeith29
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
Posted By kkeith29
Re: memorising requested variables after page reset

Rhyan answered this the same time as I did. His post pretty much says the same thing.

you need to send the searched string in the url with each pagination link (what you are doing is called...
Forum: PHP 4 Days Ago
Replies: 7
Views: 97
Posted By kkeith29
Re: PHP Nested Loop Produces Redundant Records....

its there now. somehow i forgot to post it. sorry.
Forum: PHP 4 Days Ago
Replies: 7
Views: 97
Posted By kkeith29
Re: PHP Nested Loop Produces Redundant Records....

here is something i would use to display 3 images to a row. maybe you can modify it.


<?php

$table = '<table width="100%" border="1" cellspacing="1" cellpadding="1"><tr>';

$i = 0;
foreach(...
Forum: PHP 4 Days Ago
Replies: 7
Views: 97
Posted By kkeith29
Re: PHP Nested Loop Produces Redundant Records....

in the demo, you have printed the xml array. can you put <pre></pre> tags around it so its more readable? maybe after that, i can see how the array is formatted and see where you went wrong.
Forum: PHP 4 Days Ago
Replies: 2
Views: 83
Posted By kkeith29
Re: Need help!

can you explain your question in more detail?
Forum: PHP 4 Days Ago
Replies: 3
Views: 118
Posted By kkeith29
Re: [HELP] Regarding on select Box

use the $_POST data to do it. not $_REQUEST, in which is not very secure.
Forum: PHP 4 Days Ago
Replies: 4
Views: 147
Posted By kkeith29
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
Posted By kkeith29
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
Posted By kkeith29
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
Posted By kkeith29
Re: retain input data on page reload

put it in a session variable.
Forum: PHP 7 Days Ago
Replies: 8
Views: 431
Posted By kkeith29
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
Posted By kkeith29
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
Posted By kkeith29
Re: F5 inserts data again problem?

add a unique index to the database table. it won't let it happen.
Forum: PHP 10 Days Ago
Replies: 1
Views: 100
Posted By kkeith29
Re: Php video upload

yes. ffmpeg will do it.
Forum: PHP 11 Days Ago
Replies: 8
Views: 431
Posted By kkeith29
Re: submit onchange not working

why....that is not necessary.
Forum: PHP 12 Days Ago
Replies: 7
Views: 186
Posted By kkeith29
Re: Is it possible?

they are all possible. the specifics depend on the type of database.
Forum: PHP 13 Days Ago
Replies: 8
Views: 431
Posted By kkeith29
Re: submit onchange not working

the onchange="this.form.submit()" goes in the select tag.
Forum: PHP 13 Days Ago
Replies: 4
Views: 213
Posted By kkeith29
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
Posted By kkeith29
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
Posted By kkeith29
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
Posted By kkeith29
Re: Sending Zip Files as Email Attachment Using PHP

create a form with an file input type and then my script will automatically read the uploaded files and send them to an email address. if you want to use an id, you will have to query the database...
Forum: PHP 15 Days Ago
Replies: 5
Views: 269
Posted By kkeith29
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...
Showing results 1 to 40 of 500

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 11:27 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC