1,376 Posted Topics

Member Avatar for 56oldbrown

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 …

Member Avatar for cwarn23
0
110
Member Avatar for teajayo

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 …

Member Avatar for teajayo
0
161
Member Avatar for rpgwebsolutions

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 …

Member Avatar for diafol
-4
1K
Member Avatar for darrylpatterson

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.

Member Avatar for digital29
0
142
Member Avatar for clutchkiller

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

Member Avatar for cwarn23
1
130
Member Avatar for fobos

Could you tell us what the $type variable contains as it may contain an invalid type header.

Member Avatar for cwarn23
0
100
Member Avatar for new programer

Do you mean to suggest problems? My guess of 1 big problem would be network connectivity for wifi.

Member Avatar for thunderstorm98
0
141
Member Avatar for vbozzelle

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(); …

Member Avatar for cwarn23
0
164
Member Avatar for tryphy

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.

Member Avatar for cwarn23
0
134
Member Avatar for vijaysoft1

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]

Member Avatar for Stefano Mtangoo
0
95
Member Avatar for vishalonne

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

Member Avatar for maba001
1
114
Member Avatar for logonchristy

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.

Member Avatar for cwarn23
0
123
Member Avatar for coachHinesfan

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 …

Member Avatar for Biker920
0
265
Member Avatar for prem2

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

Member Avatar for Zagga
0
975
Member Avatar for veledrom

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]

Member Avatar for cwarn23
0
62
Member Avatar for lisles

Like the following: [CODE]function truehash($hashzzz) { return hash('sha256','asdfedcg$#!@123lkjhg'.hash('whirlpool',$hashzzz).'1!q'); }[/CODE]

Member Avatar for cwarn23
0
66
Member Avatar for nvdhassani

The action= only works in the <form> tag and would be as follows [CODE]action="<?php echo $row_Child['comp_url']; ?>">[/CODE]

Member Avatar for cwarn23
0
206
Member Avatar for cane23

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

Member Avatar for pritaeas
0
129
Member Avatar for ruwanaru

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 …

Member Avatar for Benjip
0
198
Member Avatar for Anarionist
Member Avatar for Anarionist
0
105
Member Avatar for codeblock

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']) || …

Member Avatar for codeblock
0
188
Member Avatar for happygeek

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 …

Member Avatar for Dave Sinkula
0
525
Member Avatar for anju.anjali

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 …

Member Avatar for cwarn23
0
55
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
110
Member Avatar for diafol

I would suggest using the following: [CODE]str_replace("'THIS_KEY' => 'My string',","'THIS_KEY' => 'My new value'",$file_input);[/CODE]

Member Avatar for diafol
0
176
Member Avatar for Merlin33069

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.

Member Avatar for Merlin33069
0
97
Member Avatar for Eternity[LK]

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

Member Avatar for WaltP
0
238
Member Avatar for azegurb

Hi, could you post what error messages are appearing. That way we can correct it for you. Also what exactly is the problem.

Member Avatar for azegurb
0
231
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
115
Member Avatar for brixton

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 …

Member Avatar for almostbob
0
900
Member Avatar for lisles

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.

Member Avatar for cwarn23
0
111
Member Avatar for darrylpatterson

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 …

Member Avatar for OS_dev
-1
115
Member Avatar for cwarn23

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.

Member Avatar for cwarn23
0
69
Member Avatar for vivobie

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.

Member Avatar for darkagn
0
71
Member Avatar for whiteyoh

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

Member Avatar for whiteyoh
0
171
Member Avatar for MxDev

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.

Member Avatar for webexpertzhere
0
79
Member Avatar for alla87

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

Member Avatar for cwarn23
0
3K
Member Avatar for cwarn23

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 …

Member Avatar for necrolin
0
150
Member Avatar for sam023

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 …

Member Avatar for sam023
0
1K
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
120
Member Avatar for cwarn23

This is a test thread for cscgal about the XSS injections problem.

0
192
Member Avatar for cwarn23

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 …

Member Avatar for vegaseat
-3
156
Member Avatar for yonker

So what exactly is the question. I know that if you use indexing properly then that can speed up sql time.

Member Avatar for cwarn23
0
73
Member Avatar for takeshi

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

Member Avatar for kireol
0
262
Member Avatar for muralibobby2015

I would suggest sending the files as a zip and maybe find a class or library that can zip a group of files.

Member Avatar for saiprem
0
129
Member Avatar for dineshphp

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 …

Member Avatar for cwarn23
0
46
Member Avatar for new programer

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 …

Member Avatar for vegaseat
1
112
Member Avatar for vishalonne

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 …

Member Avatar for vishalonne
0
158
Member Avatar for semanticart

Try this. [CODE]FindEdits($HtmlContent,"@<h1(.*)?class=\"(.*)?cmsedit(.*)?\"(.*)?>(.*)?</h1>@ius");[/CODE] Also could you post the data your trying to match.

Member Avatar for cwarn23
0
101
Member Avatar for mangel.murti

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 …

Member Avatar for harry_watson
0
65

The End.