198 Posted Topics

Member Avatar for anita_86

The only thing I am seeing is on line 73 your option values is missing quotes. value="<?PHP echo $row5[vat]; ?>" Is it producing any errors?

Member Avatar for anita_86
0
167
Member Avatar for GliderPilot

Okay this is starting to bug me. Working on a web based IM system for the site and when a new chat is initiated jQuery adds a name holder and a chat box to the chat bar. For some reason however it doesn't seem to want to work. Here is …

Member Avatar for GliderPilot
0
824
Member Avatar for seemeamal

I would suggest indenting your if statements. Your not opening and closing all your statements and it is going to cause the script to fail Lines 30, 48, 56 your IF statements are missing opening { Lines 36 and 51 are missing an extra } you have more opened IF …

Member Avatar for GliderPilot
0
123
Member Avatar for acel216

This happens when a variable isn't set properly. In this case it's your $_REQUEST['catid'] variable. When using data pulled through REQUEST, POST, GET, or COOKIE you should always verify that is has a value prior to using it i.e. [CODE=PHP]if (isset($_REQUEST['catid']) { //Variable is set so do what you want …

Member Avatar for GliderPilot
0
95
Member Avatar for extjac

I would set some public variables and when a new members is conctructed populate those variables. i.e. [CODE=PHP] class User { public $userID; public $FirstName; public $LastName; public $EMail; function user($ID) { $sql = " SELECT * FROM users WHERE userID=$ID"; //INSERT YOUR DB CODE HERE AND STORE THE RESULTS …

Member Avatar for veedeoo
0
134
Member Avatar for aianne

You need to seperate the two options into two forms than have if statements to display the results depending on what was selected: [CODE=PHP] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>View</title> </head> <body> <form action="view.php" method="POST"> <td> </td><label>By Section: </label> <td> </td><select name="Section" value="<?php echo $Section; ?>"> …

Member Avatar for aianne
0
879
Member Avatar for sess4561
Member Avatar for whit89

Two options. You could load all your values into JS Multidimensional arrays than modify based on what is selected. If you have a lot of options though this is very impractical and will slow down your page's load time significantly. The second option and probably better one would be to …

Member Avatar for whit89
0
130
Member Avatar for crestaldin

There is many errors in your PHP statement thats in the body of your page which I will explain below. Try somthing like this: [code=php] <?php for( $i = 0; $i < 4; $i++) { echo "<td align='center'><img src='" . $pictures[$i] . "' width='100' height='100' alt='" . $i . "'></td>"; …

Member Avatar for smash95608
0
203
Member Avatar for bhuvan83

In your code are you closing your database connections? If not, it could caus your database to have many open connections that are not being used. Might not be the problem but this may hopefully help.

Member Avatar for Dr AKM
0
350
Member Avatar for Barefootsanders

Couple of things: Does the page address you are loading end in .php? Did you go into the config file for Apache and do the required modifications for PHP pages? Have you tried other scripts to make sure it is not the script?? The most common script used to test …

Member Avatar for Talrod
0
222
Member Avatar for monkeywright

Couple of things I noticed was: You check to see if the varibale $POST is empty in your if statement. What you actualy want to do is you want to check the array of the submitted form which is $_POST. [code] [COLOR=#007700]if (empty([/COLOR][COLOR=green]$[COLOR=red]_[/COLOR]POST[/COLOR][COLOR=#007700]))[/COLOR] [COLOR=#007700][/COLOR] [COLOR=black][/code][/COLOR] One other thing would by …

Member Avatar for allenaj
0
257
Member Avatar for 2ndPlatform

With PHP you simple use the $_GET['variable']; Variable. For example if you had a link [URL="http://www.daniweb.com/fakeurl.html?id=12"]www.daniweb.com/fakeurl.html?id=12[/URL] Your PHP would be: [code] <?php $id = $_GET['id']; echo $id; ?> [/code] this would output 12

Member Avatar for Zagga
0
342
Member Avatar for trashed

I edited my post because the info I placed was inacurate as I misunderstood your problem and I cannot delete the post

Member Avatar for tips4php
0
2K
Member Avatar for Barefootsanders

Just some small errors in placements of your php open and close tags you have some php code outside of the tags, and some HTML tags in wrong spots.: change the end to this and it should work for you. [code] <tr><td colspan="2" align="left"> <input type="checkbox" name="remember" <? if( $form->value("remember") …

Member Avatar for Barefootsanders
0
1K
Member Avatar for aparnesh

It depends on the way your creating the window. I'm sure there are many ways to do it. If I remeber correctly you can do it via this method: [code] var win = new PopupWindow(); win.showPopup(); win.setUrl("http://www.site.com"); win.hidePopup(); [/code] Hope this helps you.

Member Avatar for bapjg
0
6K
Member Avatar for John A

How very true. I think these providers need to focus on some of the real issues such as spam ;)

Member Avatar for RTC
0
236
Member Avatar for John A

I agree with lasher... Vista was released to early and the bugs and holes in it are terriable. Personally I plan on waiting a couple years while they continue to fix bugs than I might goto Vista. Great article joe. And I know what you mean about the frustrations of …

Member Avatar for RwCC
0
214
Member Avatar for pink_zippy_123

have your link end in .php?brand=dell You can add this to the end of a url and it bassicaly stores the variable (dell) in the variable name (brand) which PHP can access. Than on the next page you can use the $brand = $_GET['brand']; now the brand variable equals the …

Member Avatar for digital-ether
0
1K
Member Avatar for MeeraKotecha

The only possible way to do this with PHP and Javascript is to have the javascript to refresh the page, best way is with a hidden form, than have PHP detect the form submition and than execute the script to add info to the database. Ajax as mentioned before is …

Member Avatar for atplerry
0
147
Member Avatar for jamello

Personnaly I would setup a database of all the countries, than load all the countries out of the database and put them into the dropdown box. Would make the code look neater, as well if you use it on several pages the list of countires would be centralized, than you …

Member Avatar for jamello
0
141
Member Avatar for stswimfan
Re: how

Just do a search for Free Hit counter script and add it to your site. There are thousands of them out there. If you are hosting your site with someone check if they have one, most hosts will include a free hot counter as well.

Member Avatar for azzu5
0
140
Member Avatar for Turnkey Monkey

I doubt anyone here is going to do an entire script up for you here. There are many sites that offer the services of scripters that you have to pay for. I would suggest learning more about PHP and MySQL focusing on form reading, and working with databases. Or the …

Member Avatar for dr4g
0
194
Member Avatar for Clanham

As mentioned above mysql_num_rows is misspelled. Your while block is not being executed. There are some other changes you will need to make too or else you will get errors when you try and execute the script. all your mysql_result lines are missing the ) and the end before the …

Member Avatar for dr4g
0
98
Member Avatar for rednarjess

I took a look at the code and the only things I can see is to check the spelling (case sensitive) of the Index in your $_GET array. Personally I would change the if statement. check if your result variable contains any data, and move your fetch array down into …

Member Avatar for GliderPilot
0
301
Member Avatar for Manawyddan

Take a look at the form that is getting submitted.. My guesse is that you are using the GET method rather than the POST method. The error indicates you are trying to access an array index that does not exsist. Two ways to fix this would be change your $_POST …

Member Avatar for WhiteLeo
0
166
Member Avatar for realnsleo

Kill the session, than when the person clicks the back button it will run through the authentication process again and note that the person no longer has the required season to access the page. session_destroy() [URL]http://ca.php.net/session_destroy[/URL]

Member Avatar for dr4g
0
70
Member Avatar for Bugg

There are hundreds of PHP and MySQL tutorials available out there. If you do a google search of PHP tutorials you will find tons of them. Here is one popular free tutorial covering PHP and MySQL: [URL]http://www.w3schools.com/php/default.asp[/URL]

Member Avatar for Phaelax
0
98
Member Avatar for clickbanners

Does the host have an option somewhere for you to just view the plain code? If so you might be able to switch to that, remove the Javascript than switch back to the WYSIWYG editor and hopefully it will work after that As well you should not double post questions …

Member Avatar for MidiMagic
0
97
Member Avatar for blackdove

Your problem is not with the mysql_num_rows it is with the line before it the mysql_query line. Your query line looks like this: $result=mysql_query($query); However you did not define the $query variable. Technicaly the error is at the query, but because it is not a serious error the code continues …

Member Avatar for blackdove
0
119
Member Avatar for Legend01

Your php page that you use after the form is submitted would have to check all the check boxes to to see if they are checked: [code] if(isset($_POST['checkboxname'])) { $somevalue = "yes"; } else { $somevalue = "no"; } [/code] Personally I would load all the form variables into variables …

Member Avatar for GliderPilot
0
84
Member Avatar for jaku78

The problem is not with your num_rows line it is with your query line. The variable name you search with does not match the variable name you passed to the function. variable passed to function is --> [COLOR=#0000bb]$userveri[/COLOR] [COLOR=black]Varibale passed to the query --> [COLOR=#dd0000]$userver1[/COLOR][/COLOR] [COLOR=black]Change the 1 to an …

Member Avatar for GliderPilot
0
125
Member Avatar for heliumgas

I can't think of any way to do it with PHP.. PHP does not do things at runtime, it is all processed by the server than converted into something your browser understands. you might have better luck withsomething like ASP or Java or Javascript.

Member Avatar for tavox
0
137
Member Avatar for hunkychop

Without the actual PHP code it is hard to pinpoint the exact problem but as mentioned above it is probably a missed closing bracket. What the error simply means is that the code processor reached the end of the code and was expecting more code. This usualy happends when you …

Member Avatar for GliderPilot
0
76
Member Avatar for webbyboy

Couple of things that may help you out. First I noticed that you are using PHP code, yet the page is a .html page. In order for PHP to be processed your page needs to be .php not .html Second in your myqsl_query command you have ($Query, $DBCon) which is …

Member Avatar for mmxx66
0
97
Member Avatar for nickclarson

asuming your field is named catagory your SELECT command would look something like this: SELECT DISTINCT catagory FROM article_db ORDER BY catagory; This would go through the catagory field, select all the Unique entries so each catagory name only appears once, and displays them in alphabitical order.

Member Avatar for nickclarson
0
84
Member Avatar for Mojo36

Looks like you might have the CHMOD the adverts file to allow write permissions from a local script.

Member Avatar for GliderPilot
0
107
Member Avatar for dks1383

Probably because you submitted a form and Az2 was the results page. It will usualy come up and ask if you want to re-submit the form when yuo click the back button, but it will not re-display the result from a submitted form.

Member Avatar for dks1383
0
86
Member Avatar for GliderPilot

I have a Rich Text Box in which the user can open a Font Dialog Box and change the FontStyle of the RTB. This feature works fine, however after a user makes the text bold or italic they cannot reset it back to regular. How do you do this?? This …

Member Avatar for GliderPilot
0
88
Member Avatar for Rie~rie

I'm not familiar with dreamweaver... but open the code for the page in dreamweaver and look for the <body> tag. You can than change it for your links. You probably have the link color set, but the visited and active link colors are probably still default giving you undesired colors. …

Member Avatar for roryt
0
85
Member Avatar for nixpix

There are two ways to accomplish this each of which has it's good and bad points. I'll let you decided which method to use: You can create a list marker graphic (e.g., a GIF file) that has your desired color. Then use a style-sheet to specify a list-style-image. -OR- It …

Member Avatar for nixpix
0
139
Member Avatar for nathanpacker

You can use PHP and MySQL... MySQL has a few methods for encryption/decription. You would require a website, with PHP and MySQL installed on it. Encrypting with MySQL ==> [URL]http://dev.mysql.com/doc/refman/5.0/en/encryption-functions.html[/URL] Using PHP with a MySQL database ==> [URL]http://www.freewebmasterhelp.com/tutorials/phpmysql[/URL] I don't know what sort of programming experience you have with PHP …

Member Avatar for nathanpacker
0
93
Member Avatar for din

You will probably have to use a dynamic scripting language. PHP is processed by the server and turned into HTML, the client never gets any of the PHP, therefor once a page has loaded PHP cannot change that page unless the page is refreshed.

Member Avatar for din
0
71
Member Avatar for AnaisTrois

There is a script out there called PHP-Nuke that includes a lot of these features all in one ([URL]http://phpnuke.org/[/URL]) and there are many mods that can be added to the program and will require very little programming knowledge. However, as you said, if you want to be able to take …

Member Avatar for AnaisTrois
-1
125
Member Avatar for GliderPilot

Hi there :) My name is Chris, and I am from NS, Canada. I'm a programmer by hobbie and spend a lot of my spare time doing programming. As well I do volunteer tech support for an online voice-video-chat program. I decided to join these forms to be able to …

Member Avatar for happygeek
0
49
Member Avatar for samsycamore

You would have to goto the site where your domain name is registered with. I'm not sure what company GoDaddy uses for the domain. If you are not sure do a whois lookup on your domain name ( [URL]http://www.networksolutions.com/whois/index.jsp[/URL] the registrar name) and it should tell you there. You will …

Member Avatar for GliderPilot
0
75
Member Avatar for GliderPilot

Hi, We are looking at programming a messenger service that hosts different chat rooms, a buddy list, and allows text, voice, and video. (Kind of like a mix of MSN and Yahoo) but wondering which programming language. We want an actual windows program with GUI (possibly VB.NET??) not something run …

Member Avatar for GliderPilot
0
128
Member Avatar for tzan2833

In order to change something on the fly you would have to use Javascript.... However javascript cannot activate a PHP statement because it is a server side script and Javascript is client side. You would have to use javascript to Submit the form when something is selected, and have the …

Member Avatar for GliderPilot
0
86

The End.