1,038 Posted Topics

Member Avatar for UQ13A

Don't bump your posts like that, it's annoying. Where is $_SESSION['validation'] being set and did you make sure that they are in fact equal, there are some debugging steps you can do yourself before you go to a forum, and if you have tried to debug it yourself what steps …

Member Avatar for UQ13A
0
283
Member Avatar for moiseszaragoza
Member Avatar for ShawnCplus
0
125
Member Avatar for phoenix911

[QUOTE=phoenix911;876515]im not thinking at all.... all i can do is say [code] cout << num << "00"; [/code] or is there a way to multiply with <<??[/QUOTE] haha, that's thinking outside the box. Yeah, that'll work for "multiplying" by 100 but if you want to change the multiplier to 5 …

Member Avatar for jephthah
0
196
Member Avatar for retareed

Why are you putting your message text directly in the header and leaving the message argument blank? [url]http://php.net/mail[/url]

Member Avatar for retareed
0
161
Member Avatar for navi17

If its an interview question then I'll make sure I've waited a day or so to answer you. Lying about things you don't know will not get you a job.

Member Avatar for navi17
0
154
Member Avatar for ShawnCplus

If you've gotten the error "Supplied argument is not a valid MySQL resource" you're in luck because so has everyone else that has ever used PHP... ever. The error is caused by a number of things including: Your query is wrong, you failed to connect to the database or you …

Member Avatar for digital-ether
6
4K
Member Avatar for anna05

Why oh why did I even bother writing the FAQ that answers this very issue if no one is going to read it? It never stops baffling me when I see these posts.

Member Avatar for anna05
0
201
Member Avatar for sunilsinha

Usually when you have bold/italic text there will be separate ttf files for the standard font, the bold font and the italic font so just load those as separate fonts and write text using them.

Member Avatar for sunilsinha
0
851
Member Avatar for sunilsinha

