8,966 Posted Topics
Re: [url]http://stackoverflow.com/questions/5444207/using-arrays-without-putting-the-key-in-quotes[/url] It is correct PHP to use quotes, although it works without. This can lead to errors, should you have a const defined with that name for example. [code] $row = array ('user' => 'foo', 'myusername' => 'bar'); define('user', 'myusername'); echo $row[user]; echo $row['user']; [/code] So, my guess it it … | |
Re: The ampersand (&) should be escaped to [iCODE]&[/iCODE] | |
Re: I'm wondering. I can't see a javascript reference to menu. Is class="menu" only used for css? If so, you could work around it i think. | |
Re: You need google site search (payed version) to get XML response. | |
Re: [code]INSERT INTO table (field) VALUES (value) ON DUPLICATE KEY UPDATE field=value[/code] You need to specify keys to get this to work. See the mysql docs for more info. It is quite powerful and fast. | |
Re: [CODE] if (preg_match('/<!-- Begin Code -->(.*?)<!-- End Code -->/s', $subject)) { # Successful match } else { # Match attempt failed } [/CODE] | |
We are switching to Scrum at work. Although we get help starting this up and get training for it, I'm looking for some good books on the subject. Please do not post just a title, but also an explanation as to why I should read it. | |
Re: Download the page into a string and [URL="http://php.net/preg_match"]grep[/URL] what you need. | |
Re: [QUOTE=Planetdune;1466231]Sooo I was trying this: ShellExecute(Handle, nil, PChar(dir\myprogram.exe'), PChar(dir\dir\myfile.upx'), nil, SW_SHOWNORMAL); This does not work however :( It seems to be just opening "myprogram.exe" without loading "myfile.upx"...[/QUOTE] If this does not work, that means that myprogram.exe is not equipped to open files specified on the command line. Maybe you can … | |
Re: Your rss reader should provide this (Internet Explorer does this), but not all do (Opera doesn't). | |
Re: Perhaps this tool can help: [url]http://phpexcel.codeplex.com/[/url] | |
Re: This may help: [url]http://www.codeguru.com/forum/showthread.php?threadid=507198[/url] | |
Re: Start with writing smaller queries that solve part of the problem. Later on try to combine them to get a more complex result. If you have specific questions, post your query/queries and trouble/error here. | |
Re: Just put it in a function/procedure and call it. Define it like this: [CODE] interface TForm1 = class(TForm) private procedure RepetitiveTask; end; implementation procedure TForm1.RepetitiveTask; begin // ... end; [/CODE] | |
Re: From the timezone point of view I'd agree. Since you don't have a programming background, how do you know your not being charged double of what the workload is worth ? You have to consider cultural differences, international/local law, perhaps even export restrictions. Don't take this too lightly. | |
Re: [URL="http://www.alistapart.com/d/randomizer/rotate.txt"]Link[/URL] works just fine here. | |
Re: Set [iCODE]StrictDelimiter[/iCODE] to [iCODE]True[/iCODE] to disable the space delimiter. | |
Re: I wouldn't call vBulletin a mini-project, but hey. First make a plan, containing your required features. Coding comes later. | |
Re: They're just div's. What do you have so far ? Is the problem with some query or with the display of the query's output ? | |
Re: If I click on 'Web Development' main menu item, then I get redirected to 'Community Center' | |
Re: A Word document is a binary format, and would need a parser to read it. You could use the Word XML format and parse it using SimpleXML or the likes. | |
Re: No Word installed ? | |
Re: Wamp and probably [URL="http://www.apachefriends.org/en/faq-xampp-linux.html#oci8"]Xampp[/URL] can have the OCI8 extension. Check if it is enabled. More documentation is [URL="http://php.net/manual/en/book.oci8.php"]here[/URL]. | |
Re: Are you sure that it can find the txt file (did you try a full path for that too) ? PHP's current path can be different than the one on your console. | |
Re: Yes, I think you just need to sum the returned array. AFAIK the [URL="http://code.google.com/apis/analytics/docs/gdata/home.html"]Google Data Export API[/URL] does not have requests for totals. I recommend you look at these docs, so you know what is available for you. | |
Re: Quoted from cscgal: "... Members earn points for interacting with the website by logging in, posting, updating their profile, uploading an avatar, etc. It's just a fun little statistic for member profiles that shows the participation level in the community, outside of posting." | |
Re: Passing a variable like that is the right way. Not sure why you have the sender in the parameter list, unless it is a default event. Some more information on the structure of your code may shed some light on the situation. | |
Re: Check the ID as xylude states. ASP.NET changes them when you run you're page. You're better off using a class. | |
Re: It depends a bit on what you want to do with the results. If you want to show them all, you could use multiple TWebBrowser's and let each one get a page. | |
Re: If you have a timestamp column in your table, then you can do the following, just before your insert (or as part of your insert query, or as an insert trigger): [code=text] SELECT CONCAT( DATE_FORMAT(NOW(), '%b/%Y/'), ( SELECT 1 + COUNT(*) FROM bills WHERE YEAR(`timestamp`) = YEAR(NOW()) AND MONTH(`timestamp`) = … | |
Re: Something like [URL="http://www.pritaeas.net/demos/jq-dropdown/"]this example[/URL]? You can take the ajax code from the page if you need it. | |
Re: Show the query you are using to get these comments. | |
Re: Perhaps short code tags are disabled, so you need to use [iCODE]<?php[/iCODE] instead of [iCODE]<?[/iCODE] | |
Re: What error do you get ? Are you sure fsockopen is enabled ? | |
Re: Generate a list of numbers, pick an index from this list, then delete it. | |
Re: You want to develop something like ShoutCast, or internet radio ? Then you'll need a streaming audio server. | |
Re: What kind of database are you using ? An SQL file is not a database, you need to run it on one. | |
Re: The only thing I can think of is that you can use Format() instead of FormatFloat() if you want to align your 'Amount' values correctly. | |
Re: Please read [URL="http://www.daniweb.com/forums/thread191031.html"]this thread[/URL]. Most likely there is an error in your sql statement. | |
Re: That code will fail. But it will not affect your queries if they specify the database names. So you can use it to select one of them, or just remove the line entirely. Just a sample query: [code=sql] SELECT * FROM database1.table1 t1, database2.table2 t2 WHERE t1.id = t2.id [/code] | |
Re: This is an sql issue. Mysql dates are in the format yyyy-mm-dd. Another method would be to use the mysql now() function, which represents the current date. Also DELETE * FROM is invalid. [CODE]$sql = "DELETE FROM cms_table WHERE delete_date >= NOW()";[/CODE] | |
Re: These kind of settings are specific CreateParams of a window, so only if your target application provides some API to change it. Otherwise you can't. | |
Re: I think there is a flaw using [iCODE]isset($_GET['id'])[/iCODE]. It is always set, because it is part of the form. I think you need to replace it with something like [iCODE]$_GET['id'] > 0[/iCODE] | |
Re: In that section you have to add your own ip address. In the connection code you just use the ip address of your server. | |
Re: If there is no API, then how are we able to help you ? At least specify which one you are using, or the website. |
The End.