516 Posted Topics

Member Avatar for dmc72

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.

Member Avatar for dmc72
0
161
Member Avatar for benboomboom

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

Member Avatar for buddylee17
0
122
Member Avatar for sethbaur

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 …

Member Avatar for sethbaur
0
96
Member Avatar for dbayo

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]

Member Avatar for dbayo
0
92
Member Avatar for jay64

[code=php]mysql_connect(localhost,$username,$password);[/code] should be [code=php]mysql_connect('localhost',$username,$password);[/code] Try this and see what happens.

Member Avatar for jay64
0
389
Member Avatar for mortalex

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 …

Member Avatar for Dani
0
159
Member Avatar for vardhani
Re: Form

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 …

Member Avatar for vardhani
0
142
Member Avatar for ericjw316

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]

Member Avatar for buddylee17
0
90
Member Avatar for bjg5858

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 …

Member Avatar for buddylee17
0
152
Member Avatar for Pro2000

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

Member Avatar for Pro2000
0
142
Member Avatar for jay64

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 …

Member Avatar for buddylee17
0
90
Member Avatar for pdb

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 …

Member Avatar for buddylee17
0
71
Member Avatar for lydia21

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.

Member Avatar for lydia21
0
144
Member Avatar for nic1213

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.

Member Avatar for buddylee17
0
89
Member Avatar for tattie

Get rid of the space in between <? and php on line1. i.e replace <? php get_header(); ?> with <?php get_header(); ?>

Member Avatar for tattie
0
151
Member Avatar for buddylee17

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 …

0
62

The End.