546 Posted Topics

Member Avatar for mpw5013
Member Avatar for mpw5013
0
115
Member Avatar for atalkingfish

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 …

Member Avatar for atalkingfish
0
136
Member Avatar for sam230

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.

Member Avatar for ko ko
0
949
Member Avatar for davy_yg

fnCheckSession([B][COLOR="Red"]LoggedIn[/COLOR][/B]) >>> fnCheckSession('LoggedIn'). Use single quote for string argument.

Member Avatar for ko ko
0
255
Member Avatar for kira_
Member Avatar for Dante2

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]

Member Avatar for Dante2
0
309
Member Avatar for hish84

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]

Member Avatar for AbhishekBiswal
0
301
Member Avatar for eduard77

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

Member Avatar for ko ko
0
178
Member Avatar for thepales

@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.

Member Avatar for fenixZ
0
293
Member Avatar for pinkygirl

Try with [B]$_SERVER['DOCUMENT_ROOT'][/B]. Example below. [code=php] $basePath = $_SERVER['DOCUMENT_ROOT'] . "/mywebsite/myimage/"; [/code]

Member Avatar for pinkygirl
0
122
Member Avatar for eduard77

The error is missing close bracket in somewhere. Maybe, line 715 and above. Check all line 1 to 715, all bracket are closing properly.

Member Avatar for karthik_ppts
0
75
Member Avatar for bobbywe

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 …

Member Avatar for Ezzaral
0
119
Member Avatar for cgull

Check [URL="http://net.tutsplus.com/articles/news/how-to-build-a-login-system-for-a-simple-website/"]this[/URL].

Member Avatar for cgull
0
136
Member Avatar for fradiavolo

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]

Member Avatar for fradiavolo
0
192
Member Avatar for gotboots

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', …

Member Avatar for gotboots
0
187
Member Avatar for mownam

`$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: - …

Member Avatar for stoopkid
0
230
Member Avatar for asif49

This is PHP forum. So, no one won't answer your question. Move to HTML, CSS forum.

Member Avatar for Nick Evan
0
83
Member Avatar for mary_forum
Member Avatar for zjbarden
Member Avatar for almr3b

Line 895, something miss with [B]$in[/B] or put the colon ';' to close the statement like [B][COLOR="Red"]$in;[/COLOR][/B] .

Member Avatar for diafol
0
541
Member Avatar for asif49

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.

Member Avatar for ko ko
0
84
Member Avatar for rakwel10

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.

Member Avatar for ko ko
0
129
Member Avatar for soomro_moon
Member Avatar for terrymold

Where does $num_rows come by ? I think that it was the problem. Post the previous codes where $num_rows come.

Member Avatar for ko ko
0
148
Member Avatar for sv3tli0

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.

Member Avatar for ko ko
0
105
Member Avatar for Dannis86

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 …

Member Avatar for ko ko
0
221
Member Avatar for nikki05

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 …

Member Avatar for nikki05
0
7K
Member Avatar for rouse

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

Member Avatar for rouse
0
75
Member Avatar for praveen_dusari

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'.

Member Avatar for ko ko
0
166
Member Avatar for aureliusnoble

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.

Member Avatar for ko ko
0
53
Member Avatar for Virangya

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 …

Member Avatar for Virangya
0
184
Member Avatar for emulman

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

Member Avatar for emulman
0
1K
Member Avatar for DILO3D

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 …

Member Avatar for ko ko
0
2K
Member Avatar for miles.fuentes

There is many tutorials about PHP login/out system. Why not you google first before posting here ?

Member Avatar for Timroden
-1
149
Member Avatar for nblackburn

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

Member Avatar for nblackburn
0
19K
Member Avatar for rom.

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.

Member Avatar for rom.
0
339
Member Avatar for davy_yg

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 …

Member Avatar for azeem786
0
2K
Member Avatar for mrhankey

You can use 'header()' function with PHP. [code=php] header('location: your_page.php'); [/code]

Member Avatar for Rhamises
0
137
Member Avatar for Farhad.idrees

[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=[&nbsp;] fade=[on]\"><img src=\"images/shoppingcart.png\" alt=\"\" title=\"\" width=\"48\" height=\"48\" border=\"0\" /></a></div> </div>";[/QUOTE] Wrong syntax. Try with below: …

Member Avatar for mamdouh ramadan
0
114
Member Avatar for Farhad.idrees

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]

Member Avatar for mamdouh ramadan
0
99
Member Avatar for youvi

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 …

Member Avatar for ko ko
0
81
Member Avatar for rahulvramesh

Google yourself. You'll see many tutorials. Also, check @digwnews links.

Member Avatar for ko ko
0
277
Member Avatar for cipcip

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

Member Avatar for ko ko
0
136
Member Avatar for ivan3510

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]

Member Avatar for ivan3510
0
262
Member Avatar for l0ns008

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 …

Member Avatar for l0ns008
0
193
Member Avatar for chris_j_haines

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]

Member Avatar for ddymacek
0
190
Member Avatar for ErangaD
Member Avatar for ErangaD
0
154
Member Avatar for karyal

So, does your problem solve ? If then, marks as 'Solved thread' with the link under the message box.

Member Avatar for coolest_987
-3
112
Member Avatar for masterjiraya

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

Member Avatar for ko ko
0
317
Member Avatar for bangla

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.

Member Avatar for bangla
0
286

The End.