8,970 Posted Topics
Re: If you use a tool like log4php for example, you define in your configuration file where the logging has to go. So if it some point you no longer want to log to file, you just change the configuration. Personally I prefer database, because it makes it easier to filter … | |
Re: From [URL="http://php.net/manual/en/functions.arguments.php"]the manual[/URL] (below example #4): "[B]The default value must be a constant expression[/B], not (for example) a variable, a class member or a function call." | |
Re: Start by looking at [iCODE]Memo.Lines.SaveToFile()[/iCODE], if you want to append to an existing file, have a look at [iCODE]SaveToStream[/iCODE]. The latter is IMHO easier to use when appending, because you can first load an initial file into it, and then pass it to the function. | |
Re: This should do it: [CODE=sql] INSERT INTO topics ( topic_type ) SELECT CASE WHEN sticky = 'y' THEN 1 WHEN announcement = 'y' THEN 2 WHEN announcement = 'a' THEN 3 ELSE 0 END CASE FROM setup [/CODE] | |
Re: That means your query failed, use: [CODE] $query = mysql_query("SELECT * FROM uživatelé WHERE username='$username'") or die(mysql_error()); [/CODE] ![]() | |
Re: It is possible if, instead of outputting the image, you output an image tag: [CODE] if (isset($_POST['submit'])) { $imagepath = "shirt7.jpg"; echo "<img src="$imagepath" />"; } [/CODE] | |
Re: If you provide a title attribute for your option tag, the standard browser tooltip should work just fine without JS. | |
Re: What exactly do you want to do? Send this page to a processing page? If so, specify [iCODE]action="process.php"[/iCODE] in your form tag. | |
Re: From [URL="http://php.net/manual/en/function.mysql-insert-id.php"]the manual[/URL]: "Retrieves the ID generated for an [B]AUTO_INCREMENT[/B] column [B]by the previous query[/B] (usually INSERT)." I've highlighted the important parts: 1. If he is not using an auto increment ID column, then this function returns zero. 2. You have to call this function directly after the INSERT query, … | |
Re: [CODE] .listen(8080); [/CODE] Shouldn't it be: [url]http://localhost:8080[/url] ? | |
Re: This [URL="http://stackoverflow.com/questions/4660934/how-does-one-disable-caching-in-jquery-mobile-ui"]thread on SO[/URL] might help. | |
Re: Try this one: [url]http://metabetageek.com/software/[/url] | |
Re: You are right. When you create a new instance of a class (with .Create), all variables (members) for that object (instance of a class) are initialized. You can give them whatever default value you want, if you use a [URL="http://www.delphibasics.co.uk/RTL.asp?Name=Constructor"]constructor[/URL]. You may want to read [URL="http://oreilly.com/catalog/delphi/chapter/ch02.html"]this[/URL]. | |
Re: Start a new thread for this, instead of hijacking an old one, and please use code tags. Do not forget to post your error too. | |
Re: Apparently you can use 'depends'. See [URL="http://stackoverflow.com/questions/3192234/jquery-validation-plugin-validate-with-some-condition"]here on SO[/URL]. | |
Re: Use is a mysql reserved word, use backticks. | |
Re: Try this: [CODE] $stmt = $dbh->prepare("SELECT MAX(end_date) AS end_date FROM Contract WHERE cust_id = '$username'"); [/CODE] | |
Re: You can use jQuery to make server calls and retrieve the information in parts. ![]() | |
Re: Last line always redirects to success.php. There is no error handling at all. Remove it and output the logarray instead. | |
Re: Have you tried this ? [CODE] $newstring = preg_replace('/\{\$(.*?)\}/', '\1', $string); // These two both work on my local server too $newstring = preg_replace('/\{\$(.*?)\}/', '$1', $string); $newstring = preg_replace('/\{\$(.*?)\}/', '${1}', $string); [/CODE] ![]() | |
![]() | Re: Maybe [URL="http://www.mequoda.com/articles/seo_campaign_management/how-to-find-niche-keyword-with-the-google-keyword-tool/#.TzVgReXN1V8"]this article[/URL] can help. Or [URL="http://www.webconfs.com/keyword-density-checker.php"]this tool[/URL]. ![]() |
Re: In addition, your isAjax function is mixing javascript with PHP variables, that will not work. | |
Re: Just use PHP to generate all the <OPTION> tags. | |
Re: Have you tried putting the xml tag in the first line of your file ? Perhaps short tags is enabled and causing this issue. | |
| |
![]() | Re: @simplypixie: [QUOTE=simplypixie;1755777]firstly you have out your die on the next line, php needs to be on one line[/QUOTE] Just a note: not true. You can use whitespace, including line breaks just fine. [QUOTE=simplypixie;1755777]thirdly you are trying to run two queries in your while loop.[/QUOTE] I really really don't recommend this, … ![]() |
Re: You can do this with a [URL="http://joseph.randomnetworks.com/2004/07/22/redirect-to-ssl-using-apaches-htaccess/"].htaccess rule[/URL]. Then there's no need to add it to every PHP page you have. | |
Re: Try to [URL="http://www.daniweb.com/business-exchange/looking-to-hire/web-development-job-offers/59"]Looking to hire[/URL] forum ;) | |
Re: If `Ready Versions` is your table name, then use the backticks. It does not allow a space like that. | |
Re: Your query looks just fine to me. What is the problem you have with it? Have you tried it in phpMyAdmin? | |
Re: A session is specific to a browser. So if one user is on your website with IE and Opera, then they both have a different session. Same thing for a different user on a different machine. | |
![]() | Re: There is no such option in the Google Webmaster Tools API. Perhaps if you specify what you are trying to achieve, we can find a solution/work-around. |
Re: You can use a SELECT query using LIKE and LIMIT. Start here: [url]http://php.net/mysql_query[/url] [url]http://dev.mysql.com/doc/refman/5.6/en/select.html[/url] | |
Re: Without a UNION the results will be different. You could try a JOIN on FOLIO_NO. | |
Re: You want a table with all country names ? They are available for download. If you can't find any, you can have mine. | |
Re: Try something like this: [CODE=sql] SELECT users.user_id, users.firstname, users.middlename, users.lastname, user_shift_schedule.shift_id, user_shift_schedule.effectivity_date FROM users u, user_shift_schedule uss WHERE u.user_id = uss.user_id GROUP BY uss.user_id ORDER BY uss.user_id, uss.effectivity_date DESC [/CODE] | |
Re: This [URL="http://davidlynch.org/projects/maphilight/docs/"]jQuery plugin[/URL] might be interesting for you. | |
Re: Look at the lines before this one. | |
Re: Do you want to get the select value in php after submitting the form, or do you want to change your page the moment the select changes ? ![]() | |
Re: You are missing <td> 's. | |
Re: [url]http://www.daniweb.com/web-development/php/threads/336438[/url] | |
Re: $_SESSION is an array. Don't you want to check $value ? | |
Re: It all depends on what you want to achieve. It is usually better to use the DOM for parsing HTML/XML. In few occasions where you can't load it due to parsing errors, a regular expression may get you there, but it can also cause a lot of headaches. Some things … | |
Re: You have specified 11 columns, and 12 values, make sure they match. | |
Re: Known bug, for work-arounds see: [url]http://stackoverflow.com/questions/2166008/is-it-possible-to-compare-a-mysql-timestamp-to-a-millisecond[/url] | |
Re: [url]http://code.google.com/p/jquerymulticolumnselectbox/[/url] | |
Re: [ICODE]mysql_query[/ICODE] returns [ICODE]true[/ICODE] even if there are no records deleted. Have a look at [URL="http://php.net/mysql_affected_rows"]mysql_affected_rows[/URL]. Use that to determine if there are either zero, or one or more rows deleted. | |
Re: So only a-z, 0-9, - and _ [CODE] if (preg_match('/[\w-]*/', $subject)) { # Successful match } else { # Match attempt failed } [/CODE] Update: As minitauros states, use a + instead of a * if you want to match at least a single character. |
The End.