1,376 Posted Topics
Re: This comes down to design. If you are using mysql then you should be able to use the where clause to select so that for example [ICODE]SELECT * FROM `table` WHERE `club`="A"[/ICODE] Then all you need to do is store in a session what club the user is in and … | |
Re: If your commented line 53 was the bug then try the following. [CODE]<? //dim $DataConn, $cmdDC, $rsDC; //dim $Item, $strVendorType; //dim $iFieldCount, $iLoopVar; $strVendorType = @$_GET["VendorType"]; //If strVendorType = "" Then strVendorType = "Miscellaneous" //Response.write "user selected " & strVendorType & "<br>" // Finally we've got all our info, now … | |
Re: To elaborate on that Below are three examples of doing the same thing [CODE]<?="Hello World!"; ?> <? echo "Hello World!"; ?> <?php echo "Hello World!"; ?>[/CODE] Now as you should know they all do the same thing providing php is configured correctly. However as of Php 5.3.0 in xampp the … ![]() | |
Re: I prefer php as asp is so overly complex and poorly designed. Asp reminds me too much of Basic and as I am a Fop believer (Function Oriented Programming) I much prefer php. | |
Re: [QUOTE=Will Gresham;1155128]Or $25 for 6 months :P I would say that paying is better than ABP or NoScript. Makes you feel good :D Unlike ABP which makes me feel like I am stealing...[/QUOTE] Or for about 2 cents an hour you can be ad free. That is if daniweb offered … | |
Re: Could you tell us what the $type variable contains as it may contain an invalid type header. | |
Re: Do you mean to suggest problems? My guess of 1 big problem would be network connectivity for wifi. ![]() | |
Re: Hi and welcome to daniweb. Let me be the first to say please use code tags. Also as for your scripts problem, I am guessing the exif module or mime type module is not installed on your Linux server. So check that required modules are installed by using [ICODE]<?php phpinfo(); … | |
Re: Where you use $_SESSION[blah]=$_POST you should place that in an if statement like the following. [CODE]if (isset($_POST) && !empty($_POST)) { $_SESSION['blah']=$_POST['blah']; $_SESSION['asdf']=$_POST['asdf']; }[/CODE] This way if $_POST is empty, session will not be assigned an empty value. | |
Re: Try the link below which contains both a text and video tutorial. Also I would like your comments on how helpful it is. [URL="http://syntax.cwarn23.net/PHP/Pagination_made_easy"]http://syntax.cwarn23.net/PHP/Pagination_made_easy[/URL] | |
Re: [QUOTE=maba001;1155230]I guess "No". The function you want to achieve is in the browser (purely client side). So it must be done at the client which means Javascript or some other client side language. But Javascript is probably the easiest one and the one which works across most browsers.[/QUOTE] While that … | |
Re: There is a special way of doing it and is totally different to the php if statement. But the way you do it varies depending on what the condition is. Could you tell us what you are trying to test/check/ifcheck. | |
Re: If you want to disable any ads then I would suggest becomming a sponsor by clicking the donate button at the top and you will receive an option to turn off ads. I myself haven't disabled the ads but being a sponsor I always have the option to disable at … | |
Re: It means you don't have the latest version of php. The goto element is only available in the latest release (5.3) but I wouldn't recommend it due to incompatibility bugs. Instead try using loops and if statements such as the following: [CODE]<?php if (false) { echo 'Foo'; } echo 'Bar'; … ![]() | |
Re: Below is a nice tutorial for Ubuntu and its partner operation system Debian. [URL="http://www.howtoforge.com/apache2_with_php5_and_php4"]http://www.howtoforge.com/apache2_with_php5_and_php4[/URL] | |
Re: Like the following: [CODE]function truehash($hashzzz) { return hash('sha256','asdfedcg$#!@123lkjhg'.hash('whirlpool',$hashzzz).'1!q'); }[/CODE] | |
Re: The action= only works in the <form> tag and would be as follows [CODE]action="<?php echo $row_Child['comp_url']; ?>">[/CODE] | |
Re: on line 47 change to [CODE]extract($row1);[/CODE] That will solve your first problem and could you mention the value you would like to store in the array (eg. $course_status). | |
Re: Why don't you use the paypal cart cms or if you want it custom made then perhaps download a pre-made cart and see how they did it. But as for how to insert the item simply use the [ICODE]mysql_query("INSERT INTO `table` SET `column`='value', `another`='value2'");[/ICODE] Also you will need to send … | |
Re: Also on line 10 you need to change to the } type bracket. | |
Re: Could you explain more clearly because it is hard to understand what you are asking for. From what I can tell you want to check if all values in $_POST are not empty. If that is correct then you would use the following. [CODE]if ((!empty($_POST['hour']) || $_POST['hour']===0) && (!empty($_POST['minute']) || … | |
Re: When I first came here I asked how do I make a 3D human animator in c++ and I had very limited knowledge in c++ (didn't even know how to use variables). Yea, like one of the homework help questions except it wasn't homework (a self project). But the old … | |
Re: Many people have had this problem and it is because google doesn't like bots reading it's search engine page. Instead I would suggest reading up on the [URL="http://code.google.com/intl/en/apis/ajaxsearch/"]google search api[/URL]. This is an ajax/javascript api for retrieving results from any of the google services which will avoid this error. Also … | |
Where can I find software and physical parts for making miniature robots. C++/visualbasic or similar languages are preferred. The tools I require is the software to create the script which will be transfered to the robot, wifi capability, 1 video camera linked to the software inbuild (which can rotate 180 … | |
![]() | Re: I would suggest using the following: [CODE]str_replace("'THIS_KEY' => 'My string',","'THIS_KEY' => 'My new value'",$file_input);[/CODE] ![]() |
Re: So what's the question/objective or is this just a general chat topic? L@@ks like a bunch of random strings being displayed from what I can see. | |
Re: The way I learned to type was by typing up encyclopedias from the library. The fun times. Easiest method is to at first look at the keyboard while typing while all fingers remain on the keys then as you progress you stop looking at the keyboard less and less often. … | |
Re: Hi, could you post what error messages are appearing. That way we can correct it for you. Also what exactly is the problem. | |
Yes it's about loops. I have the below script and the first loop there is no problem as it mixes the variables but on the second loop I can't seem to figure out how to find the value of $c. Does anybody know because this is an annoying puzzle I … | |
Re: Well there are two reasons as to why the mail function gets its mail stuck in spam. One is that the mail function does not function on the smtp protocol like other alternative functions. Another reason is spamming keywords are used and that the email from may not be a … | |
Re: If you want to encrypt it on client side then I would suggest using something like SHA256 in Javascript. I'm sure there are some open source ones as I have seen SHA1 in Javascript. Google is your friend. | |
Re: Probably find the next thing after php will be computers inventing themselves. All you would need to do is tell the computer to make a big website then the computer will code it all for you. But that I believe is the distant future when AI is invented. Until then … | |
I have discovered that in emails any html code in the topic name appears as styled html in the email. I would suggest using htmlentities on the subject in the email updates. Just thought I would let you know of this security risk. | |
Re: The only way I know of doing it is by downloading a database of every ip address and their associated country. But I would be interested to see if there is an automated way of doing it instead of constantly updating an ip database. | |
Re: [QUOTE]All answers on a post card...... :-)[/QUOTE] Sending a post card your way lol. Below are the details. There are several libraries that may be used to create pdf files and yes not all examples work due to incompatibility on updated versions since the tutorial/example was written for an older … | |
Re: I would suggest using mysql with php. To do so simply create an admin panel which will insert news into the mysql database then in the column select from the database and order by timestamp desc. So perhaps a mysql tutorial might be useful. Google is your friend. | |
Re: [CODE]<?php session_start(); //connect to mysql //change user and password to your mySQL name and password mysql_connect("194.81.104.27","www","www") or die(mysql_error()); //select which database you want to edit mysql_select_db("dbaleister") or die(mysql_error()); $search=$_POST["search"]; $factid = $_REQUEST["factid"]; //get the mysql and store them in $result. //change whatevertable to the mysql table you're using. //change whatevercolumn … | |
Is it just me or has Ubuntu 9.04 become broken by not allowing any software to be installed. I have done two clean installs and still the synaptic package manager does not show any items that are not installed. Also I am unable to install any software from the command … | |
Re: That function works perfectly. A hex is made of the values 0-9 and A-F. When I test that function it seem to follow those rules and does it perfectly. But are you after a function that converts string to decimal and not string to hex? Because that's a completely different … | |
Hi and I am making a script but am having a slight math logic problem. Below is an example of an encoder I am working on. [CODE]for(int m=0;m<80;m++) { if(m<=19) { f = (b & c) | ((~b) & d); k = 0x5A827999; } else if(m<=39) { f = b … | |
This is a test thread for cscgal about the XSS injections problem. | |
So I came back home and checked my emails then found my usual google alerts. One google says - "What does the P in PHP stand for". So I click the link and it says Pink - According to Barbie Nerd. Now who would ever think of such a crazy … | |
Re: So what exactly is the question. I know that if you use indexing properly then that can speed up sql time. | |
Re: Perhaps this will work... [CODE] <?php mysql_connect ("localhost", "root",'password') or die (mysql_error()); mysql_select_db ("records"); $criteria = (int)$_POST['criteria']; $sql = "SELECT * FROM students WHERE "; switch($criteria) case 1: $sql .= "course"; break; case 2: $sql .= "surname"; break; case 3: $sql .= "department"; break; case 4: $sql .= "email"; break; … | |
Re: I would suggest sending the files as a zip and maybe find a class or library that can zip a group of files. | |
Re: Could you elaborate on that and be more specific. PHP has many security functions such as mysql_real_escape_string() and when used properly php is very secure. But I assume you want a secure login system or for us to secure your login system. Could you post some code so we can … | |
Re: The ipad - thats an apple breakthrough. Can only do one task at a time and has little memory *cough* dos *cough*. Microsoft and Unix/linux has done better than that since the early 1990's with multitasking apps. That might be good for your presentation. Anyways a breakthrough technology - I … | |
Re: I would suggest using javascript (not ajax). Simply put an empty div field at the end and when the user clicks the button to add a row then javascript will append to that div making another row. That's the theory but I am guessing you want code. Below is a … | |
Re: Try this. [CODE]FindEdits($HtmlContent,"@<h1(.*)?class=\"(.*)?cmsedit(.*)?\"(.*)?>(.*)?</h1>@ius");[/CODE] Also could you post the data your trying to match. | |
Re: Could you elaborate on that. Are you trying to get a dll that isn't designed for php to work with php because if that is the case then it will not be compatible and will need recoding to compile with php. Other than that I don't have a clue what … |
The End.