1,038 Posted Topics
Re: 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. | |
Re: [code=php]<?php echo nl2br($whatever) ?> <?php echo nl2br(substr($whatever)) ?>[/code] | |
Re: There's a lot, go read the manual. [url]http://php.net[/url] | |
Re: is this a real post or are you trolling? I can't tell | |
| |
Re: 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? | |
Re: 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 … | |
Re: Cron is what you're looking for. Give it a google and have fun. | |
Re: ECMA-48 SGR sequences are used for (somewhat) portable termal color. [url]http://en.wikipedia.org/wiki/ANSI_escape_code#graphics[/url] | |
Re: hopefully you have a [icode]WHERE[/icode] clause in that query and what is the datatype of that field? | |
Re: 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 = … | |
Re: [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. | |
Re: 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. | |
![]() | Re: We have a Linux forum, please post your question there. [url]http://www.daniweb.com/forums/forum111.html[/url] ![]() |
Re: [code=html]<a href="blah" title="This is your title">some link</a>[/code] You answered your own question | |
Re: You have to encode the brackets < >, otherwise they're interpreted as HTML tags and wont display to the browser. | |
Re: 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) | |
Re: 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) | |
Re: Going directly to the documentation usually helps: [url]http://dev.mysql.com/doc/refman/4.1/en/user-account-management.html[/url] | |
Re: You could try using [icode]$_SERVER['HTTP_REFERER'][/icode] but I'm not 100% sure on that. | |
Re: When using mysqli procedurally the database link comes first, then the query. Please read the documentation when you get errors like this | |
Re: 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. | |
Re: 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 | |
Re: MySQL Query Browser directly from MySQL [url]http://dev.mysql.com/downloads/gui-tools/[/url] | |
Re: 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. | |
Re: 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 … | |
Re: This should be in the HTML & CSS forum, this doesn't have anything to do with PHP. | |
Re: If you classes all extend SHAPE then [icode]drawShape(SHAPE* s)[/icode] will work because of liskov substitution | |
Re: "online information system" is unbelievably vague so I'll answer yes. | |
Re: [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 … | |
Re: 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. | |
Re: 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] | |
Re: 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. ![]() | |
Re: [url]http://dev.mysql.com/doc/refman/5.1/en/numeric-types.html[/url] Use the language documentation before going to the forums please. | |
Re: Google is your friend, we're not doing your homework for you. | |
Re: 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] | |
Re: 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" | |
Re: 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 … | |
Re: 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] = … | |
Re: [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. | |
Re: [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 … | |
Re: Try the [url=http://www.daniweb.com/forums/forum12.html]Linux forum[/url] | |
Re: Yeah, the problem is that PHP3 is [B]11 years old![/B]. Are you serious, PHP3? | |
Re: 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 … | |
Re: Read the FAQ that is right above your post on the PHP forum | |
Re: [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 … | |
Re: [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? | |
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. | |
![]() | Re: 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() ![]() |
The End.