When you draw text you have to tell the function the x and y positions. Build an array of strings by exploding on newlines then iterate over the array and modify the Y value based on the bounding box of the previous (see [url]http://us3.php.net/manual/en/ref.image.php[/url])

Member Avatar for ShawnCplus
0
76
Member Avatar for raul66

Your [icode]mysql_connect[/icode] call isn't in that code but I can tell that you don't have a mysql server setup on localhost.

Member Avatar for OmniX
0
113
Member Avatar for TomWalker

Sure, why not. (If you're looking for us to give you the code that's not going to happen)

Member Avatar for TomWalker
0
59
Member Avatar for lyardson

well php is a serverside language and extjs is Javascript (clientside) so unless you're using a framework there really is no integration between the two

Member Avatar for ShawnCplus
0
63
Member Avatar for adaykin

I have no idea what you're trying to do, you're already are passing those variables to the function. [code=javascript]buildString(this, data.cells[i].letter, x, y);[/code]

Member Avatar for essential
0
139
Member Avatar for ShawnCplus

I wrote this FSM to tokenize HTML for my syntax highlighter, it works pretty well and its fast but its currently ugly as all heck and could definitely use some love so if anyone is up for taking a whack at cleaning it up or giving me some speed hints …

Member Avatar for ShawnCplus
0
113
Member Avatar for .Dev.
Member Avatar for .Dev.
0
160
Member Avatar for itisnot_me

[QUOTE=itisnot_me;877087]is it possible to do some kind of str_replace and replace the thing with a php string. ex: [CODE]{name}[/CODE] to [CODE] <? myrow['name']; ?> [/CODE][/QUOTE] Well it sounds like you're trying to write a template parser in which case I'd recommend using a prebuilt one like Smarty or just searching …

Member Avatar for ShawnCplus
0
119
Member Avatar for re-volter

[code=javascript]window.location.pathname[/code] returns the string after the hostname. window.location is an object. If you're using firebug just type window.location in the console window and click on the output and you can see all of the properties you can access.

Member Avatar for mail2saion
0
106
Member Avatar for SKANK!!!!!
Member Avatar for dathai

OK, lets get one thing clear: AJAX involves sending requests to another server and processing the response. DHTML involves manipulating the DOM. Fancy effects are [b]NOT[/b] AJAX, they are DHTML. And to achieve the same effects as Flash in HTML you really have no other choice but to use a …

Member Avatar for ShawnCplus
0
55
Member Avatar for iThaos

In the way you're creating the variable, no. You can't do that in any language that does object orientation (or at least you shouldn't.) It wouldn't make any sense for Father to inherit the traits of Son. If you want to have a class that uses the traits of Son …

Member Avatar for ShawnCplus
0
105
Member Avatar for sbhavan

Well, my first question would be why disable CTRL+N? That still leaves CTRL+T (new tab in ie7) and it doesn't prevent them from just opening a new instance of IE7 the normal way. I personally despise when people alter my keyboard shortcuts and/or disable things on a site. If you're …

Member Avatar for sbhavan
0
121
Member Avatar for effective

Might want to try it yourself first looks like the description is pretty detailed. I'll wait while you give it a shot.

Member Avatar for effective
0
145
Member Avatar for juanki09

You're missing an ending parenthesis on almost all of those conditions. You don't need to disambiguate so much. [code=php] if ( (strlen($Type) > 0) && (strlen($Brand) > 0 ) && (strlen($Size) > 0 ) && (strlen($Price) > 0 ) )[/code] can just be [code=php]if ( strlen($Type) > 0 && strlen($Brand) …

Member Avatar for Fest3er
0
156
Member Avatar for charbel007

In members.php [code=php]// this will never do anything, you're never defining $UserName if isset($UserName) {echo $UserName; } // This does not do what you think it does If (isset($_POST['UserName'])) //Connect to DB and Get the mailing list $dbcnx = mysql_connect('myhost', '', '');[/code] [code=php]// This is what it actually does If …

Member Avatar for charbel007
0
134
Member Avatar for cjay175

Well you could do it either in PHP and Javascript or just Javascript. In PHP you would use [icode]$_SERVER['REQUEST_URI'][/icode] to get the request URI (who'd a thunk it?) and then give that to javascript to "paste" into the textbox. In purely Javascript you could use [icode]window.location.href[/icode] as the value to …

Member Avatar for cjay175
0
468
Member Avatar for tanmoy_india

A) You fail for using marthastewart.com as a reference site and B) This should be in the javascript section.

Member Avatar for ShawnCplus
0
60
Member Avatar for lamiv007
Member Avatar for ShawnCplus
0
176
Member Avatar for ganmo

[QUOTE=ganmo;873853]Hello I've a question when creating a class with functions. e.g. [CODE=javascript] function constructor() { this.myFunc = function() { return "Hello World"; } } [/CODE] do I have to write the function in that way? this.funcName = function() for every function in that class? Because when I tried to write …

Member Avatar for Airshow
0
111
Member Avatar for chandradyani
Member Avatar for lamiv007

No, the problem is that you aren't specifying the fields you want to insert into (this should be done even if you are doing them in order to save an internal lookup) [code=sql]INSERT INTO <table> (field1, field2) VALUES ('field1_value', 'field2_value')[/code]

Member Avatar for ShawnCplus
0
181
Member Avatar for veledrom

Requests (depending on the server) are usually handled in separate threads so my request to blah.php and your request to blah.php at the exact same time happen simultaneously*, in a non-blocking manner. If my request somehow fails, yours wont and vice versa. And unless something catastrophic happens and by some …

Member Avatar for ShawnCplus
0
92
Member Avatar for netdoer

[QUOTE=netdoer;872379]That worked. Thank you.[/QUOTE] This kind of made me angry. Do you understand why xan's fix worked? Do you understand the operator precedence that is taking place between your statements? Are you aware of necessary disambiguation to avoid these issues? Or did you just accept it as "OK, now it …

Member Avatar for netdoer
0
89
Member Avatar for aashishn86

[url]www.w3schools.com/jsref/jsref_obj_regexp.asp[/url] Regular expressions were made for this, they'll be hard to grasp at first but they'll be your friend in the end.

Member Avatar for aashishn86
0
147
Member Avatar for Hcaja

[url=http://lmgtfy.com/?q=php+mail+form]No, that has never been attempted, ever in the history of PHP.[/url]

Member Avatar for netdoer
0
78
Member Avatar for jayabalm

If the account has IMAP enabled use that. [url]http://lmgtfy.com/?q=php+imap[/url]

Member Avatar for ShawnCplus
0
30
Member Avatar for denxioz
Re: HELP

I'd actually have to disagree with that one. There are a number of things wrong with it as noted in the comments, there are much better around the net.

Member Avatar for ShawnCplus
0
85
Member Avatar for Morrac

[code=php]$day = {"Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday"}; [/code] Is this even working? That is a syntax error, that's now how you declare arrays in PHP.

Member Avatar for Fost
0
111
Member Avatar for CasTex

Your function call itself shouldn't have the =array(1), only the definition should.

Member Avatar for blocblue
0
108
Member Avatar for Helveticus

Firstly, sqred isn't a property, its a class. Secondly, how else would you use an image without sending a request? (There are ways to do it by base64-encoding the image but it doesn't work in IE). If you're asking how to set the background-position of the list-style-image you can't. You …

Member Avatar for almostbob
0
65
Member Avatar for bimaljr

Well I can guarantee you haven't tried what you said because you'd get a bunch of errors. A) You're not calling a function, B) you have overlapping/unclosed quotes, C) because of A you have unnecessary commas. Go look at [url]http://www.php.net[/url] because I can also guarantee you haven't looked there yet.

Member Avatar for nav33n
0
150
Member Avatar for BenzBoy

As Ezzaral mentioned there is absolutely no need for you to build an entire website for this. Sites like Flickr and Picasa exist solely for this, use them, they're free.

Member Avatar for BzzBee
0
109
Member Avatar for veledrom

The files you require don't have to be in the htdocs folder, they can be anywhere on the filesystem. Only files that you want people to access should be in htdocs. So good practice is to put them in a semantically divided folder layout below htdocs, ie., [code] / /webroot …

Member Avatar for HITMANOF44th
0
62
Member Avatar for genieuk

I think this is about the third post like this, you aren't actually querying. You have to call mysql_query, right now you just have it wrapped in parenthesis.

Member Avatar for genieuk
0
121
Member Avatar for Venom Rush

[code=php]$var = $variable.$i; $$var = $row[0];[/code] I'm not entirely sure why you would want to do this instead of use an array though.

Member Avatar for Venom Rush
0
129
Member Avatar for adyopo

mysql_db_query takes two[or three] parameters. The first is the database name, the second is the query, the optional third is the connection. Use php.net it's your friend.

Member Avatar for adyopo
0
109
Member Avatar for veledrom

Well if they block cookies they're blocking sessions as well since a user's SESSIONID is stored in a cookie.

Member Avatar for almostbob
0
97
Member Avatar for effective

So you just gave up on this problem and scrapped your previous work or have you just decided you'd let everyone else do it for you? I told you before you obviously have a strong enough grasp of the concepts (that is, unless you got the code you posted from …

Member Avatar for ithelp
0
107
Member Avatar for himerus

[QUOTE=HITMANOF44th;867517]i think this can be done by spliting and then just show the first 10 words or something like that i bet there is a easier way tho[/QUOTE] 6 year bump, new record! I think that qualifies for drinking an entire case!

Member Avatar for ShawnCplus
0
118
Member Avatar for genieuk

There is no way to create relationships between tables in the MyISAM engine, it all must be done in your business logic. Your tables must use InnoDB for foreign key constraints. I'll let you look up the info on InnoDB foreign key constraints.

Member Avatar for ShawnCplus
0
132
Member Avatar for vidhyaponnusamy

[QUOTE=almostbob;867059][noparse][code=pet peeve][/noparse] sql time or php date are 10 decimal digits representing the number of seconds from 1/1/1970 (doh,, 1970 or 1980? ) human readable representations of date() or time() are unneccessary and waste processor time the computer uses digits better than text representations thus time() + 300 = five …

Member Avatar for BzzBee
0
95

The End.