198 Posted Topics
Re: 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? | |
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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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; ?>"> … | |
| |
Re: 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 … | |
Re: 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>"; … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 ![]() | |
Re: I edited my post because the info I placed was inacurate as I misunderstood your problem and I cannot delete the post | |
Re: 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") … | |
Re: 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. | |
Re: How very true. I think these providers need to focus on some of the real issues such as spam ;) | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
Re: 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] | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: Looks like you might have the CHMOD the adverts file to allow write permissions from a local script. | |
Re: 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. | |
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 … | |
Re: 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. … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
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 … | |
Re: 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 … | |
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 … | |
Re: 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 … |
The End.