516 Posted Topics
Re: php designer does a good job with debugging. Like php, its free to download. It has a code coloring scheme similar to dreamweavers that will help you spot syntax errors and the debug will find errors and tell you what line the error is found on. | |
Re: Wow, I looked at your site in both IE and Firefox. Brings back some bad memories. Here is what I do. Copy your current css and rename the copy ie_fixes.css. This sheet will be used to fix Internet Exploder. Here's an example of how to do it: [code=html] <link href="default.css" … | |
Re: Where is the variable $class_name coming from and how is it populated? On line 3 of index.php, you have $page = new Page(); but, you never defined the class Page() in stdlib.php. I see you did it on Page.php but this will only have a local scope of the page … | |
Re: Assuming you already know how to connect to the database and that your form method was post: [code=php] $name=$_POST['name']; $age=$_POST['age']; $sql="INSERT INTO Client (name,age) VALUES ('$name','$age')"; $result=mysql_query($sql) or die(mysql_error()); $sql="INSERT INTO Client2 (name,age) VALUES ('$name','$age')"; $result=mysql_query($sql) or die(mysql_error());[/code] | |
Re: [code=php]mysql_connect(localhost,$username,$password);[/code] should be [code=php]mysql_connect('localhost',$username,$password);[/code] Try this and see what happens. | |
Re: The $_POST['id'] is empty. [code=php] <td> <input type = text size = 30 id = id value ="' . $row['id'] . '" disabled></text></td>[/code] You never gave the inputs a name attribute. While assigning both a name and id is good practice, php is looking specifically for the name attribute. Also … | |
Re: Your host isn't GoDaddy is it? The reason I ask is because a recent client of mine hosts with them and I couldn't figure out what was wrong with the mail script. After a little research I found that they have the mail() function as well as many others disabled … | |
Re: Are you wanting to put all of the variables into one string called $message? If so: [code=php]$message = "$name_req $lastname_req $address_req $City_req,$State $Zip $Phone $parkingspace_size $ministorage_size $comments"; mail( "[email protected]", "Questions About you Spaces Available.", $message,"From: $Email_Address" );[/code] | |
Re: Read up on [URL="http://www.washington.edu/computing/windows/issue21/password.html"]password sniffing[/URL]. It's great if your server is secure, but if the user is on a LAN then it's still possible to get hacked. Good rules for any database: 1.) Never pull a password out of the database. Once it is in, it stays there. You can … | |
Re: [code=php] $header = "From:[email protected]"; $header.= "\r\nCC:[email protected]"; $header.= "\r\nBCC:[email protected]"; mail("[email protected]", $subject, $message, $header); [/code] The mail function works differently depending on whether using Linux or Windows. This example is for Windows. I'm not sure if it works on Linux but, I'm sure it would be similar. CC is an old term … | |
Re: You should contact the host and find out if you have any sort of db admin tool. My host has phpMyAdmin. This allows you to interact directly with the db instead of writing php scripts, uploading them to the ftp, then running them once with no way (except for writing … | |
Re: A Session generally expires when the browser is closed. Just set the Session variable on the page that you want the user to access the search result through. Then on the search result page have a simple script like: [code=php] session_start(); if(!$_SESSION['loggedin']="valid") { header ('Location:login.php'); } [/code] Notice the !(not … | |
Re: On page 2, [code=php]print 'Name: <input type="text" name="name" value="'.$line[0].'" />';[/code] This wont pass to page 3 unless it's between <form> and </form> though. | |
Re: Did you have a previous version of mysql installed before you installed wamp? If so, then you are trying to run both versions on port 3306. You will either have to delete the old one or configure one of them to run on a different port. | |
Re: Get rid of the space in between <? and php on line1. i.e replace <? php get_header(); ?> with <?php get_header(); ?> | |
Hello to all. This will be my first post. I need some advice on what to do with a hard drive. I have a corrupt kernel file on a hard drive. The drive has been scanned several times (I slaved it on another pc and scanned with AVG) and appears … |
The End.