Search Results

Showing results 1 to 40 of 51
Search took 0.01 seconds.
Search: Posts Made By: sagedavis ; Forum: PHP and child forums
Forum: PHP May 21st, 2008
Replies: 1
Views: 755
Posted By sagedavis
You are using a lot of shorthand stuff, and it makes it hard for those of us who don't use it to read.

(!$_GET['start']) ? $start = 0 : $start = $_GET['start'];

as an example.
so for those...
Forum: PHP May 21st, 2008
Replies: 3
Views: 4,707
Posted By sagedavis
Lifetalk,
textarea has nothing to do with PHP, that's html. But, to answer your question, yes, it's possible to pretty much do anything.

I assume that if you are asking about php, you must have a...
Forum: PHP Apr 7th, 2008
Replies: 12
Views: 7,987
Posted By sagedavis
You're welcome,
glad I could help.
sage
Forum: PHP Apr 4th, 2008
Replies: 0
Views: 626
Posted By sagedavis
Hey all,
ok, so, I am a bit weird in my questions but, that's just me. I have a fairly weird one for you.

I have been using RegExSearchReplace (A Java Program) to do this the um, tedious way,...
Forum: PHP Mar 30th, 2008
Replies: 12
Views: 7,987
Posted By sagedavis
the answer is that Pop is not defined. you are calling a function called POP in your onClick function and I see no javascript function (because it must be a function in order to use it). I do not see...
Forum: PHP Mar 29th, 2008
Replies: 3
Views: 1,896
Posted By sagedavis
ok, you still can't call a php function on a javascript event, which is what your code is trying to do.

What you need to do is use your php to print out the html code but make the onclick event...
Forum: PHP Mar 29th, 2008
Replies: 8
Views: 942
Posted By sagedavis
OK, I'm pasting the code you IMd me here, because there are others who may be able to help with this as well.

<script src="signupcheck.js" language="JavaScript" type="text/javascript">
</script>...
Forum: PHP Mar 28th, 2008
Replies: 8
Views: 942
Posted By sagedavis
java or javascript?

It's hard to tell, since you aren't showing us your javascript.... but,...
I would say your "Validate" is somehow over riding everything.
You may be trying to pass the...
Forum: PHP Mar 28th, 2008
Replies: 5
Views: 952
Posted By sagedavis
Great Matti,
I shall try this over the weekend.

The main reason for wanting to pass the var $sql as an arg, rather than type out the statement is because, there might be some dynamic stuff going...
Forum: PHP Mar 28th, 2008
Replies: 5
Views: 606
Posted By sagedavis
it could also be a .htaccess mod_rewrite

