1,038 Posted Topics

Member Avatar for mgn2683

The error is most likely from an invalid query that is using `paysonllc_db1.email` as the table in the SELECT clause, ie., [icode]SELECT * FROM paysonllc_db1.email[/icode] which would throw an error because the FROM statement only takes a table name.

Member Avatar for josuemunoz
0
190
Member Avatar for brianzet

[code=php]<?php echo nl2br($whatever) ?> <?php echo nl2br(substr($whatever)) ?>[/code]

Member Avatar for brianzet
0
233
Member Avatar for emarshah
Member Avatar for ShawnCplus
0
100
Member Avatar for SKANK!!!!!
Member Avatar for BigFormat
Member Avatar for RoninMastaFX

What the heck? Why did you do this? [code=c++]const double pi = 3.1415926535; const double Pi = 3.1415926535; const double pI = 3.1415926535; const double PI = 3.1415926535;[/code] What were you trying to accomplish?

Member Avatar for jephthah
0
135
Member Avatar for sagedavis

Well if they are logged in as a user just store it in session data, the ID of that user at least so you can check when you display the content what the user level is in the database, like [inlinecode]SELECT level FROM user WHERE userID = $_SESSION['userID'][/inlinecode] Something along …

Member Avatar for neekworld
0
438
Member Avatar for liferentsus
Member Avatar for ShawnCplus
0
68
Member Avatar for kangarooblood

ECMA-48 SGR sequences are used for (somewhat) portable termal color. [url]http://en.wikipedia.org/wiki/ANSI_escape_code#graphics[/url]

Member Avatar for Tom Gunn
0
113
Member Avatar for veledrom

hopefully you have a [icode]WHERE[/icode] clause in that query and what is the datatype of that field?

Member Avatar for urtrivedi
0
72
Member Avatar for chuckwilliams

A), use [noparse][code][/noparse] tags B) Don't nest comments (If you would've used code tags you would have seen the error, or you could just use an editor that actually highlights your code) [code=php] /* case 'latestnews': /** * Show latest news for My Blog **/ if(cmsVersion() != _CMS_JOOMLA15) $title = …

Member Avatar for ShawnCplus
0
85
Member Avatar for michael123

[QUOTE=scandalouskk;897916]how to display a string in php without using echo command?? plz do reply me[/QUOTE] Make your own thread, don't revive 4 YEAR OLD THREADS.

Member Avatar for ShawnCplus
0
4K
Member Avatar for HITMANOF44th

As always make sure that $looky is what you think it is by [icode]var_dump[/icode]ing it. Also, manually look in the database to make sure that record is actually there.

Member Avatar for HITMANOF44th
0
169
Member Avatar for aakaashjois

We have a Linux forum, please post your question there. [url]http://www.daniweb.com/forums/forum111.html[/url]

Member Avatar for aakaashjois
0
89
Member Avatar for sureronald

[code=html]<a href="blah" title="This is your title">some link</a>[/code] You answered your own question

Member Avatar for sureronald
0
895
Member Avatar for sureronald
Member Avatar for andrewsCWD

You have to encode the brackets < >, otherwise they're interpreted as HTML tags and wont display to the browser.

Member Avatar for prateek shri
0
97
Member Avatar for lisagk

Well do you want the SQL syntax or do you want to know how to do it in C++ because you need separate libraries to do things like that in C++ (If I had to recommend one I'd suggest SQLite)

Member Avatar for siddhant3s
0
91
Member Avatar for Cloneminds

Don't forget the braces around your inner if and else statements, take a look in your book on why to do this (if it explains it)

Member Avatar for dsladev
0
164
Member Avatar for TechTJ

Going directly to the documentation usually helps: [url]http://dev.mysql.com/doc/refman/4.1/en/user-account-management.html[/url]

Member Avatar for TechTJ
0
131
Member Avatar for BrettOwnz

You could try using [icode]$_SERVER['HTTP_REFERER'][/icode] but I'm not 100% sure on that.

Member Avatar for BrettOwnz
0
93
Member Avatar for shrive22

When using mysqli procedurally the database link comes first, then the query. Please read the documentation when you get errors like this

Member Avatar for ShawnCplus
0
113
Member Avatar for haven_u
Re: CSS

div matches a div tag, p matches any p tag under a div and * matches anything under the p tag. It's called CASCADING Stylesheets for a reason.

Member Avatar for ShawnCplus
0
69
Member Avatar for darlenesage

Well whether you're using a GUI or not you're writing HTML. And GUI is a very broad term, I'm pretty sure your teacher meant WYSIWYG. Go google WYSIWYG and you'll have your answer. Future note: use Google before asking your homework questions here

Member Avatar for ShawnCplus
0
46
Member Avatar for 3xxx

MySQL Query Browser directly from MySQL [url]http://dev.mysql.com/downloads/gui-tools/[/url]

Member Avatar for ShawnCplus
0
77
Member Avatar for Remulon

Google is your friend. They're called lightboxes. Lightbox, thickbox, tightbox are all examples of libraries that have already been built to create modal dialogs.

Member Avatar for Remulon
0
132
Member Avatar for poeticinsanity

This depends on the database engine you're currently using. By default MySQL uses MyISAM (Also uses MyISAM internally). However, MyISAM only supports table-level locking so when you're writing it locks the entire table. InnoDB on the other hand uses row-level locking along with a host of other features like foreign …

Member Avatar for poeticinsanity
0
107
Member Avatar for ChrisJ

This should be in the HTML & CSS forum, this doesn't have anything to do with PHP.

Member Avatar for ShawnCplus
0
105
Member Avatar for Zcool31

If you classes all extend SHAPE then [icode]drawShape(SHAPE* s)[/icode] will work because of liskov substitution

Member Avatar for Zcool31
0
231
Member Avatar for kaex21
Member Avatar for Atli
0
85
Member Avatar for nickj

[QUOTE=nickj;893047]Hi, I have the following query, which does not return any results. [ICODE] select (sum(t.minutes) / 60),d.fiscalmonthnum from kpifntime t inner join kpiddate d on t.datekey=d.datekey inner join kpidacts a on t.activitykey=a.activitykey inner join kpidfees f on t.feeearnerkey=f.feeearnerkey where a.activitycode in (11,12,13,14,15,16,17,18) and d.fiscalmonthnum=11 and d.fiscalyearnum=2009 and t.feeearnerkey=520 group by …

Member Avatar for Atli
0
241
Member Avatar for Arctic wolf

PHP does not work like C/C++. When a page refreshes its previous state is gone, it has no knowledge of what happened before. You must save variables if you want to carry them across pageloads with either a database, sessions, cookies or files.

Member Avatar for Arctic wolf
0
126
Member Avatar for hmajidy2001

echo $fname to make sure it's actually the value you think it is, also [icode]b[/icode] as far as I know is not a valid fopen flag. [url]http://php.net/fopen[/url]

Member Avatar for hmajidy2001
0
4K
Member Avatar for nigelburrell

Browsers do that by default. They will submit the form you're currently on when you hit enter(unless you're in a textbox) you don't have to do anything special.

