1,376 Posted Topics

Member Avatar for moaz.amin.37

I'll simplify this down to terms that some people might be able to understand if I'm not mistaken. when you put i++ in to a for loop it will add the value of "i" after the compiler has checked the middle comparison statement but will add 1 to "i" before …

Member Avatar for sepp2k
0
466
Member Avatar for centenond

In general practise, arrays with mass insertation is a bad idea like you have done in line 3 where as the better idea is to fetch from the database as you need them. Let's take for example your deploying a website like facebook and your using the above code for …

Member Avatar for centenond
0
175
Member Avatar for EJL242000

veedeoo is correct. A mysql statement my only contain one line even when it is conjoint like veedeoo did in his example. So in short mysql under the php api will not accept multiple line query's and will only accept single line query's. Fix that part of your code and …

Member Avatar for cwarn23
0
444
Member Avatar for navenchary

The best one that I have found is at: [URL="http://www.brandspankingnew.net/specials/ajax_autosuggest/ajax_autosuggest_autocomplete.html"]http://www.brandspankingnew.net/specials/ajax_autosuggest/ajax_autosuggest_autocomplete.html[/URL] and can be downloaded [URL="http://www.brandspankingnew.net/archive/2007/02/ajax_auto_suggest_v2.html"]here[/URL].

Member Avatar for kaushal_1
0
416
Member Avatar for debasisdas

I wonder what I'm going to do with this new [URL="http://www.pcworld.com/article/159150/ibm_readies_monster_supercomputer.html"]computer just arrived[/URL] in my mail. I might render a movie then play a game on it. *[I]Didn't mean to spam links but makes a good touch[/I]*

Member Avatar for James_28
8
16K
Member Avatar for njagi

[QUOTE=almostbob;833241]Utter BS a html table does not magically become an excell file by giving it a header. excell file format is comprised largely of characters outside any of the printable charactersets which have to be hex encoded.[/QUOTE] Well actually, excel has a html based encoder which allows files exported to …

Member Avatar for swss
0
3K
Member Avatar for rajeesh_rsn

I came across a similar problem 21 hours ago but have now found that a library has been made for excel files. Note that this library can only write to excel files an not read excel files. You can check it out at [URL="http://pear.php.net/package/Spreadsheet_Excel_Writer/docs"]http://pear.php.net/package/Spreadsheet_Excel_Writer/docs[/URL] At least that appears to be …

Member Avatar for arslanqamar
0
794
Member Avatar for iamthwee

I saw that this thread was still open so I thought I would enter in my opinions on this topic. Tip 1: When designing an authentication system you will want to keep all passwords and their associated hashes out of shared memory and away from public access. So for instance, …

Member Avatar for matrixdevuk
0
606
Member Avatar for Jibran12345