if you had hacked it to try to make
index.php?name=joe
look like
index/joe
instead, you could have done something weird with it (I've done that),...
Forum: PHP Mar 28th, 2008
Replies: 3
Views: 1,896
Posted By sagedavis
you can't call a php function with an onClick event.. onClick is a javascript/DHTML item.

You also don't even need any of the php opening and closing stuff.
Why cause php to print javascript and...
Forum: PHP Mar 28th, 2008
Replies: 5
Views: 952
Posted By sagedavis
Thanks for this tute, it's pretty good, although, I wouldn't recommend a beginning OOPer to read that right off the bat.

I've been working with PHP OOPing for only a short time, but, as it's a...
Forum: PHP Mar 27th, 2008
Replies: 3
Views: 2,257
Posted By sagedavis
just out of curiosity, would str_replace not have worked easier for this?
You have a string (as a variable at least) and you know what other string is inside of it (or could be inside of it), and...
Forum: PHP Mar 27th, 2008
Replies: 5
Views: 952
Posted By sagedavis
I am banging my head against the wall here.
I've tried everything that I can think of to get this to work.


class myData {
function myStuff($sql){
$result = @mysql_query($sql,$connection) or...
Forum: PHP Mar 27th, 2008
Replies: 12
Views: 1,104
Posted By sagedavis
I'm lost
Are you saying that your code currently returns # signs for all the text entered or are you saying that you would like it to return the # for your letters?

What are you wanting it to do,...
Forum: PHP Mar 27th, 2008
Replies: 1
Views: 2,573
Posted By sagedavis
you do not need to figure out the image actually..

Rather than thinking about what html tags you do not want to allow, just think about the ones that you do want to allow.

PHP has a native...
Forum: PHP Mar 27th, 2008
Replies: 12
Views: 7,987
Posted By sagedavis
OK, well, that's different, you are looking for something like an ajax, hidden div tag which reviels itself on the mousover of another?

Even though you will be using images, think of it more like...
Forum: PHP Mar 22nd, 2008
Replies: 5
Views: 682
Posted By sagedavis
oh, duh,
was it "count" that was the reserved word?
sage
Forum: PHP Mar 22nd, 2008
Replies: 2
Views: 605
Posted By sagedavis
What Silviuks said.
No one is going to read through the whole code, let alone that entire thing of specs you have.

Your best bet is to tell us which part of the code is failing, even better yet...
Forum: PHP Mar 22nd, 2008
Replies: 5
Views: 682
Posted By sagedavis
hmmm,
first off, I don't know why your code isn't throwing an error to begin with.
you have an extra ";" at the end there... once you end a function } you don't need to use a ;

I think your...
Forum: PHP Mar 22nd, 2008
Replies: 12
Views: 7,987
Posted By sagedavis
adding 100 to the height and width, actually does not maintain the aspect ratio of the image (unless the image is already the same height and width.

If you use a multiplication instead, you should...
Forum: PHP Mar 14th, 2008
Replies: 3
Views: 884
Posted By sagedavis
That's great information.
Unfortunately, converting to PDF first is not a viable way to go with this one. We use a PHP pdf generation system, but, as that is just as dynamic as the pages that our...
Forum: PHP Mar 12th, 2008
Replies: 3
Views: 641
Posted By sagedavis
Here is my mod rewrite, it should work for you, all you need to do is change mydomain.com to your actual domain, everywhere that you see it.

RewriteEngine on
RewriteRule ^([a-z0-9_]+)$ /$1/ [nc]...
Forum: PHP Mar 10th, 2008
Replies: 2
Views: 473
Posted By sagedavis
Shawn
This is perfect. Basically this is working with classes.

I'm not new to using PHP at all, but am new to using classes.
This was very helpful stuff.
Thanks
Sage
Forum: PHP Mar 10th, 2008
Replies: 8
Views: 852
Posted By sagedavis
You don't have a message in there. This could be stopping your email.

you posted that long code then later came back with another issue that you are having with the blank page.. I am assuming that...
Forum: PHP Mar 10th, 2008
Replies: 2
Views: 473
Posted By sagedavis
I know, this is a weird question, but...
I am working right now on an inherited project, and finding this quite a bit.

$objSomething -> $object

I have had it explained to me that this is...
Forum: PHP Feb 29th, 2008
Replies: 9
Views: 959
Posted By sagedavis
Those stats are great and I agree whole heartedly with Nav33 on his explination of what makes php so much more widely used.

The biggest problem that I have with asp in general is that it is not an...
Forum: PHP Feb 28th, 2008
Replies: 3
Views: 884
Posted By sagedavis
Hi all,
I have been working on a PHP based application where a user would be allowed to print out specific, yet dynamic information.

I am using a different style sheet for the print page, but I...
Forum: PHP Feb 28th, 2008
Replies: 9
Views: 877
Posted By sagedavis
um,

$this->_host = $host; $this->_user = $user; $this->_password = $password; $this->_database = $database; $this->_persistent = $persistent;


Up top you have

private $_user =...
Forum: PHP Feb 27th, 2008
Replies: 8
Views: 853
Posted By sagedavis
I have CS3, for the flash, but a job I applied for required that my notepad++ loving self know DreamWeaver to program my php.

If you are handcoding everything and like all the highlighting, get...
Forum: PHP Feb 23rd, 2008
Replies: 1
Views: 533
Posted By sagedavis
without reading your code cause I am tired this morning.
you need 1 page to be like the individual profile page which will handle the viewing of one item.

You need to add to that table an...
Forum: PHP Feb 23rd, 2008
Replies: 4
Views: 648
Posted By sagedavis
Well, it's not really going to work by doing it this way, or at least, no way that I can think of.
See, you've made it pass all kinds of information to through the url.
...
Forum: PHP Feb 22nd, 2008
Replies: 4
Views: 648
Posted By sagedavis
you have given your checkboxes a name, and a value... Each check box needs to be referenced on your search.php page....


$amenity9 = $_GET['amenity9'];
$amenity10 = $_GET['amenity10'];

...
Forum: PHP Feb 19th, 2008
Replies: 7
Views: 739
Posted By sagedavis
The question is, do you actually get anything at all or do you just get a white screen? Or does the status bar continually act like it is trying to load for the whole time?

with ...
Forum: PHP Feb 19th, 2008
Replies: 3
Views: 10,210
Posted By sagedavis
Nav33
Hey bud... :-)
I can't even remember what all I searched for now...
I am not good at regular expressions anyway, lol so, I'm ok with trying to work around them.
Thanks
Forum: PHP Feb 19th, 2008
Replies: 4
Views: 2,427
Posted By sagedavis
The way that I personally would be doing this is
setting a "while" statement as my query result which would include what is in your "echo", and then echoing the result in the html body itself.
...
Forum: PHP Feb 18th, 2008
Replies: 3
Views: 10,210
Posted By sagedavis
Sometimes it's just something so simple.
I have been racking my brain, searching the net, for, litterally, 6 hours. Looking to do the following.
If the user puts "this phrase" into the form field,...
Forum: PHP Feb 16th, 2008
Replies: 3
Views: 626
Posted By sagedavis
I agree with Dukane here.
A captcha system is perfect for this type of thing.
Also, if your site is the type that requires a user account for certain things, you should make the ability to message...
Forum: PHP Feb 2nd, 2008
Replies: 3
Views: 2,449
Posted By sagedavis
Thanks to both of you for your replys.
The second one worked (obviously).
I'm not sure what you mean, Naju, by making the inverted commas in proper order.

I am assuming that you are talking...
Forum: PHP Jan 30th, 2008
Replies: 3
Views: 2,449
Posted By sagedavis
I am having a sort of an issue with something.

I am writing a script where, the user inputs some information in a form, and based on that form, a new file is created.

The file which is created...
Showing results 1 to 40 of 51

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC