Jump to content

jesushax

Members
  • Posts

    498
  • Joined

  • Last visited

    Never

Everything posted by jesushax

  1. hi could someone tell me how to write out the value of a query to screen, as in to debug it i get this line when trying to add a user Unknown column 'Admin' in 'where clause' my code i figured somethings wrong with the sql so, theres somewhere to start, just dont know how to write it out Cheers <?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/connection.php'); switch($_GET['mode']){ case 'done': include($_SERVER['DOCUMENT_ROOT'] . '/includes/header.php'); echo "Account has been created."; include($_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php'); break; case 'add': $strUserName = mysql_real_escape_string($_POST["txtUserName"]); $strFirstName = mysql_real_escape_string($_POST["txtFirstName"]); $strlastName = mysql_real_escape_string($_POST["txtLastName"]); $strTel = mysql_real_escape_string($_POST["txtTel"]); $strHomePage = mysql_real_escape_string($_POST["txtHomePage"]); $strCompanyName = mysql_real_escape_string($_POST["txtCompanyName"]); $strUserPass = md5($_POST["txtUserPass"]); $strEmail = mysql_real_escape_string($_POST["txtEmail"]); $strDate = date("d/m/y"); if(!strlen($strUserName)) { $error = '<p style="color:#FF0000;">Error: Username Was Left Blank</p>'; } elseif(!strlen($strEmail)){ $error = '<p style="color:#FF0000;">Error: Email Was Left Blank</p>'; } else{ if (mysql_query("SELECT UserName From tblUsers Where UserName=". $strUserName ." ")or die(mysql_error()) ) { $error = '<p style="color:#FF0000;">Error: Username Taken</p>'; } else{ mysql_query("INSERT INTO tblUsers (UserName, UserPassword, UserEmail, UserCompanyName, UserFirstName, UserLastName, UserTel, UserHomePage, UserDateAdded, UserSuspend) Values( '".$strUserName."', '".$strUserPass."', '".$strEmail."', '".$strCompanyName."', '".$strFirstName."', '".$strLastName."', '".$strTel."', '".$strHomePage."', '".$strDate."', '1')") or die(mysql_error()); header('Location: ?mode=done'); exit; } } break; default: include($_SERVER['DOCUMENT_ROOT'] . '/includes/header.php'); } ?> <b>Register for an account</b> <form id="Profile" method="post" action="?mode=add"> <table width="100%" border="0" style="padding:0px; margin:0px;"> <tr> <td>Username: </td> <td><input type="text" name="txtUserName" size="50" /></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="txtUserPass" size="25" /></td> </tr> <tr> <td>Confirm Password:</td> <td><input type="password" name="txtUserPass2" size="25" /></td> </tr> <tr> <td>Email Address:</td> <td><input type="text" name="txtEmail" size="50" /></td> </tr> <tr> <td>Company Name</td> <td><input type="text" name="txtCompanyName" size="50" /></td> </tr> <tr> <td>First Name:</td> <td><table width="100%" border="0" style="padding:0px; margin-left:-3px;"> <tr> <td><input type="text" name="txtFirstName" size="20" /></td> <td> Last Name:</td> <td><input type="text" name="txtLastName" size="20" /></td> </tr> </table></td> </tr> <tr> <td>Website Address</td> <td><input type="text" name="txtHomePage" size="50" /></td> </tr> <tr> <td>Tel: </td> <td><input type="text" name="txtTel" size="15" /></td> </tr> <tr> <td colspan="2" style="text-align:center;"><input type="submit" name="Submit" value="Submit Registration" alt="Enter" /> <input type="Reset" name="Reset" value="Cancel" alt="Cancel" /></td> </tr> </table> </form> * a valid working email is required as your login and activation information will be sent there, thankyou. <?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php'); ?>
  2. checked and double checked now, counted theres 12 so even ammount thats right getting different error now brown is line 30 Thanks <?php switch($_GET['mode']){ case 'done': include($_SERVER['DOCUMENT_ROOT'] . '/includes/admin_header.php'); echo "Account has been created."; include($_SERVER['DOCUMENT_ROOT'] . '/includes/admin_footer.php'); break; case 'add': $strUserName = mysql_real_escape_string($_POST["txtUserName"]); $strFirstName = mysql_real_escape_string($_POST["txtFirstName"]); $strlastName = mysql_real_escape_string($_POST["txtLastName"]); $strTel = mysql_real_escape_string($_POST["txtTel"]); $strHomePage = mysql_real_escape_string($_POST["txtHomePage"]); $strCompanyName = mysql_real_escape_string($_POST["txtCompanyName"]); $strUserPass = md5($_POST["txtUserPass"]); $strEmail = mysql_real_escape_string($_POST["txtEmail"]); $strDate = date("d/m/y"); if(!strlen($strUserName)) { $error = '<p style="color:#FF0000;">Error: Username Was Left Blank</p>'; } elseif(!strlen($strEmail)){ $error = '<p style="color:#FF0000;">Error: Email Was Left Blank</p>'; } else{ if (mysql_query("SELECT UserName From tblUsers Where UserName=". $strUserName ." ")or die(mysql_error()) ) { $error = '<p style="color:#FF0000;">Error: Username Taken</p>'; } else{ mysql_query("INSERT INTO tblUsers (UserName, UserPassword, UserEmail, UserCompanyName, UserFirstName, UserLastName, UserTel, UserHomePage, UserDateAdded, UserSuspend) Values( '".$strUserName."', '".$strUserPass."', '".$strEmail."', '".$strCompanyName."', '".$strFirstName."', '".$strLastName."', '".$strTel."', '".$strHomePage."', '".$strDate."', '1')") or die(mysql_error()) [color=brown]header('Location: ?mode=done')[/color] exit; } } break; default: include($_SERVER['DOCUMENT_ROOT'] . '/includes/admin_header.php'); echo $error; } mysql_close($con); ?>
  3. Thankyou! proper cracking on now i am lol, getting loads figured out just stumped here though <?php switch($_GET['mode']){ case 'done': include($_SERVER['DOCUMENT_ROOT'] . '/includes/header.php'); echo "Account has been created."; include($_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php'); break; case 'add': $strUserName = mysql_real_escape_string($_POST["txtUserName"]); $strFirstName = mysql_real_escape_string($_POST["txtFirstName"]); $strlastName = mysql_real_escape_string($_POST["txtLastName"]); $strTel = mysql_real_escape_string($_POST["txtTel"]); $strHomePage = mysql_real_escape_string($_POST["txtHomePage"]); $strCompanyName = mysql_real_escape_string($_POST["txtCompanyName"]); $strUserPass = md5($_POST["txtUserPass"]); $strEmail = mysql_real_escape_string($_POST["txtEmail"]); $strDate = date("d/m/y"); if(!strlen($strUserName)){ $error = '<p style="color:#FF0000;">Error: Username Was Left Blank</p>'; }elseif(!strlen($strEmail)){ $error = '<p style="color:#FF0000;">Error: Email Was Left Blank</p>'; }else{ if (mysql_query("SELECT UserName From tblUsers Where UserName=". $strUserName ." ")or die(mysql_error()) ) { $error = '<p style="color:#FF0000;">Error: Username Taken</p>'; } else{ mysql_query("INSERT INTO tblUsers (UserName, UserPassword, UserEmail, UserCompanyName, UserFirstName, UserLastName, UserTel, UserHomePage, UserDateAdded, UserSuspend) Values( '".$strUserName."', '".$strUserPass."', '".$strEmail."', '".$strCompanyName."', '".$strFirstName."', '".$strLastName."', '".$strTel."', '".$strHomePage."', '".$strDate."', '1')") or die(mysql_error()); header('Location: ?mode=done'); exit; } } default: include($_SERVER['DOCUMENT_ROOT'] . '/includes/header.php'); echo $error; mysql_close($con); ?> <b>Register for an account</b> <form id="Profile" method="post" action="?mode=add"> <table width="100%" border="0" style="padding:0px; margin:0px;"> <tr> <td>Username: </td> <td><input type="text" name="txtUserName" size="50" /></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="txtUserPass" size="25" /></td> </tr> <tr> <td>Confirm Password:</td> <td><input type="password" name="txtUserPass2" size="25" /></td> </tr> <tr> <td>Email Address:</td> <td><input type="text" name="txtEmail" size="50" /></td> </tr> <tr> <td>Company Name</td> <td><input type="text" name="txtCompanyName" size="50" /></td> </tr> <tr> <td>First Name:</td> <td><table width="100%" border="0" style="padding:0px; margin-left:-3px;"> <tr> <td><input type="text" name="txtFirstName" size="20" /></td> <td> Last Name:</td> <td><input type="text" name="txtLastName" size="20" /></td> </tr> </table></td> </tr> <tr> <td>Website Address</td> <td><input type="text" name="txtHomePage" size="50" /></td> </tr> <tr> <td>Tel: </td> <td><input type="text" name="txtTel" size="15" /></td> </tr> <tr> <td colspan="2" style="text-align:center;"><input type="submit" name="Submit" value="Submit Registration" alt="Enter" /> <input type="Reset" name="Reset" value="Cancel" alt="Cancel" /></td> </tr> </table> </form> * a valid working email is required as your login and activation information will be sent there, thankyou. [color=teal]<?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php'); ?>[/[/color]code] line 89 is teal error: [quote]Parse error: syntax error, unexpected $end in /home/fhlinux153/c/cwservicesltd.co.uk/user/htdocs/register.php on line 89[/quote] nothing the matter with that line though is there :S
  4. thanks alot! picking up quite a bit of knowledge here, sorry to keep pesetering you until i got it sussed though :S whats wrong with this sql SELECT * FROM tblNews LIMIT 0,3 ORDER BY NewsDateAdded DESC that order by is fine is it not? Thanks
  5. cheers ill remember that sorted that one now now theres another one with my if statement hope im not being a pain here, but once i got it sussed ill be ok im trying so see if the record image1 has no data in it if it has no data in it, echo nothing if it does echo the image i get this error message if ($news["image1"]) == "")) { echo ""; } else { echo "<div style=\"float:right;\">"; echo "<img src=\"/news/uploads/". $news["image1"]. "\" style=\"width:80px;\" /></div>"; }
  6. ok, i just started using php and needed to be shown how to use proper syntax, now i know mysql error now though :S $result = mysql_query("SELECT TOP 3 * FROM tblNews ORDER BY NewsDateAdded DESC"); while ($news = mysql_fetch_array($result)) once in know what all these errors mean and what to look for, ill be ok with the rest of my site Cheers for any and all support though , its greatly apprectiated
  7. thanks, what ive done now is check if the session exists using the isset then if the sesion exists check its values and disaplay the correct menus cheers however nother problem ina different page line green is line 12, not quite sure on how to parse these lines yet, ill be able to pick it up if you could show me once? Thanks! <? <? $result = mysql_query("SELECT TOP 3 * FROM tblUsers ORDER BY NewsDateAdded DESC"); while ($news = mysql_fetch_array($result)) echo "<table width=\"90%\" class=\"news\"><tr><td><strong style=\"font-size:12px;\">"; echo $news["title"]."</strong></td></tr>"."\n"; echo "<tr><td>"; if (IsNull ($news["image1"]) == "") { echo ""; } else { echo "<div style=\"float:right;\">"; [color=limegreen]echo "<img src=\"/news/uploads/." $news["image1"] ".\" style=\"width:80px;\" /></div>";[/color] } echo $news["shortstory"]."</td></tr>"."\n"; echo "<tr><td style=\"text-align:right;\"><a href=\"/news/full_news.asp?ID=."($news["newsid"])." \">read more...</a></td></tr></table>"; ?>
  8. Hi here is my code, im new to php and dont know my way around error messages yet, i belive it to be something to do with undefined variables? yes? <?php include($_SERVER['DOCUMENT_ROOT'] . '/includes/connection.php'); session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>CW Marketing Services</title> <link href="/includes/css/layout.css" rel="stylesheet" type="text/css" /> <link href="/includes/css/styles.css" rel="stylesheet" type="text/css" /> <script src="/includes/js/content.js" type="text/javascript"></script> </head> <body> <div id="container"> <a href="/default.php"><div id="header" style="cursor:pointer;"></div></a> <div id="left-column"> <?php if ( $_SESSION['UserAccess'] == True) { if ( $_SESSION['UserAdmin'] ==1) { include($_SERVER['DOCUMENT_ROOT'] . '/includes/admin_menu.inc'); } else{ include($_SERVER['DOCUMENT_ROOT'] . '/includes/user_menu.inc'); } } else{ include($_SERVER['DOCUMENT_ROOT'] . '/includes/default_menu.inc'); } if ( $_SESSION['UserAdmin'] ==0) { ?> <div class="menu-title-left"></div> <div class="menu-title-middle">News</div> <div class="menu-title-right"></div> <div style="clear:both;"></div> <?php } ?> </div> <div id="center-column"> here is my error message
  9. i searched and got that as a rseult so hopfeully will work, i cant test any of it yet, it can take up to 24 hours before i can check im doing stuff right :S soooo heres my login.php only short this one is this good? Thanks Alot!!! <?php virtual("/includes/connection.php"); session_start(); $strUserName = str_replace( "'", "''",$_POST["txtUserName"]); $OnlineUserIp = $_SERVER["REMOTE_ADDR"]; $result = mysql_query("SELECT UserPassword, UserID, UserName, UserAdmin, UserFirstName, UserSuspend, UserCompanyName FROM tblUsers WHERE UserName ='".$strUserName."'"); while ($row = mysql_fetch_array($result)) if (md5 ($_POST["txtPassword"]) == $row["UserPassword"]) { if ($row["UserSuspend"] == 0) { $_SESSION["UserAccess"] = True; $_SESSION["UserID"] = $row["UserID"]; $_SESSION["UserName"] = $row["UserName"]; $_SESSION["FirstName"] = $row["UserFirstName"]; $_SESSION["UserAdmin"] = $row["UserAdmin"]; $_SESSION["CompanyName"] = $row["UserCompanyName"]; header("Location: /members.asp"); else { $_SESSION["UserAccess"] = False; header("Location: /default.asp?msg=suspended"); } } $_SESSION["UserAccess"] = False; header("Location: /default.asp?msg=invalid"); mysql_close($con); ?>
  10. i had the form in a function so that when i gave out an error message, i could quickly show the form again so error message show form that way user wouldnt have to keep pressing the back button. for virtual includes in php its virtual("includes/header.php"); yes? i always use virtual includes as to aviod confusion between sub folders
  11. o right yer forgot those, how do you include a virtual path with php then?
  12. Thanks alot for info, if i can get the grasp of this page i should be ok with others to cotinue my conversions. how we cooking now? <?php include("/includes/header.php"); if ($_GET["mode"] == "add") { $strUserName = mysql_real_escape_string($_POST["txtUserName"]); $strFirstName = mysql_real_escape_string($_POST["txtFirstName"]); $strlastName = mysql_real_escape_string($_POST["txtLastName"]); $strTel = mysql_real_escape_string($_POST["txtTel"]); $strHomePage = mysql_real_escape_string($_POST["txtHomePage"]); $strCompanyName = mysql_real_escape_string($_POST["txtCompanyName"]); $strUserPass = md5($_POST["txtUserPass"]); $strEmail = mysql_real_escape_string($_POST["txtEmail"]); $strDate = date("d/m/y"); if ($strUserName == "") { echo '<p style="color:#FF0000;">Error: Username Was Left Blank</p>'; ShowForm(); } elseif ($strEmail == "") { echo '<p style="color:#FF0000;">Error: Email Was Left Blank</p>'; ShowForm(); } else { mysql_query("INSERT INTO tblUsers (UserName, UserPassword, UserEmail, UserCompanyName, UserFirstName, UserLastName, UserTel, UserHomePage, UserDateAdded, UserSuspend) Values( '".$strUserName."', '".$strUserPass."', '".$strEmail."', '".$strCompanyName."', '".$strFirstName."', '".$strLastName."', '".$strTel."', '".$strHomePage."', '".$strDate."', '1')"); mysql_query("SELECT [userName] from tblUsers where UserName = '".$strUserName."'"); mysql_query("SELECT [userEmail] from tblUsers where UserEmail = '".$strEmail."'"); mysql_close($con); echo " Account has been created."; } else { echo '<p style="color:#FF0000;">Error: Email Address already Registered.</p>'; ShowForm(); } else { echo '<p style="color:#FF0000;">Error: Username Taken</p>'; ShowForm(); } } } if ($_GET["mode"] == "") { ShowForm(); } function ShowForm() { ?> <b>Register for an account</b> <form id="Profile" method="post" action="/register.php?mode=add"> <table width="100%" border="0" style="padding:0px; margin:0px;"> <tr> <td>Username: </td> <td><input type="text" name="txtUserName" size="50" /></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="txtUserPass" size="25" /></td> </tr> <tr> <td>Confirm Password:</td> <td><input type="password" name="txtUserPass2" size="25" /></td> </tr> <tr> <td>Email Address:</td> <td><input type="text" name="txtEmail" size="50" /></td> </tr> <tr> <td>Company Name</td> <td><input type="text" name="txtCompanyName" size="50" /></td> </tr> <tr> <td>First Name:</td> <td><table width="100%" border="0" style="padding:0px; margin-left:-3px;"> <tr> <td><input type="text" name="txtFirstName" size="20" /></td> <td> Last Name:</td> <td><input type="text" name="txtLastName" size="20" /></td> </tr> </table></td> </tr> <tr> <td>Website Address</td> <td><input type="text" name="txtHomePage" size="50" /></td> </tr> <tr> <td>Tel: </td> <td><input type="text" name="txtTel" size="15" /></td> </tr> <tr> <td colspan="2" style="text-align:center;"><input type="submit" name="Submit" value="Submit Registration" alt="Enter" /> <input type="Reset" name="Reset" value="Cancel" alt="Cancel" /></td> </tr> </table> </form> * a valid working email is required as your login and activation information will be sent there, thankyou. <?php } include("/includes/footer.php"); ?>
  13. havent changed over my server yet, i have loasd of pages to convert... well, ill convert the rest, change my server come back if i have a problem
  14. Could someoen tell me if the below is all correct? ive just tried to convert my asp page to php and this is wha ti ahve, it look ok? <? include("/includes/header.php"); if (@$_GET["mode"] == "add") { $strUserName = str_replace( "'", "''",@$_POST["txtUserName"]); $strFirstName = str_replace( "'", "''",@$_POST["txtFirstName"]); $strlastName = str_replace( "'", "''",@$_POST["txtLastName"]); $strTel = str_replace( "'", "''",@$_POST["txtTel"]); $strHomePage = str_replace( "'", "''",@$_POST["txtHomePage"]); $strCompanyName = str_replace( "'", "''",@$_POST["txtCompanyName"]); $strUserPass = md5 str_replace( "'", "''",@$_POST["txtUserPass"])]; $strEmail = str_replace( "'", "''",@$_POST["txtEmail"]); $strDate = date("d/m/y"); if ($strUserName == "") { echo '<p style="color:#FF0000;">Error: Username Was Left Blank</p>'; ShowForm(); } elseif $strEmail == "") { echo '<p style="color:#FF0000;">Error: Email Was Left Blank</p>'; ShowForm(); } } else { mysql_query("INSERT INTO tblUsers (UserName, UserPassword, UserEmail, UserCompanyName, UserFirstName, UserLastName, UserTel, UserHomePage, UserDateAdded, UserSuspend) Values( '".$strUserName."', '".$strUserPass."', '".$strEmail."', '".$strCompanyName."', '".$strFirstName."', '".$strLastName."', '".$strTel."', '".$strHomePage."', '".$strDate."', '1')"); mysql_query("SELECT [userName] from tblUsers where UserName = '".$strUserName."'"); mysql_query("SELECT [userEmail] from tblUsers where UserEmail = '".$strEmail."'"); mysql_close($con); echo " Account has been created."; } else { echo '<p style="color:#FF0000;">Error: Email Address already Registered.</p>'; ShowForm(); } } else { echo '<p style="color:#FF0000;">Error: Username Taken</p>'; ShowForm(); } } } if (@$_GET["mode"] == "") { ShowForm(); } function ShowForm() { ?> <b>Register for an account</b> <form id="Profile" method="post" action="/register.php?mode=add"> <table width="100%" border="0" style="padding:0px; margin:0px;"> <tr> <td>Username: </td> <td><input type="text" name="txtUserName" size="50" /></td> </tr> <tr> <td>Password:</td> <td><input type="password" name="txtUserPass" size="25" /></td> </tr> <tr> <td>Confirm Password:</td> <td><input type="password" name="txtUserPass2" size="25" /></td> </tr> <tr> <td>Email Address:</td> <td><input type="text" name="txtEmail" size="50" /></td> </tr> <tr> <td>Company Name</td> <td><input type="text" name="txtCompanyName" size="50" /></td> </tr> <tr> <td>First Name:</td> <td><table width="100%" border="0" style="padding:0px; margin-left:-3px;"> <tr> <td><input type="text" name="txtFirstName" size="20" /></td> <td> Last Name:</td> <td><input type="text" name="txtLastName" size="20" /></td> </tr> </table></td> </tr> <tr> <td>Website Address</td> <td><input type="text" name="txtHomePage" size="50" /></td> </tr> <tr> <td>Tel: </td> <td><input type="text" name="txtTel" size="15" /></td> </tr> <tr> <td colspan="2" style="text-align:center;"><input type="submit" name="Submit" value="Submit Registration" alt="Enter" /> <input type="Reset" name="Reset" value="Cancel" alt="Cancel" /></td> </tr> </table> </form> * a valid working email is required as your login and activation information will be sent there, thankyou. <? } include("/includes/footer.php"); ?>
  15. Hi im an amatuer asp coder, making the transation from asp to php just wondering whats the asp equviliant of If NOT rsCheckUser.EOF Then this is checking if the records are at the end of file meaning there are no records left so if where NOT at the end of the records then "do something" else "no records" cheers
  16. how do i do this? i know sql syntax im asking about writing the results of the select to the screen and i do this how? thanks
  17. found it its $row yes sooooo my connection.php file <?php $uname = 'username'; $pass = 'password'; $db_name = 'database name'; $host = 'host'; $con = mysql_connect($host, $uname, $pass); if (!$con) { die('Could not connect: ' . mysql_error()); } $db_selected = mysql_select_db($db_name, $con); if (!$db_selected) { die ('Can\'t use database : ' . mysql_error()); } ?> then in my page <?php include("/includes/connection.php"); ?> <?php mysql_query("SELECT * FROM tblUsers");while($row = mysql_fetch_array($result)) { echo $row['FirstName'] . " " . $row['LastName']; echo "<br />"; }mysql_close($con); ?> this is how its done yes?
  18. hi me again, asp response.write recordset("RecordName") whats the php equviliant to writing data from a mysql database
  19. cheers, yer i havent got round to that bit yet, this is gonna take ages lol good to know ive got help if needed though Thanks!
  20. hows this look, right? <?php include("/includes/connection.php"); ?> <? session_start(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>CW Marketing Services</title> <link href="/includes/css/layout.css" rel="stylesheet" type="text/css" /> <link href="/includes/css/styles.css" rel="stylesheet" type="text/css" /> <script src="/includes/js/content.js" type="text/javascript"></script> <% Session("LastPage") = request.servervariables("path_info") %> </head> <body> <div id="container"> <a href="/default.php"><div id="header" style="cursor:pointer;"></div></a> <div id="left-column"> <?php if ( $_SESSION['UserAccess'] == True) { if ( $_SESSION['UserAdmin'] ==1) { include("/includes/nav/admin_menu.inc"); } else { include("/includes/nav/user_menu.inc"); } else {include("/includes/nav/default_menu.inc"); } if ( $_SESSION['UserAdmin'] ==0) { ?> <div class="menu-title-left"></div> <div class="menu-title-middle">News</div> <div class="menu-title-right"></div> <div style="clear:both;"></div> <?php include("/news/front_news.php"); ?> <? } ?> </div> <div id="center-column"> cheers
  21. Hi im new to php, im swaping my asp site for a php one and am just starting the long process of doing so. how do i write an if stament using session as a value so if session = "sonething" then 'value if ture else 'value if false end if Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.