Try the following: $go=true while($row = mysqli_fetch_array($posts)) { $channel_name2 = $row['content']; $channel_name3 = $row['Posted_By']; $channel_name4 = $row['Date']; $channel_name5 = $row['id']; $channel_name6 = $row['type']; if ($go==true) { if ($channel_name6 = 'post') { $channel_name2 = $channel_name2; } else { $channel_name2 = "<img src='/videobox/data/uploads/images/$channel_name2' height='200px' width='100px'>"; } $go=false; } else { echo $channel_name2; …

Member Avatar for Josh Connerty
0
206
Member Avatar for Ambrish_1

I've for a long time I've been studying and experimented with just about every language that I could get my hands on so I have a fair idea about little things like this. The best platform for a web chat system is dependent on the amount of operations along with …

Member Avatar for Ambrish_1
0
245
Member Avatar for cwarn23

I have been trying to create a script that will fetch an image file, store it in a 2d grayscale non-alpha byte array based on the x and y axis so I can perform math operations then save that array back to a new image file. I have come close …

Member Avatar for JamesCherrill
0
259
Member Avatar for noel9

Alternatively I think what the op was trying to accomplish but does the exact same thing is as follows: <td><input type="text" name="c1" value="<?php echo ($p_id!="")?$a:$p_name; ?>"></td>

Member Avatar for cwarn23
0
125
Member Avatar for jib
Member Avatar for jakx12

To help, I have removed the second session tag and fixed the problem of detecting if a session is empty: [CODE=php]<?php session_start(); if(empty($_SESSION['username'])){ header("location: pleaselogin.php"); } ?> <div class=linkstop> <div class=textstyle> <h2><a href="your_acc.php"><FONT COLOR="#666666">Your Account</FONT></a> | <a href="inbox.php"><FONT COLOR="#666666">Inbox</FONT></a> | <a href="bloghome.php"><FONT COLOR="#666666">Your Blog</FONT></a> | <a href="yourwall.php"><FONT COLOR="#666666">Your Wall</FONT></a> | …

Member Avatar for wadeshuler
0
4K
Member Avatar for cwarn23

Does anybody know where I can find a c++ object oriented library for my c++ project where in short I can set each pixel on each frame to a specified color and saving the result to a .avi file preferably compressed. I know this sounds simple in theory but I …

Member Avatar for rubberman
0
404
Member Avatar for cwarn23

PHP is a nice language with features a wide range of automated features for memory but when it comes to mass processing for things like calculating pi or processing a database that's a couple dozen Gigabytes then you may run into a few troubles if things aren't done correctly. This …

Member Avatar for Gaetane
4
677
Member Avatar for cwarn23

Hi, recently I have wanted to learn how to write Windows native binary code to make a binary script which in one form or another will display hello world. I am hoping to eventually create a more efficient compiler using this method but as you should understand already, this is …

Member Avatar for Schol-R-LEA
0
380
Member Avatar for <M/>

I think the name says it all. When I first saw this topic I thought 5 cents or 5 seconds. Does that reviel anything to you. Means it's worth 5c and get's tossed out in 5s. Just joking here so don't be offended. But I was confused with the topic …

Member Avatar for vegaseat
0
423
Member Avatar for CProgrammmmer

There is a neat little function called sscanf() which will do all of that. Perhaps you should google all about it. http://www.tutorialspoint.com/c_standard_library/c_function_sscanf.htm

Member Avatar for Assembly Guy
0
125
Member Avatar for cakka

It is also possible to use strvariable.equalsIgnoreCase(input) and it will compare the two strings while ignoring the difference between upper case and lower case letters. So in this method A==a and B==b etc. But besides that there isn't any other method that I am aware of.

Member Avatar for stultuske
0
340
Member Avatar for jessicarobort

Personally the tools I like to use are a pen, some paper, stapler and a piece of software called open project. If however your talking about web development tools then it would be Notepad++, Putty, Eclipse and Maven. If your wondering why my web designing tools are so odd it's …

Member Avatar for Nmalik1
0
182
Member Avatar for chdboy

I may be no expert on the Microsoft sql server but a few things do appear obvious. One is that if you want the version 2008 to read the file then you will need to convert the file to a 2008 file aka the 655 or earlier datatype indicated in …

Member Avatar for chdboy
0
291
Member Avatar for venkyb47

The file:// protocal only works in localhost and instead you need to use the http:// address to your file. For example: If you were to type into the url bar to download the file www.example.com/peg/ then the code would be as follows. <a href="http://www.example.com/peg/">click me</a> Also the url demonstrated will …

Member Avatar for cwarn23
0
276
Member Avatar for kate.negley

To elaborate more line 20-29 is the error lines because the white spacing before those methods are what is causing the error. If you need whitespacing before the header function then place the html in a variable and display it after the all the header() functions have been called. Note …

Member Avatar for kate.negley
0
433
Member Avatar for gogs85

The rewrite rule does not allow for rewriting to the port inclusive. It would be something along the lines of the below: RewriteRule ^([^/])/([^/]).html$ /skolski_portfolio/index.php?id=$1&page=$2 [L] Also note that if that fails you can also try the below RewriteRule ^([^/]+)/([^/]+).html$ /skolski_portfolio/index.php?id=$1&page=$2 [L] Just remember that if you need to redirect …

Member Avatar for cwarn23
0
97
Member Avatar for mmcdonald

Also I know this isn't important but perhaps you should remove the quotations from the integers/numbers to improve efficency. Comparing two numbers is a lot faster than comparing a number and a string because of the amount of bits stored and the conversion required by php. For example: <?php $differenceInSeconds …

Member Avatar for mmcdonald
0
275
Member Avatar for CloudZELL91

Hi and thanks for posting. As per for fetching to appropriate entry within a range I would suggest storing the two numbers on each row in a seperate column which is the type double rather than a string as you have presented.After 4.21 and 5.0 are in two different columns, …

Member Avatar for cwarn23
0
265
Member Avatar for logicslab

Could you please present what problems you have ran into upon implementing the OAuth2 code. It is difficult to know how to advice when you have presented no examples to debug. Personally I would suggest removing simple_rest_client and following the docs for how to integrate the code as per the …

Member Avatar for logicslab
0
348
Member Avatar for android_gl

I believe the IBM guess and go algorithm which was invented in either the 1980's or the 1990's was a successful square root algorithm which is quote simple actually. As simple as the logic is it can be a pain to code so I shall explain. Basically you get the …

Member Avatar for cwarn23
0
325
Member Avatar for cwarn23

Hi, I was thinking of making a big website with an algorithm in place to decipher the multiple match pair chance of same hash occurance for long strings but the only problem is I need a database of hashes. A really big one at that. So does anybody know of …

0
119

The End.