Member Avatar for diafol
0
2K
Member Avatar for SKANK!!!!!

[url]http://dev.mysql.com/doc/refman/5.1/en/numeric-types.html[/url] Use the language documentation before going to the forums please.

Member Avatar for Atli
0
2K
Member Avatar for navi17
Member Avatar for digital-ether
0
121
Member Avatar for ROTC89

Well there's a whole lot wrong. A) You didn't use code tags, B) You're using [icode]global[/icode] instead of passing arguments to the functions, C) You're duplicating a function for no reason, D) You're not taking advantage of built-in language functions [url]http://www.php.net/arrays[/url]

Member Avatar for ROTC89
0
148
Member Avatar for Josh Connerty

Simple fix, don't use IIS. Get XAMPP or WAMP. Also, in your php.ini file try not specifying "C:" just put "\PHP\ext\php_mysql.dll"

Member Avatar for Josh Connerty
0
140
Member Avatar for liferentsus

This is a bit of a tricky one but you could do something along these lines: [code=php] $somefile = file('blah'); $rows = array(); $row_counter = 0; foreach($somefile as $line => $content) { if(!preg_match('/^[0-9]+?\|/', $content)) { $rows[$row_counter] .= $content; } else { $rows[++$row_counter] = $content; } }[/code] [icode]$rows[/icode] should contain your …

Member Avatar for liferentsus
0
170
Member Avatar for HITMANOF44th

A) Invert that [icode]$_SESSION['username'][/icode] condition to just exit or something if it's not present instead of wrapping ALL of your code in an if B) Use a bit more meaningful variable names than ij. C) Assuming that $row has exactly 11 fields [code=php] // replace $index[$ij] = $row[0]; $sdate[$ij] = …

Member Avatar for HITMANOF44th
0
99
Member Avatar for spiriad

[url=http://bespin.mozilla.com/]Mozilla Bespin[/url] Isn't too bad but I would suggest getting used to desktop editors. Relying on the cloud is a bad idea.

Member Avatar for digital-ether
0
133
Member Avatar for Vermillion

[QUOTE=Vermillion;891151]Thanks a lot for the links. ArkM, and thanks a lot for the down-to-earth explanation, siddhant3s :). So it is basically a way of saving myself for making overloaded functions, right? Or do they have another use? And I am assuming you can use templates in OOP too? EDIT: And …

Member Avatar for ShawnCplus
0
117
Member Avatar for xixpsychoxix
Member Avatar for xixpsychoxix
0
71
Member Avatar for beertje

Yeah, the problem is that PHP3 is [B]11 years old![/B]. Are you serious, PHP3?

Member Avatar for beertje
0
99
Member Avatar for anilopo

what is wrong with that? - Well, a pure virtual function has no implementation itself, it forces the descendant classes to actually implement it so calling it would obviously toss an error. how can I avoid it? - Make sure whatever class you're passing to whatever method that is calling …

Member Avatar for ShawnCplus
0
262
Member Avatar for iversia
Member Avatar for sirge

[QUOTE=sirge;888446]Hi guys, I have a two functions in ajax; say for example the functions are...function AB() and function BC in my form I have a this textbox which calls the function AB() through onKeyUp event. I successfully made calling the said function, but what if I'll be calling the two …

Member Avatar for ShawnCplus
0
103
Member Avatar for Plyswthsqurles

[QUOTE=Plyswthsqurles;890819]Thanks for the response but i actually have tried that and i still get a connection error. Any other thoughts?[/QUOTE] If you get a connection error than it's not the query that is wrong. What EXACTLY is the error being displayed to the page?

Member Avatar for Plyswthsqurles
0
316
Member Avatar for ShawnCplus

Was there an issue with the mail server because I didn't get any notification emails all weekend and all of a sudden it's spamming my inbox with about 5 emails every few minutes.

Member Avatar for blud
0
101
Member Avatar for laetitia--

There's only one "guideline" to avoiding that error. Don't output anything to the page (be that echo, print, print_r, var_dump, etc.) before you call header()

Member Avatar for laetitia--
0
143

The End.