Page 2 of 2

Posted: Fri Nov 21, 2003 3:54 am
by silowave
wow i really appreciate you guys helping me out with this, im actually learning some php. anyways heres the code you wanted to see.....constant.php
<?php
$dbhost="localhost";
$dblogin="mylogin";
$dbpass="mypass";
$dbname="mydb";
$trans_status=array(1=>"saved", 2=>"ordered");
$backorder_status=array("not sent", "sent", "accepted");
$mesec=array('01' => 'January', '02' => 'February', '03' => 'March', '04' => 'April', '05' => 'May', '06' => 'June', '07' => 'July', '08' => 'August', '09' => 'September', '10' => 'October', '11' => 'November', '12' => 'December');
$cr_card_types=array( "VISA", "Master Card", "American Express", "Discover", "not in list");
?>

Posted: Fri Nov 21, 2003 4:16 am
by infolock
yeah see, you are not even calling $id in either one of these pages. What is this variable suposed to represent ? because from what I can see, it has not relevant data being passed to it, nor is there any data for which it can represent. If this script is being called by a FORM, then, again,you'll have to post the html for that FORM. However, if it's not, you are gonna have to figure out what $id is suposed to stand for before this query is going to work...

hope that helps.


edit: you can remove that $link variable from your sql query btw... no need for it that i can see.

Posted: Fri Nov 21, 2003 11:41 am
by silowave
wow!! thank you guys so much! i finally got it- register_globals on :D

thanks again for your help