546 Posted Topics
Re: You should ask magneto forum from their official web site. | |
Re: 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. [code] mysql_connect($host, $user, $pass) or die('Couldn't connect to MySQL. Error: ' . mysql_error()); [/code] [B]SELECT * FROM songs[/B], check this query … | |
Re: Absolutely, [B]$row[/B] is an associative array, not numeric. It has value same with [B]$pageListArray[/B]. So, the index must be string, not number. 'longtitude', 'lattitude', 'hospitalType', or 'value', as pointed by @pritaeas. | |
Re: fnCheckSession([B][COLOR="Red"]LoggedIn[/COLOR][/B]) >>> fnCheckSession('LoggedIn'). Use single quote for string argument. | |
Re: Maybe, there is no post in the `comments` table. You can check manually in phpMyadmin. [code] SELECT name FROM comments WHERE blog_id = 'your_id' ORDER BY dateposted; [/code] | |
Re: IE9 and minor version cannot support CSS3. There is some technique for IE with CSS3. Check out here [URL="http://css3pie.com/documentation/product-comparison/"]http://css3pie.com/documentation/product-comparison/[/URL] | |
Re: [B]@gotboots[/B], wrap the codes with [B][CODE][/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 … | |
Re: @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. | |
Re: Try with [B]$_SERVER['DOCUMENT_ROOT'][/B]. Example below. [code=php] $basePath = $_SERVER['DOCUMENT_ROOT'] . "/mywebsite/myimage/"; [/code] | |
Re: The error is missing close bracket in somewhere. Maybe, line 715 and above. Check all line 1 to 715, all bracket are closing properly. | |
Re: 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 … | |
Re: Check [URL="http://net.tutsplus.com/articles/news/how-to-build-a-login-system-for-a-simple-website/"]this[/URL]. | |
Re: Set default value for '$cnt'. If the 'if' statement wrong, fallback to deafult value. For example: [code] $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++; } [/code] | |
Re: You've not execution query. [code] $query = mysql_query($sql); if(!$query){ die('Update failed!. Error:' . mysql_error()); } [/code] This one is more clear format. [code] $sql = "UPDATE `my_db` SET `date_in` = '$today', `customer_name` ="$customer_name", `billing_address` = '$billing_address', `billing_suburb` = '$billing_suburb', `billing_city` = '$billing_city', `same_as` ='$same_as', `shipping_address` = '$shipping_address', `shipping_suburb` = '$shipping_suburb', … | |
Re: `$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: - … | |
Re: This is PHP forum. So, no one won't answer your question. Move to HTML, CSS forum. | |
![]() | |
Re: Mark as [B]Solved[/B], if your problem solved. | |
Re: Line 895, something miss with [B]$in[/B] or put the colon ';' to close the statement like [B][COLOR="Red"]$in;[/COLOR][/B] . ![]() | |
Re: 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. | |
Re: Check [B]$num3[/B], by echoing or using [B]var_dump($num3)[/B]. 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. | |
| |
Re: Where does $num_rows come by ? I think that it was the problem. Post the previous codes where $num_rows come. | |
Re: Normally, [B]fileprems()[/B] returns the permission of a file. What function did you already used, that didn't return the correct value ? Post your codes here. | |
Re: 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 … | |
Re: 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 … | |
Re: 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. … | |
Re: 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'. | |
Re: 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. | |
Re: 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 … | |
Re: '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. [code] $('#dialog').dialog('open') [/code] Should be [code] $('#dialog').dialog({autoOpen: true}); [/code] Or put the method of the plugin … | |
Re: Write a function and call that function with 'onclick' event when the user was click the button. For example, the markup will be [code] <input type="button" value="Test" id="test" class="form-submit" onclick="generate_button()" /> [/code] And the function should go below [code] function generate_button(){ document.getElementById("a").innerHTML="<input type='button' value='Test' id='test' name='test' class='form-submit' />"; alert("test is … | |
Re: There is many tutorials about PHP login/out system. Why not you google first before posting here ? | |
![]() | Re: [code=php] if(file_exists($filepath)) { die('File exists'); } else { die('File doesn't exist'); } [/code] 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 … ![]() |
Re: Check the opening and closing of bracket '{}'. And make sure that all are properly nested. It may due to the error above the line 15. It is helpful if you post the complete codes. | |
Re: 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 … | |
Re: You can use 'header()' function with PHP. [code=php] header('location: your_page.php'); [/code] | |
Re: [QUOTE] " <div class=\"shopping_cart\"> <div class=\"cart_title\">Shopping cart</div> <div class=\"cart_details\">Items echo $_SESSION['Items']; <br /> /// this line has error <span class=\"border_cart\"></span> Total: <span class=\"price\">echo $_SESSION['Price']; </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>";[/QUOTE] Wrong syntax. Try with below: … | |
Re: Did you already pass the get vars for '$_GET['P_Category']' ? If your url has not include 'P_Category', '$_SESSION['P_Category']' will undefined variable. [code=php] $_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 [/code] | |
Re: 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 … | |
Re: Google yourself. You'll see many tutorials. Also, check @digwnews links. | |
Re: [QUOTE]<?php include('../config.php'); session_destroy(); session_unset(); ?>[/QUOTE] Remove the indentation white spaces from these lines. Like this [code=php] <?php include('../config.php'); session_destroy(); session_unset(); ?> [/code] | |
Re: Check this. [URL="http://php.net/manual/en/function.get-html-translation-table.php"]http://php.net/manual/en/function.get-html-translation-table.php[/URL] | |
Re: Move 'mysql_close' to the very last of the statements. Also, 'mysql_close' has one arguments which was the current opening connection. Like below: [code=php] $con = mysql_connect($host, $user, $pass); // open the connection, $host as mysql host, $user as mysql user, $pass as mysql password mysql_close($con); // close the current connection … | |
Re: Use [B]POST[/B] method. Never use [B]GET[/B] with user informations. Remove the bracket at line 23. [QUOTE]$photo = ($_FILES['photo']['name']);[/QUOTE] Use instead above: [code=php] $photo = $_FILES['photo']['name']; [/code] | |
Re: It is Javascript problem. Move to Javascript forum. | |
Re: So, does your problem solve ? If then, marks as 'Solved thread' with the link under the message box. | |
Re: [B][COLOR="Red"]session_START[/COLOR]()[/B] Why did you write like that ? Note that PHP is case-sensitive. 'START' and 'start' are different. Write stabilized and obey the standard. [QUOTE]there's a big bang on my head now. what ever the query is. it takes the same results... like changing the bookname query into default query … | |
Re: Colon ';' is missing at line 4. Also, try with realpath of your upload folder. Change the '$path' like below: [code=php] $path = $_SERVER['DOCUMENT_ROOT'] . "/your_web_folder/upload/" . $name_of_file; [/code] Don't miss the colon ';' at the end of the line. |
The End.