1,376 Posted Topics

Member Avatar for cwarn23

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> …

Member Avatar for Ancient Dragon
1
205
Member Avatar for sam023

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 …

Member Avatar for cwarn23
0
2K
Member Avatar for NicAx64

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...

Member Avatar for mrnutty
0
140
Member Avatar for hno

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.

Member Avatar for cwarn23
0
127
Member Avatar for Swapna Revankar

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 …

Member Avatar for cwarn23
0
72
Member Avatar for cwarn23
Member Avatar for cwarn23
0
218
Member Avatar for cane23

[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, …

Member Avatar for cwarn23
0
100
Member Avatar for samyehftw

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 …

Member Avatar for almostbob
0
1K
Member Avatar for cwarn23

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 { …

Member Avatar for padtes
0
126
Member Avatar for cwarn23

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 …

Member Avatar for Dope 7560
0
318
Member Avatar for dmotah

Chances are cookies are not enabled in IE8. So go into your options and enable cookies then sessions should work.

Member Avatar for cwarn23
0
93
Member Avatar for dinoservers.com

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 …

Member Avatar for vaultdweller123
0
113
Member Avatar for GrimJack

[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 …

Member Avatar for cwarn23
0
183
Member Avatar for izone

Well post the code of that file and we shall take a look at it for you Don't forget to use code tags...

Member Avatar for izone
0
118
Member Avatar for DARK_BYTE

[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 …

Member Avatar for DARK_BYTE
0
201
Member Avatar for cwarn23

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, …

Member Avatar for c_blimey
0
134
Member Avatar for mrnutty

In case anyone is after the missing link to human creatures then I'm the missing link.

Member Avatar for VernonDozier
-1
269
Member Avatar for cwarn23

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 …

Member Avatar for vegaseat
-3
183
Member Avatar for SteveJones91

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.

Member Avatar for cwarn23
0
63
Member Avatar for adrinis

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 …

Member Avatar for cwarn23
0
206
Member Avatar for vegaseat

[QUOTE]is spammer the who wonder I.[/QUOTE] Now that's strangly worded. Reverse the words and you get the sentence.

Member Avatar for vegaseat
0
97
Member Avatar for cwarn23

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 …

Member Avatar for vegaseat
0
192
Member Avatar for diafol

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]

Member Avatar for diafol
0
341
Member Avatar for gedas

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 …

Member Avatar for gedas
0
65
Member Avatar for buranda

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]

Member Avatar for as.bhanuprakash
0
88
Member Avatar for cwarn23

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 …

Member Avatar for Dani
0
155
Member Avatar for gedas
Re: ajax

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]

Member Avatar for gedas
0
67
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
101
Member Avatar for moerpheus

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 …

Member Avatar for moerpheus
0
94
Member Avatar for iraberyl

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]

Member Avatar for iraberyl
0
105
Member Avatar for Ancient Dragon
Member Avatar for mrnutty

[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. …

Member Avatar for cwarn23
1
283
Member Avatar for ayesha789

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 …

Member Avatar for cwarn23
0
179
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
134
Member Avatar for mindfreaks2000

[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 …

Member Avatar for cwarn23
-7
173
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
157
Member Avatar for mrnutty

[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 …

Member Avatar for ddanbe
1
309
Member Avatar for cwarn23

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 …

Member Avatar for Atli
2
155
Member Avatar for saisai81

[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 …

Member Avatar for saisai81
0
149
Member Avatar for abebudi

Glad you could make it here and hope you enjoy your time with our friendly community...

Member Avatar for abebudi
0
133
Member Avatar for jwxie

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...

Member Avatar for MosaicFuneral
0
61
Member Avatar for Dave Sinkula

[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 …

Member Avatar for lllllIllIlllI
0
321
Member Avatar for cwarn23

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 …

0
162
Member Avatar for prabhakar13

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.

Member Avatar for cwarn23
0
95
Member Avatar for NoID

[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 …

Member Avatar for NoID
0
67
Member Avatar for wonderland

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 …

Member Avatar for wonderland
0
106
Member Avatar for nccsbim071

[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 …

Member Avatar for phpbeginners
0
140
Member Avatar for dvdreplication

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...

Member Avatar for characteredu
-4
131
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
103
Member Avatar for cwarn23

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 …

Member Avatar for Dave Sinkula
0
164

The End.