ko ko 97 Practically a Master Poster
ko ko 97 Practically a Master Poster
ko ko 97 Practically a Master Poster
ko ko 97 Practically a Master Poster
Post the code.
<?php if($confirmation != '' || $confirmation != null) : ?>
<?php echo $confirmation; ?><br/>
<?php endif; ?>
You can try like above perhaps.
Absolutely, $row is an associative array, not numeric. It has value same with $pageListArray. So, the index must be string, not number. 'longtitude', 'lattitude', 'hospitalType', or 'value', as pointed by @pritaeas.
First of all, put the parameter 'error=1' to line 26
header("Location: http://localhost/php_template2/index.php?error=1");
And, index.php
$error = isset($_GET['error']) ? $_GET['error'] : '';
if($error) {
echo 'Failed login ! Try again...';
}
Put the above code any place you like to display. You can specify the error type with array format.
$error_message = array(
'Invalid username',
'Invalid password',
'User name and password doesn\'t match',
);
//show the error
if($error) {
echo 'Failed login ! Try again...<br />Error: ' . $error_message[$error];
}
You can identify what error type you return via loginprocess.php by passing the parameter 'error=1/2/3/....'.
Hope this help.
fnCheckSession(LoggedIn) >>> fnCheckSession('LoggedIn'). Use single quote for string argument.
You should ask magneto forum from their official web site.
Probably, $get has NULL. Check the query again. And are you sure that the connection succeed ? Make sure your mysql_connect passed or not. Anyway, use the error handler.
mysql_connect($host, $user, $pass) or die('Couldn\'t connect to MySQL. Error: ' . mysql_error());
SELECT * FROM songs, check this query manually in PHPMyAdmin via the browser.
Post the code.
Marks as Solve with the link below the text box if the problem solved.
define("TGP_SFILE_PATH", "http://localhost/aptgp/public_root/aptgp/sfiles/");
Are you sure your site is running under 'sfiles', it is not file location. It is your site index page location. Perhaps, it may be under 'aptgp'. If I'm right, use site location as 'aptgp' after 'http://localhost'.
The error is missing close bracket in somewhere. Maybe, line 715 and above. Check all line 1 to 715, all bracket are closing properly.
Try with $_SERVER. Example below.
$basePath = $_SERVER['DOCUMENT_ROOT'] . "/mywebsite/myimage/";
Indeed, as @ardav mentioned, we don't write any scripts for individual person with fees. We are contributing this forum, and help each other and sharing the techniques.
Try yourself what you want. If there is some problem you get, come here and ask help with your bugs (I want this code to do bla..bla..).
Anyway, there is some freelancers who can do for you. You can hire them with appropriate fees. You can find them with google.
@thepales, @gotboots, wrap your codes with CODE tag.
session_register()
is deprecated on PHP 5. Are you sure that you've session_start()
at the beginning of every pages.
@gotboots, wrap the codes with
[/B] tag.
[B]@eduard77[/B], what do you want to config ? In config file, there are some constants and their values. You can easily edit the value of the constant what you want. For example, if you want to change the site url. You might change this line:
[code=php]
define("TGP_WEBSITE", "http://www.yoursite.com/");
to
define("TGP_WEBSITE", "http://www.mywebsite.com/");
http://www.mywebsite.com/ is the new value of the "TGP_WEBSITE" constant.
You can also change the constant name, in this condition "TGP_WEBSITE", to another as you like. But, if the constant may use in another file of this system, so if you want to change, ensure that all TGP_WEBSITE within all files might change together.
Set default value for '$cnt'. If the 'if' statement wrong, fallback to deafult value. For example:
$cnt = 0; // fallback to use this default value when if statement wrong
if (!isset($_SESSION['cnt']) || !$_SESSION['cnt']){
$_SESSION['cnt'] = '0';
$cnt = $_SESSION['cnt'];
$cnt++;
}
$result =mysql_query($sql)
;, is not valid. Due to your post, $sql
is mysql resource, not a string (mysql command). Perhaps, it should be:
$sql = "SELECT `UserId`, `UserName`, `Password` FROM `user_login` WHERE `UserName` = '" . $_POST['username'] . "' AND Password= '" . $_POST['password'] . "'";
$result = mysql_query($sql);
Note:
- Use UPPERCASE for mysql syntax such (SELECT, INSERT, DELETE, UPDATE)
- Use CODE tag to wrap the codes you want to post.
Mark as Solved, if your problem solved.
Line 895, something miss with $in or put the colon ';' to close the statement like $in; .
This is PHP forum. So, no one won't answer your question. Move to HTML, CSS forum.
You sure that you've already DTD in your markup ? Without DTD, 'margin: auto' will not work on IE.
Anyway, we can't know what's really going wrong if you don't post any codes. Post some codes or provide the link here.
Check $num3, by echoing or using var_dump($num3). If it has non-zero value (1,2,3,...), the query is ok. Otherwise, check you've table named 'tbl_tour_profile', and ensure that the table name also corrected.
Use CODE tag to wrap the codes.
Where does $num_rows come by ? I think that it was the problem.
Post the previous codes where $num_rows come.
Normally, fileprems() returns the permission of a file.
What function did you already used, that didn't return the correct value ?
Post your codes here.
Does it solve ? If then, mark as Solved.
1.) Put 'overflow: hidden' to '#contentboven', the margin are collapsing. But, it is not the best solution, if you've some content they need to flow out of the parent container, in this case, '#contentboven', the 'overflow: hidden' will hide and the content will not visible.
2.) Set 'display: block' to the anchor inside the 'nav' and set the height to the same height of 'nav' (ie. 39px), #nav a {display: block; height: 39px;}
Hope this help.
IE9 and minor version cannot support CSS3. There is some technique for IE with CSS3. Check out here http://css3pie.com/documentation/product-comparison/
Add column automatically ? Apparently, the question look likes Javascript or maybe server-side programming.
Ask in Javascript forum. For the scroll-bar with certain width, use 'overflow: auto'.
Not clear for without margins. What mean without margin ? You've no way to move the layer without using margin, padding, or top, right, bottom, left with position (absolute or relative). You might be involved with those method to align the layer.
Anyway, I don't know exactly what you're meaning. Need more brief explain.
Wrap your codes with CODE tag.
Post your code here where the problem start.
Perhaps, seem likes the version conflict by concluding your post. Anyway, we won't help you without seeing any codes.
Are you concatenating the string ?
I'm not sure what's before of the string you posted above. If you've already used echo for the above line, echo "selected" was the problem. You cannot use echo within echo function. Try with below:
if(trim($_POST['ctype2'])=="C") "selected='selected'"
Write a function and call that function with 'onclick' event when the user was click the button. For example, the markup will be
<input type="button" value="Test" id="test" class="form-submit" onclick="generate_button()" />
And the function should go below
function generate_button(){
document.getElementById("a").innerHTML="<input type='button' value='Test' id='test' name='test' class='form-submit' />";
alert("test is clicked");
}
There is a plenty of javascript slider plugin written by multiple framework such jquery, mootools, dojo, prototype, and so on.
You can google that.
CSS3 can't support in all browser especially IE 8 and minor version. If you don't mind with IE, you can use it. Most of the modern browsers support CSS3 very well.
'dialog' is the plugin, and all are properties and values within ({}) following 'dialog', not variables.
I don't know what does the plugin suppose to do. Perhaps, you need to configure the setting correctly.
$('#dialog').dialog('open')
Should be
$('#dialog').dialog({autoOpen: true});
Or put the method of the plugin that does the dialog box appear, instead of 'autoOpen', and proper value separated by colon.
And you need to embed the plugin js file in your document. For example:
<script type="text/javascript" src="../path/jquery-dialog-plugin.js"></script>
Better if you post the code inside the plugin js file.
Hope this help.
session_start() should be very top of the file before returning any HTML output and should not have empty line or space between php opening tag and session_start(). Move 'session_start()' before any html tags. Below is the valid format.
<?php
session_start();
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/styles.css" />
</head>
<body>
<?php
if(!isset($_SESSION['captcha']))
{
session_register('captcha');
}
$PHP_SELF = $_SERVER['PHP_SELF'];
$stringa = '';
$cifre = 5;
for($i=1;$i<=$cifre;$i++)
{
$letteraOnumero = rand(1,2);
if($letteraOnumero == 1)
{
// lettera
$lettere = 'ABEFHKMNRVWX';
$x = rand(1,11);
$lettera = substr($lettere,$x,1);
$stringa .= $lettera;
}
else
{
$numero = rand(3,7);
$stringa .= $numero;
}
}
$_SESSION['captcha'] = $stringa;
?>
<table width="100" height="54" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" id="Table_01">
<tr>
<td height="39" align="left" valign="top" class="imagesstyle"><h1 class="style2"><img src="3EImages/dot3E.jpg" alt="" width="29" height="29" align="left" class="imagesstyle" />Contact Us<br />
</h1>
<td height="39" valign="top" style="padding-top: 5px"><a href="http://www.3esolutionsindia.com/" target="_blank">Home</a></td>
</td>
</tr>
<tr>
<td align="left" valign="top" class="tableDetail"><p><img src="3EImages/ContactUs/Enquiry.jpg" width="170" height="124" align="right" class="imgbrdr" /><strong>Thanks for showing interest in 3E Solutions.</strong> <br />
<br />
Kindly fill all the required fields. We will get in touch with you within 24 hours.</p>
<p> </p>
<form id="captchaform" action="contact.php" method="post" style="width:300px;">
<p align="right"> <label>
*Name:
<input type="text" name="name" id="name" size="30"/>
</label></p>
<p align="right">*Email Address:
<label>
<input type="text" name="email" id="email" size="30" />
</label>
</p>
<p align="right">Phone No:
<label>
<input type="text" name="phone" id="phone" size="30" />
</label>
</p>
<p align="right" style="">Interseted in:
<label>
<textarea name="interested" cols="30" rows="6" wrap="physical" id="interested">
</textarea>
</label>
</p>
<p align="right">
<div id="captcha">
<p align="right"><img src="captcha.php" /> </p>
<p align="right"><label for="code">*Enter Code: </label>
<input type="text" name="code" id="code" size="30" /></p>
</div>
</p> …
There is many tutorials about PHP login/out system. Why not you google first before posting here ?
You must register the domain name first, and you must point your host (ie, your web server) with that domain. You can easily done with your domain panel. Furthermore, you might have already setup DNS on your server, which will handle the domain/IP forward and reverse look up.
You need to ask help from any network pro, and they will keep your work on straight forward quickly.
Hope this help.
<form action="<?php echo pf_script_with_get([B]$SCRIPT_NAME[/B]); ?>" method="post">
The bold text should be $_SERVER.
What is the purpose that the function pf_script_with_get doing ?
If you want the form action to the same page. Use $_SERVER which returns the current url including query string (ie., you can get those with $_GET method ), or use $_SERVER which returns the current url without query string.
if(file_exists($filepath)) {
die('File exists');
} else {
die('File doesn\'t exist');
}
This may be better format comparing the return value as boolean (true). The '$filepath' might be the absolute or relative path including file name and extension.
What's the problem you're facing ? What do you mean that function does not work correctly ? Any error you get, then, post the error message.
What does the page return ? Did you already create the controller for your component ? It is usually inside the controllers folder which is under the component folder with 'com_' suffix.
If you are beginner for developing joomla platform, I want you to suggest to download 'hello_world' component, and you'll know how to develop joomla component.
Did you already pass the get vars for '$_GET' ? If your url has not include 'P_Category', '$_SESSION' will undefined variable.
$_SESSION['P_Category'] = isset($_GET['P_Category']) ? $_GET['P_Category'] : 'default'; // if you've already P_Category with url, assign to the session, otherwise, default value will assign to the session
Google yourself. You'll see many tutorials. Also, check @digwnews links.
<?php
include('../config.php');
session_destroy();
session_unset();
?>
Remove the indentation white spaces from these lines. Like this
<?php
include('../config.php');
session_destroy();
session_unset();
?>
Where is your index.php and header.php ? Your path looks like 'header.php' is under 'includes' folder which is the same root of the folder which contains 'index.php'.
The error says that the file does not exist in this directory. Check the path again. I'm not sure, perhaps, the 'includes' folder might be same root with 'index.php'. If then, remove '..' from include(../includes/header.php)
, like this one, include(includes/header.php)
Hope this help.
You can use 'header()' function with PHP.
header('location: your_page.php');
" <div class=\"shopping_cart\">
<div class=\"cart_title\">Shopping cart</div><div class=\"cart_details\">Items
echo $_SESSION; <br /> /// this line has error
<span class=\"border_cart\"></span>
Total: <span class=\"price\">echo $_SESSION; </span> ////this line has error also
</div><div class=\"cart_icon\"\><a href=\"#\" title=\"header=[Checkout] body=[ ] fade=[on]\"><img src=\"images/shoppingcart.png\" alt=\"\" title=\"\" width=\"48\" height=\"48\" border=\"0\" /></a></div>
</div>";
Wrong syntax. Try with below:
echo "<div class=\"shopping_cart\">\n
<div class=\"cart_title\">Shopping cart</div>\n
<div class=\"cart_details\">Items " . $_SESSION['Items'] . "<br /><span class=\"border_cart\"></span>
Total: <span class=\"price\">" . $_SESSION['Price'] . "</span>\n
</div>\n
<div class=\"cart_icon\"\><a href=\"#\" title=\"header=[Checkout] body=[ ] fade=[on]\"><img src=\"images/shoppingcart.png\" alt=\"\" title=\"\" width=\"48\" height=\"48\" border=\"0\" /></a></div>\n
</div>\n";
'\n' for line feed. It will force to appear HTML tag from the new line in the source code.