1,376 Posted Topics
Hi and I am making a dll but the dll won't accept pointers due to what it links to. So below is my code and does anybody know how to make a string array without pointers? Also I'm using Visual c++ 2008. [CODE]//#pragma warning(disable:4996) //disable "depreciated function" warnings #include <windows.h> … | |
Re: Although you increased the memory limit and execution time I bet you didn't do the same for mysql. To do such a processing job you would need to change the memory limit and execution time for both mysql and php. Sounds like you only did it for php. Not sure … | |
Re: No wonder why the computer can't find the answer. The answer is so big the not even 64-bit can store the number. Instead there is a fatal error. Too many digits for the computer to read the answer or even process the answer... | |
Re: Couldn't you just use phpmyadmin to export your database as a .sql file or is there a reason behind having a custom script for the export. Phpmyadmin comes with most servers. | |
Re: Chances are your server has different settings or may not even have ffmpeg installed so what I would suggest is contacting your web host and asking for the ffmpeg configuration details and change your localhost ffmpeg to the same as the online server configurations. Then you will need to adjust … | |
Are there any rainbow tables api's available for sha1, crc32 and crc32b. | |
Re: [QUOTE=cane23]i am trying to create a login page so the staff will be directed to one place while the students will be directed to another. this code is still in the making hence no location function was included as yet. can any one help me with this code please[/QUOTE] Hey, … | |
Re: Here is the basic code. [CODE]<?php if (!empty($_GET['a']) && !empty($_GET['b']) && !empty($_GET['c'])) { $result=(int) $_GET['a']+ (int) $_GET['b'] - (int) $_GET['c']; echo 'Answer: '.$result; } ?> <form method="GET"> Total: <input type="text" name="a"><br> Add: <input type="text" name="b"><br> Minus: <input type="text" name="c"><br> <input type="submit" value="Calculate"> </form>[/CODE] Also you may want to read up … | |
Hi and I have made a simple Java function/method and for some reason it is not working. It doesn't show errors. It doesn't display results. It returns nothing and forces other things around it to do nothing. Below is my script. [CODE]private String get_url(String address) { String result=""; try { … | |
Hi and have been thinking about the big bang and wonder how did it all really start. Was it really like [URL="http://foxygoddess.multiply.com/video/item/11"]this theory[/URL] or the effect of somebody doing an intergalactic experiment in the parallel universe. So many theories some based on science some based on religion and yet there … | |
Re: Chances are cookies are not enabled in IE8. So go into your options and enable cookies then sessions should work. | |
Re: Try the following as you had a few bugs... [CODE]<?php include ('mysql.php'); if(isset($_POST['submit'])){ $username = mysql_real_escape_string($_POST['username']); $password = mysql_real_escape_string($_POST['password']); $sql = mysql_query("INSERT INTO users (user_id, username, user_password, user_regdate) VALUES('hi','$username','$password','beta')"); ?> <form action="register.php" method="post"> <input type="text" name="username"> <input type="password" name="password"> <input type="submit" name="submit" value="Register"> </form>[/CODE] [QUOTE=dinoservers.com;1089900]Hi, Iv'e been reading through all … | |
Re: [QUOTE=vegaseat;1091260]Well it's also a New Decade! Let's hope you all have a good one![/QUOTE] Scientists say the new decade starts in 2011 just like how the number century is one number ahead. Also I believe we still have another two months until new year as scientists are debating weather we … | |
Re: Well post the code of that file and we shall take a look at it for you Don't forget to use code tags... | |
Re: [QUOTE]Now I changed my mind and the site will only allow admins to login so now I need to modify the login just to suit admin needs but my problem is since it won't be wise to build a register script for admins how do I add new admins! I … | |
Hi and I am having trouble with one of the very most basics of java applets. That is putting the applet into a webpage and in that webpage specifying some parameters. The below is my code: [CODE=html]<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" ARCHIVE="chatroom$1.class, chatroom$2.class, chatroom$3.class, chatroom.class, extender$innerclass.class, extender.class" width="500" height="480"> <PARAM name="archive" value="chatroom$1.class, chatroom$2.class, … | |
Re: In case anyone is after the missing link to human creatures then I'm the missing link. | |
I have done some calculations and found that us humans have been counting leap years wrong in the past whatever years. It is not the year 2010 but instead 2509. The proof - check out the below php script which should display 2009 using timestamp ratios but instead displays a … | |
Re: I'm interested too. Where are all of these great video cms's as I need one too which doesn't require and specialized server software. | |
Re: Do you have the database software installed on the machine the script is being run on? This can be a problem with php-gtk as when you transfer the program to another computer then the database will need transferring too so that both the database and the script are on the … | |
Re: [QUOTE]is spammer the who wonder I.[/QUOTE] Now that's strangly worded. Reverse the words and you get the sentence. | |
Hi and I have heard that the australian internet filter (isp level) is due in 2010 which is comming soon... Just like thousands of other people around the nation I will be finding a way around the filter. I have read some isp's have already installed the filter for a … | |
![]() | Re: Try modifying along the lines of this [CODE]RewriteEngine On RewriteCond %{HTTP_HOST} ^nu.wetwork\.org\.uk RewriteRule ^(.*)$ http://www.nu.wetwork.org.uk/$1 [R=301,L] RewriteRule ^/?(.*)/(.*)/?$ /index.php?adran=$1&tud=$2[/CODE] ![]() |
Re: Try this: [CODE=php]<?php // Fill up array with names and type $a[]="Anna -silver"; // what i want when the name is $a[]="Brittany-silver";//being typed it would not show the name $a[]="Cinderella-gold";// it would only show the type $a[]="Diana-bronze"; //get the q parameter from URL $q=$_GET["q"]; //lookup all hints from array if … | |
Re: Is this the code your after [CODE]<?php if (isset($_POST) && !empty($_POST)) { $words=explode(' ',$_POST['name']); $sql='SELECT * FROM `table` WHERE'; foreach ($words AS $word) { $sql.=' `name`="'.mysql_real_escape_string($word).'" OR'; } $sql=substr($sql,0,-3); $r=mysql_query($sql) or die($sql.'<hr>'.mysql_error()); while ($row=mysql_fetch_array($r) { echo $row[0].'------'.$row[1].'<br>'; } } ?>[/CODE] | |
I have notice that some of the great features Daniweb offers have lately disappeared. Will the same happen to the advertisement feature? So far I have noticed that the number of people online at the top has disappeared and my favorite links to the right where the common forums are … | |
Re: I would suggest following a tutorial and tizag is really good for learning. [URL="http://www.tizag.com/ajaxTutorial/ajaxform.php"]http://www.tizag.com/ajaxTutorial/ajaxform.php[/URL] | |
Hi and I am making a maths library which will accept infinit digits but what is the best formula a computer can understand for devision. The only one I have come across so far is long devision but is there anything better? The following is the kinda formula I am … | |
Re: Is this using wamp, xampp or a vps? Judging by the error message your not using wamp/lamp/xampp so if your running a localhost test server then I would suggest using wamp. If however that is not the case then the general solution in wamp is to reinstall the package or … | |
Re: Do you mean something like this: [CODE]<select name="color[]" size=2 multiple> <option value="" selected>Select Item</option> <?php $colors=array('Blue','Green','Red','Yellow','White'); foreach ($colors AS $color) { echo '<option value="'.strtolower($color).'">'.substr($color,0,3).'</option>'."\n"; } ?></select>[/CODE] | |
Re: [QUOTE=firstPerson;1071798]Thats sounds good but the problem with that is the time it would take to asses every program. Making a game would not be a bad idea but it would be hard to evaluate it. Anyways, my suggestion was just a suggestion, as is yours. So I don't really know. … | |
Re: That code in it's design is flawed. The following line will cause a lot of trouble: [CODE]$sql1="UPDATE $tbl_name SET AcMake='$AcMake[$i]', AcCapacity='$AcCapacity[$i]', AMP='$AMP[$i]', qty='$qty[$i]' WHERE SiteId='$a'";[/CODE] The arrays placed into this query do not exist. From my guess you are trying to use $_POST values in some strange way. So I … | |
Are there any tutorials on defining a variable so that it can be used for any type. Example the following: [CODE]int main() { var myvariable; myvariable="this is a test"; myvariable=3.141592; myvariable=myvariable*myvariable; return 0; }[/CODE] But I don't know how to make it possible to make the above code possible. It … | |
Re: [QUOTE=Narue;1080038][B]>[B]>OPEN IT IN OFFICE 2OO7[/B] Good God. You're just like clueless users who send screenshots to tech support in a Word document. Offer plain text or everyone will assume you're trying to spread malware.[/QUOTE] Yer, I never opened it because people can easily append malicious code the the word documenting … | |
I have been searching on the web but can't find an answer to this question. How do I make a simple script that will read the functions in a php.net dll file where it can be used in c++. The main reason why I am trying to do this is … | |
Re: [QUOTE]Just wondering what other programmer do in their free time.[/QUOTE] Well in my free time I program all sorts of things. One of my latests projects that I have done is a dehasher. The more cpu you have the more you can dehash in shorter time. A project I am … | |
Recently I have installed php 5.3 on a pc and just like many posts on this forum have been saying the latest version of php does not guarantee 100% backwards compatibility. Especially for some oop parameters where the symbol "&" needs to be used before the variable at specific points … | |
Re: [QUOTE]What do you want to receive this Christmas? Why?[/QUOTE] I want to receive two copies of the latest super computers. A few TB of ram will do the job. Why? So I can calculate pi to the last digit and make my games run faster. G' I would have fun … | |
Re: Glad you could make it here and hope you enjoy your time with our friendly community... | |
Re: Here's a creative quote [QUOTE]Here is my latest creative quote[/QUOTE] Or another [QUOTE]Two weeks ago you were new to the language now you want to go pro. (selling code)[/QUOTE] That brings back memories... | |
Re: [QUOTE=Dave Sinkula;1075279]Unrelated, but now the list of forums I regularly visit on the top of the sidebar is gone? :( I wish my favorite or most-used features would quit being defeatured. *sigh* :( [edit]I guess it'll make it harder for me to follow the forum, so I'll visit less. Maybe … | |
Hi and as I have a lot of free time I thought I would ask if anybody would be interested in making or joining in open source projects. Currently I am working on a php forum project but other ideas are accepted. If you wish to start a new project … | |
Re: There is a nice function called the [URL="http://au.php.net/manual/en/function.mail.php"]mail()[/URL] function. Part of standard php and if the server is configured properly it should do the job. | |
Re: [QUOTE]Product Type:[Drop Down] Name: Date: Print[/QUOTE] Your post was kinda hard to understand as there was no direct question but if I am guessing the question right then I would say your product type drop down box can be created with a while loop looping through the results of all … | |
Re: The old .htaccess password protection. If your trying to protect information on your website then I would recommend setting up a php login system. And as for protecting pictures, simply place the pictures in a mysql database. But because of situations like this I would never recommend using the .htaccess … | |
Re: [QUOTE]Where do i set mysql server startup options in phpmyadmin.[/QUOTE] I do not believe phpmyadmin has an option to startup or restart mysql and in fact will report an error if mysql is not started. The best way to startup mysql is via command line and can be scheduled with … | |
Re: Winter because it is nice and warm during winter and in summer it is boiling hot. So a lot of electricity is saved during winter for not having the airconditioning on. In case your wondering why winter is warm it is because of global warming... | |
Hi and I have a simple question. I am designing a c++ application but I need to be able to import pictures from file (nearly all formats) then to place the pixel colors into an array. Also when retrieving the pixel colors it needs to retrieve the RGB scale and … | |
This topic is about asking for an additional feature to daniweb which would save some topic bumping and remove some of the annoyance of posting a new topic. Would it be possible to make the last 5 threads with 0 posts to automatically display/pin at the top of the list … |
The End.