Like other said check your query. You can use code below
db_connect();
$qry="select * from company $where";
die($qry);
$result=mysql_query($qry);
if (!$result) {
die('Invalid query: ' . mysql_error());
}
$row=mysql_fetch_array($result);
Like other said check your query. You can use code below
db_connect();
$qry="select * from company $where";
die($qry);
$result=mysql_query($qry);
if (!$result) {
die('Invalid query: ' . mysql_error());
}
$row=mysql_fetch_array($result);
$myquery="SELECT pro_brand FROM product_information ORDER BY pro_id DESC";
$result=mysql_query($myquery);
if (!$result) {
die("Error:"mysql_error());
}
while ($row=mysql_fetch_assoc($result))
{
echo $row['pro_brand'];
}
post any error you find
Just to let you know I have written a tutorial for this and it has been in the holding que for the past 23 hours. At the moment I'm waiting for staff writers to approve it but when it's approved I shall give you the link.
Welcome back :)
Make sure per request you have single connection. When user base increases then start caching pages and if that overruns then think of more servers and sync them!
hi...the code is written in codeigniter...so theres a model view and controller...which do you need to see?
and yes a bad request.
the form points to a function in a controller file. what would be malformed in it? how can it work in ie but not ff?
thanks
post controller and view
how did it do with other browsers?
db_connect();
$qry="select * from company $where";
$result=mysql_query($qry);
if (!$result) {
die('Invalid query: ' . mysql_error());
}
$row=mysql_fetch_array($result);
post the error message here!
That's probably true for students, but not for real-world huge projects. VC++ 2010 beats the hell out of all other competitors when it comes to large-scale MS-Windows programs which contain hundreds of *.c, *.cpp and *.h files and multiple projects that depend on each other all of which are developed by a large development staff (20+programmers).
It boils down to managers and CTOs. If they say this or that you either obey or find another job. But I always avoid MSVC, but I think It have improved alot since I last tried (MSVC 2005). I think main reason is I'm content with my Current IDE
Here's my opinion on it (compilers, not IDE or build-systems):
Portability: GCC (GNU Compiler Collection)
Compilation Speed: BCB (Borland C++ Builder)
Code Optimization: ICC (Intel Compiler Collection)
Usefulness of compilation warnings and errors: GCC
Debugging capabilities: MSVC 2010 (Microsoft Visual C++ 2010)
Strict standard compliance: Comeau and ICC (using the EDG front-end)Overall, GCC is a great option and MSVC is also pretty good, expecially considering both are free. The BCB compiler is also very good but a bit isoteric (has the same back-end as the Delphi compiler, which has some visible impacts in the form of some non-standard things, but it also gives it a much better compilation speed). As for code optimization, nothing beats the Intel compilers on Intel systems, but GCC is coming close to catching up to ICC, while MSVC is still shamefully lagging behind by a significant margin (and I don't know the current status of BCB, but earlier versions used to beat both GCC and MSVC like a rented mule while almost matching up to ICC, but that is probably not the case anymore because ICC, GCC and MSVC have improved a lot since then). GCC has also improved (4.5+) a lot when it comes to compilation times (my code-base used to take about 45min to compile entirely in pre-4.5 versions of GCC, now it takes about 15min with 4.6.2 version).
Since you recommend GCC/MSVC, I would say Go for CodeLite/CodeBlocks IDE. They both allow either MSVC/GCC compiler plus they both bundle GCC as …
>sha2
I've never seen this hash, isn't it sha256?
My mistake, SHA2 is family not specific hasing algo. It should be sha256 or sha512
i have mfc exe file(created in vc++ 6.0 version).this file make window service file(ATL).can you help me???
thanks for helping
No you need this one!
He sent me a PM with the same question. That makes 3. :)
:)
If only he have read the signature
Post all questions in one of the boards. I will ignore all support questions sent to me in PM.
This is the third time I've seen this same question posted by the same person. Please see my answer in your other threads and PM.
AD,
OP have only 2 posts and you have seen three? Are you becoming older at 120kmph
friends
i am learning visual c++ 6.0.i need to know how to connect the database(oracle).can you tell me how to do??.give me some example....
mfc application connect to oracle database,any example ???
thanking you
Hi ardav, thank you for the reply,...yes,you are right i went back to the function and i used the wrong table Thank you for helping me ardav, but after fixing there is another error
it says...Fatal error: Call to undefined function sha2() in C:\wamp\www\edit\edit.php on line 27
it's in my while loop,the $conf where should i put this
$conf = sha2("mysaltyhash" . $row['idno'] . "anothersaltyhash");
Thanks in advance...
There is no such function in PHP
$input = "mysaltyhash" . $row['idno'] . "anothersaltyhash";
$conf = hash('sha2', $input)
I have been given acer 5100 and pressing power button it light momentarily and goes off. It will not boot anything, until I press power button and then hold down F9 or F10 keys then it will boot as usual and things goes well. I have even upgraded the bios to latest 3.1.3.
I'm running out of ideas and I thought I would ask. Since I'm not sure what the issue is then I though I would post here
THIS is really not helpfull, cant understand anything from it, provide link to download it for windows XP 32 bit.
Because it was not intended for you.
Don't resurrect old threads, let them lie dead.
Start new thread
Boost Asio is mentioned in this thread and I will check how does it relate to the Download Manager thing
Also there is C# article on writing DM here may be it can give an idea?
Thank you very much for your quick reply.
You are welcome and you can close the thread if it is solved!
I assume you have not yet studied OOP, I will say break down each part of problem into functions and in main just play around with functions depending one menu choice. Menu can be simple switch in while loop
Try to formulate this as it will give you much cleaner code and reuse your functions
I will be happy to help after you start that!
Ok, go to line 37 and delete the ',' - you need to place a ';' there instead. Also, further on line 202, take it out completely.
I think that a few of the commands are misspelt too. Check them - echo especially. :)
:-O
This isn't really the forum for it (not real sure which one is), but I can help you with RAPTOR. What's the issue?
@evstevemd:
RAPTOR is an acronym, it stands for "Rapid Algorithmic Prototyping Tool for Ordered Reasoning". It's a tool developed by the US Air Force Academy to teach programming and/or logic. Many other schools also use it in their "Intro to Programming" classes. It's free to download from http://raptor.martincarlisle.com and it only runs on Windows.
Thanks FBody,
didn't knew that!
If the problem is solved, mark it so!
Hi thanks for the links. I understand the difference and the main one is that the constructor does not get called with malloc. I guess my question is whats the difference between this:
vector< string > * u = (vector< string >*) malloc( sizeof(vector< string >)) ; *u = vector< string >(10,"test");
Note I have called the constructor after malloc, which correct me if i'm wrong calls the constructor of vector and puts in 10 string elements all intialised to "test".
and This:
vector< string > *u = new vector< string >(10,"test");
What does new do to the memory block other than call the constructor?
Thanks
You are opening the whole can of worms. You have to find how each compiler implements the new operation and reinvent the wheel. I guess internally they use malloc/free
Here is related question:
http://stackoverflow.com/questions/1031301/can-i-implement-the-factory-method-pattern-in-c-without-using-new/1031375#1031375
Well..achieved basic functionality like pause/resume etc..lot more to work like how to manage like increasing/decreasing the bandwidth of download etc..
How did you do that!
I don't know what it is Here is what I found on google, but you better start new thread on Python forum. you can close this and open new ones in Py Forum
http://www.dreamincode.net/forums/topic/158357-how-do-i-convert-python-into-raptorflowchart/
<<Back|Track5 ruleeeez
BT5 as other BTs is mostly for PenTesters and Sec. persons
Hahaaa!
What Kind of software developer is that? I would love to hire her!
Ardav,
I didn't noted that, thanks!
Ah! and what is the question now?
Why would you do such experiment in the first place?
If it is research you would need to know why C++ use new instead of malloc
Could you post or share your information regarding that because even i am curious regarding what libraries they use in C/C++ as I have some idea on how to do that in java.
Let me know if you are updated with any information regarding that..
I'm still trying to get trade secrets of download managers, so far I have not got one. I will post once I get any.
How does it go with Java?
Oh yes, you need to have a valid SSL cerificate which means money!
To get an Idea, if you have FF6, checking at url box while visiting SSL sites will give you name of company that provided cerificate
So yes, you need to "donate" some $$$
use sub string function to do truncation and then check the next character following last truncated word if it is not space then tokenize the truncated word using space delimiter and remove last token. Then combine the words using space.
There might be better way but that is what I can think of quickly!
No we cannot see what is spit on your computer and hence no help at all
So what is your Question?
RTM is the first procedure! Read it!
Then google is your friend!
http://www.php.net/manual/en/function.time.php#105547
http://stackoverflow.com/questions/365191/how-to-get-time-difference-in-minutes-in-php
Check what you mean from line 31 to 35!
no way in native php but you can use any script/executable in php as demonstrated above. Note, you must be careful in using methods as above especially if command can be called from outside the script. It might well be a bomb against your own app!
just to add on what Ardav have sone, ask password and verify the user is authentic before any update/delete of data!
during registration, generate unique code and ask them to change it during first login.
Then you will need ajax to change form structure on fly depending on combobox choice and. Then in PHP code you have a field like isTopSecret wich you set true if the man logged with sec code or false if he didn't. Then use that and may be other info if applicable to make restrictions of resources. I'm on limited resource so cannot view image.
we doing it for you? How much bucks do you have for that? ;)
clean, validate and verify all data and users, never trust any input
hash all your passwords and salt them with well long and random salt
each time there is database access operation requiring critical data, verify user by asking password
forms should have expirable tokens
there are many angles to conside and I would suggest you check with owasp.org sql cheetsheet
what about ODBC? Google will five you a quick example and explanations
Hi,
I know of two curl and libtorrent but I was just doing a study on what library/component/whatever you call it, is famous among download managers. I could not get information on FreeDownloadManager, Flashget, Multiget, DownloadThemAll et al.
Would you help me find what libraries do these use, especially for http, ftp, and torrent protocols
Cheers!
It will not work. This is just an HTML code. Unless you have plogin somewhere we cannot help you!
My Best recommendation after W3 Schools is Vikram's PHP 101
EDIT:
BradPitt had discussed it already,
Sorry!
Also instead of mysqli_procedure you can use prepared statement.
preg_match is a life saver when it comes to validation!