- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 14
- Posts with Upvotes
- 9
- Upvoting Members
- 6
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
61 Posted Topics
Re: A simpler solution would be to export from Excel as a CSV and then use PHP's buitlin functions to parse a CSV file : http://php.net/manual/en/function.fgetcsv.php | |
Re: Are you allowed to stick some sneaky bits in? e.g. if the input is 1000 you start from 7919 and skip everything below 7919 ... | |
Take the following C structure: typedef struct dataPoint { tick * tickData; struct dataPoint * previousDataPoint; struct dataPoint * nextDataPoint; } dataPoint; Compiling on a 64-bit system with 8-byte words, this structure takes up 24 bytes (3 words) of memory. 24 % 8 = 0 ... so it is word … | |
I handle my email myself with open-source IMAP implementations, at work we have IBM Domino, I'm trying to get a feel for what yourself/businesses (you know of) use? Not so much why, but just to see rough market usage... Thanks. | |
Re: It's possible, I think whoever has the best service at the right time will come out on top, think about Instagram, people seem to love taking pictures these days and that grew like mad. So in a few years there will be a new craze, Google might capture it first … | |
Re: > 1500+ lines in a few (2) days... Either that includes a hell of lot of blank lines, copying and pasting, or there was no testing because that's just daft! | |
Re: Anyone know what SEO is? Don't think it was mentioned... ;) | |
So much of SEO advice around the internet, well what I've found anyway, is based on bloggers or people with content heavy sites. This is making it a little hard to find what I'm after. I can't see websites like Amazon, eBay, DaniWeb even, following this kind of SEO. So … | |
Re: Read the schema (nutrition for example): http://schema.org/NutritionInformation Actual example of nutrtion data, look at source: http://www.xanderfit.co.uk/food-database/view-food.php?id=5386 Look for itemprop, itemscope and itemtype, that's my site so if you have a specific question, then ask... As for SEO and SERP, it allows the search engines (and other things) to understand your … | |
Re: An argument is also called a parameter, if you've heard that before? An argument is a piece of data passed to a function to be used within that function. In the case of printf, the format string, the first argument, specifies three '%d' markers, which indicate to printf that there … | |
Re: I'm going to go on the basis I have the right idea for what you want, the calculation is as follows: You want the fee (referred to as $outcome, what you get) to equal a certain amount, lets take your example for $2, so... (($gross x 0.065) + 1.5) must … | |
Re: Oh my god, there is something for everything out there! | |
<div class="parent"> <div class="child"></div> </div> /* Final Width: 200px */ div.parent { width: 200px; } /* Final Width: 202px (with border) */ div.child { width: 100%; border: 1px solid #000000; } /* Final Width: 200px (with border) */ div.child { /* Width Inherited -- Assumed as 200px? */ border: 1px … | |
Field defined as DECIMAL(5,2), trying to INSERT (250.00). When query is performed remotely to DB server, it fails with 'Out of range value for column...', when query is performed locally on the DB server, the query works. The query works remotely when the value being inserted is 226.24 (yes, that … | |
Re: look in the user table within the mysql database ... is access defined 'user-xxx'@'localhost' or 'user-xxx'@'127.0.0.1' http://dev.mysql.com/doc/refman/5.1/en/access-denied.html "If you specify a host name when trying to connect, but get an error message where the host name is not shown or is an IP address, it means that the MySQL server … | |
Re: You can use server side scripting to write your own processing function, just look at each request's user agent, not all requests will have one but Google will be nice and always provide one. So, look at the request ($_SERVER variables in PHP) and check to see if the user … | |
Re: Shouldn't that be part of your learning, researching and determining which database to use? ;) But, looking at your goals, it would be simple to keep the database in one place and avoid offline mode, unless you have the database stored locally within the application depending on what it is … | |
Re: The first thing that stands out is : if(!$insert = mysql_query("INSERT INTO VALUES(NULL, '', '$image', '$image_full_name', '', '', '', '')")) `INSERT INTO` ... what, you've forgotten the table name. Should be `INSERT INTO tbl_name VALUES...` Also, consider using some other syntax to keep it a little cleaner (in my eyes), … | |
Re: You need to pass the original search query on to the product page, either with the URL or POST data depending on how you search for things currently. Once on the product page, use the original search term to re-run the query excluding the currently displayed item. | |
Re: [QUOTE=carrieathomer;1664954]I started programming when i was 13 guess what is the programming language.. it is BASIC - yes the old basic.[/QUOTE] Damn! beat me by one year, I was 14, wrote my first program in BASIC, number guessing game, I was proud! | |
Re: if(isset($_POST['submit'])) { ... } ... needs to be ... if($_SERVER['REQUEST_METHOD'] == 'POST') { ... } Also answered your other thread, same reason and solution. With the looks of it, you would expect to see the $_POST['submit'] variable set in your example above, but perhaps the 'type="submit"' causes it to be … | |
Re: Wrong use of `if(isset($_POST['submit']))` here, what you're looking for is: <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { // Validate and Execute Password Change Code ... } else { // Display Form } ?> [http://php.net/manual/en/reserved.variables.server.php](http://php.net/manual/en/reserved.variables.server.php) | |
Re: `find . -depth 1 -name "[tf]*[32]"` ... would do the job here, followed by ... `rm f*`. This is all done within one directory, it didn't look like you wanted to be recursive... Look up character classes in regular expressions. | |
Re: Hi-Lo Game, Prime Number Generator, Calculator ... | |
Hi Guys, Is there a way to put home videos on the iPhone, without it being classed as a Film or Music Video in iTunes? I like to think of Videos, Films and Music Videos all as separate groups... Unless Apple considers films, movies and videos to be the same. | |
Re: What could the spammer actually get from this ... one more email or am I missing something? | |
Re: A basic skeleton ... [CODE] <?php // Assume you have an expiry date stored as a timestamp. // You've queried the database for the expiry timestamp on the account in question. // Results have been put into $mysql_account_info using mysql_fetch_assoc(). // Check to see if the time now is equal … | |
Re: [QUOTE=zeroliken;1702518]Is it wrong to laugh while reading this? :D Anyway the kid does have a point and maybe he'll earn some extra bucks from the right people[/QUOTE] You not the only one having a laugh ... Isn't the point of a game to work your way up anyway! | |
Re: [QUOTE=coolbeanbob;1712106]I've worked in both large and small companies. I tend to prefer the smaller companies, but I might be happy working the small IT group of a larger company. Would you say there is not much need for DBA's in smaller companies? Or is there one person that can play … | |
Re: I've just done a google on your site, and it looks like other pages have been defaced by different people ... :( not good! | |
Re: I see you're trying to use smtp.google.com as your relay ... you can't just use any old smtp server. You need a server you're allowed to use, such as your ISPs relay, find that out and use that. | |
Re: [QUOTE]Most animals are solid muscle, and so much badder than any human--that's why it sucks so bad to get attacked by anything, even a dog.[/QUOTE] If you think about it, if we weren't as smart as we are, we would probably be doomed based on physical strength and the lack … | |
Re: or ... are you asking how most of unix utilities work? What appears to be several programs is actually just one program with multiple functionality bundled up, when the program is launched it looks at argv[0] to see what 'program' or functionality to run! | |
Re: blocblue's showing off :P it would be simpler to use ... [CODE]return mysql_result($query, 0);[/CODE] ... providing the caller can handle FALSE if it's returned. I'm hoping you've used [ICODE]if(category_exists('blahblah'))[/ICODE] ... | |
So here's the design: Workout_TBL(Workout_ID, Type, Notes, Date); Exercise_TBL(Exercise_ID, Exercise_Name, Type) Cardio_Entry_TBL(Cardio_Entry_ID, Workout_ID, Exercise_ID, Duration, Pace, Distance, Calories, Notes) - FK Exercise_ID and Workout_ID Strength_Entry_TBL(Strength_Entry_ID, Workout_ID, Exercise_ID, Weight, Repetitions, Sets, Notes) - FK Exercise_ID and Workout_ID A workout has many exercises associated with it of a certain type, which works, … | |
I have Snow Leopard and needed to install an update, the SMC v1.5 update. I downloaded it and installed it, appeared to install without error. I went to see if the update had been installed and it said it had been installed yet it also said I had 1 update, … | |
Re: This wouldn't come about during compilation, but when it runs there will be a problem. [CODE]for(i=0; i<CLASS_SIZE; i++) { // array size is 5 (CLASS_SIZE), variable i will equal 4 at some point ... // when i is 4, string[4+1] is outside desired memory bounds, so compare result will be … | |
Re: I'd say C is low, maybe low-medium at a push, it's only one step away from assembler... It can be written in whatever you like, languages are tools, algorithms are what you should concentrate on, theres more to ATMs though. Organisations don't like changing stuff that works so sometimes things … | |
Re: Your custom function parameters need looking at ... int ** a, a is a pointer to a pointer. int ** a[], a is an array of pointers to pointers later in the functions you call printf() with a[i][j] which is not an int ** if a = 0x00AA , a[i][j] … | |
Re: The scope of $dbc is local to connect() so displayFunction() cannot "see" it. The best way would be to have connect() return either the connection ID or FALSE. Then swap ... [CODE]if(!connect()) {[/CODE] for ... [CODE]$dbc = connect(); if($dbc == FALSE) {[/CODE] although, personally I would put the TRUE statement … | |
Re: Make a truth table for the logical tests ... [CODE]} while (yn != 'Y' || yn != 'y' || yn != 'N' || yn != 'n');[/CODE] if yn is equal to 'y' you wan't the loop to finish, except 'y' is not 'Y', 'N' or 'n' so that statement equates … | |
Re: [QUOTE]...it shows these errors now: "Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\register.php on line 53[/QUOTE] In my experience of this error, the cause is usually always a dodgy query returning FALSE or no connection to the DB. | |
Re: How about doing something on the side that you nurture into a business and slowly switch over from being employed by a company into your own company full time? That's what I'm doing, granted what I do at work is harder than my bit on the side but it's a … | |
Re: Create the table with a UNIQUE index on the Value field. | |
Re: If you mean idle as in sat on a webpage for too long and you want to force a logout then PHP can't help as it's server side. JavaScript would work on timers. Otherwise PHP using timers can only log out a user when they send another request after this … | |
Re: Your algorithm needs changing, 2 things I can think of that would break it: Searching for "brown" in "The quick brown fox." Searching for anything in a string without a period. | |
Re: [QUOTE=gerard4143;1675220]Its simple really. First, create the memory for your c-strings and then read into them. One method [code] #define ARR_SIZE 100 char cstring1[ARR_SIZE];/*100 character array*/ char cstring2[ARR_SIZE];/*100 character array*/ fgets(cstring1, ARR_SIZE, stdin);/*read into cstring1 from the stdin*/ fgets(cstring2, ARR_SIZE, stdin);/*read into cstring2 from the stdin*/ [/code][/QUOTE] And clean them straight … | |
Re: Being good at programming is not about how many languages you know, it's about being able to design efficient algorithms, languages are only tools. |
The End.