546 Posted Topics

Member Avatar for rajeesh_rsn

'setRedirect' is the method of joomla core controller. You need to import the core library and extends your class to the 'JController'. I'm not sure is there another way to solve the problem. You can find the problem on joomla forum and support.

Member Avatar for ko ko
0
105
Member Avatar for ikhan42
Member Avatar for ougesh

I want to suggest to go to [URL="http://www.php.net/manual/en"]http://www.php.net/manual/en[/URL]. It is the perfect place for studying PHP. All function references are providing there.

Member Avatar for ougesh
0
124
Member Avatar for mwenyenia07

Write the function that checks the session that the user was already login or not. If the user was not already login, redirect to login page, otherwise, redirect to the specific page. With my opinion, write the authentication function in the library and check the user login, and use 'autoload' …

Member Avatar for ko ko
0
74
Member Avatar for mwenyenia07

Did you already share the web folder ? And you need to set the permission. Check at first.

Member Avatar for ko ko
0
64
Member Avatar for kaizokupuffball

Line 85: [code=php] $copied = copy($_FILES['image']['tmp_name'], $newname); [/code] Use below instead of above. [code=php] $copied = move_uploaded_file($_FILES['image']['tmp_name'], $newname); [/code]

Member Avatar for kaizokupuffball
0
272
Member Avatar for shahbaz13

You should use array to get the data withing the loop. If not, the second will override the first and the third will override the second and so on. Finally, you would have only result, the last one. Check Line 25, [code=php] $name = $row["name"]; [/code] Should be [code=php] $name[] …

Member Avatar for shahbaz13
0
114
Member Avatar for utthu

You cannot put the line break within the options. Perhaps, 'optgroup' is better way to use. [code=php] <optgroup label="Group 1"> $i=0; for($i=6;$i < $numfields; $i++) { echo '<option value="' . mysql_field_name($result,$i) . '" name="your_option_name">'; } ?> </optgroup> [/code] Hope this help.

Member Avatar for prasad90
0
256
Member Avatar for haimz

Perhaps, syntax highlighting in IDE you're meaning. Notepad++ has syntax highlighter for functions, variables and class with various languages. Check [URL="http://notepad-plus-plus.org/"]here[/URL].

Member Avatar for cereal
0
283
Member Avatar for aa06ron

'var_dump($result)' before while loop. Check which '$result' has, it should be mysql resources. If not 'mysql_fetch_assoc()' will returns the error. Check with 'var_dump()' first.

Member Avatar for P0lT10n
0
134
Member Avatar for Rahul1996

Your question is not clear. Any example or brief codes that you have ? Post the codes that you're referring.

Member Avatar for almostbob
0
102
Member Avatar for obimobs

Create login form for using via web page (can be both HTML and PHP). Pass the data from that form to the login script and check if the user input data are already exists in the database, i.e., the username and password does not match or not. You can learn …

Member Avatar for leakbali
0
111
Member Avatar for utpal23

Linux server treat case-sensitive. logIn.php and login.php are different whether they're same file on Windows server. Check your filename.

Member Avatar for ko ko
0
301
Member Avatar for bjeffries

I don't know how the plugin suppose to do. Any references or documentations provided ? Anyway, you can find the WP function references on WP official site. If you're getting the errors, post the errors here. Or if your site is running alive, provide the link here.

Member Avatar for bjeffries
0
179
Member Avatar for felix001

Use nl2br() as @ardav stated. It automatically replace new line character (\n) with html 'br' tag. It prototype looks like: [code] nl2br(string); echo nl2br("foo\nbar"); //return foo<br />bar [/code]

Member Avatar for diafol
0
2K
Member Avatar for calebcook
Member Avatar for vectro
Member Avatar for vectro
0
202
Member Avatar for niche1
Member Avatar for fokys

Use session or pass variable for message like 'http://url.com/msg=1', and fetch the message with $_GET and determine what the message refers. And show this message near your form. Example below: [code=php] $message = array("Invalid username","Invalid password","Invalid email","Account created successfully"); index.php <html> <head> <title>Registration Form</title. </head> <body> <form name="registrationform" method="post" action="register.php"> …

Member Avatar for diafol
0
123
Member Avatar for hsetaknev

Try this: [code] <html> <head> <title>My first PHP By my own</title> </head> <body> <?php echo "My first program and its a failure"; ?> </body> </html> [/code] You should not have the plain text directly between the head tags. You can do in body tags. Also, you must write semi-colon ';' …

Member Avatar for hsetaknev
0
716
Member Avatar for afatn

What does the error show ? However, you will not get any value with $_GET['epno']. You was using 'uid' in the url. I'm not sure, without seeing your error status. Perhaps, it may solve your problem. Replace line 15 in profile.php with the line below. [code=php] $id = $_GET['uid']; [/code] …

Member Avatar for afatn
0
754
Member Avatar for Whilliam

Did you already fetch each user id with these rows ? If then, you can pass these id with the ban anchor link to the ban process controller or action. And then, you can retrieve that id from the controller/action that you want to process with the built-in function [icode=php]$this->uri->segment(n)[/icode], …

Member Avatar for ko ko
0
74
Member Avatar for abhi10kumar
Member Avatar for ko ko
0
88
Member Avatar for knitex

What is the problem ? What do you want to do with the above codes ? Your post is not clear. Be more precise and tell us what do you want to do.

Member Avatar for decade
0
147
Member Avatar for jemz

You cannot control background size with CSS. Apparently, your problem kinda looks like position problem. [code] .samplebody{ background:url('images/port1.jpg'); background-size:1024px; background-repeat:no-repeat; background-position: top center; /* Adjust the position yourself */ } [/code] Hope this help.

Member Avatar for jemz
0
83
Member Avatar for kira_

Make sure that the field names are correct. Anyway, post the codes above of these three lines. It may easy to find the problem quickly.

Member Avatar for faroukmuhammad
0
195
Member Avatar for samsnov

Put the slash if you're using DTD. [CODE]<link rel='shortcut icon' type='image/x-icon' href='http://www.schoolfriendtime.com/favicon.ico' />[/CODE]

Member Avatar for almostbob
0
81
Member Avatar for waluigi

Put both horizontal and vertical value. Perhaps, try this: [code] ul#nav { background: url(img/2/separator.jpg) left center no-repeat; } [/code] With this above statement, ensure that your ul and li tags have proper height value, especially the same value will looks better.

Member Avatar for ko ko
0
77
Member Avatar for itisnot_me

'+' means one or more match at least one match whether '?' means zero or one.

Member Avatar for hielo
0
292
Member Avatar for observ

Check line number 9 in coupon.php. [QUOTE]' ' . htmlspecialchars($_GET["coupon"]) . '';[/QUOTE] What is this ? Perhaps, you should have. [code] $coupon = htmlspecialchars($_GET["coupon"]); [/code] And then, if...else statement should go like below [code] if($coupon == ''){ echo "<h2>The request is invalid</h2>"; } else{ $coupon_code = $coupon; } [/code] And …

Member Avatar for Stefano Mtangoo
0
887
Member Avatar for extemer

Upload to where ? You've not upload to any destination. You've need 'move_uploaded_file' function to store the image from the temp directory to destination folder which you want to store. Example like below [code] move_uploaded_file('image_name', 'destination'); [/code] The complete info [URL="http://php.net/manual/en/function.move-uploaded-file.php"]here[/URL].

Member Avatar for IIM
0
179
Member Avatar for DILO3D
Member Avatar for abhi10kumar
Member Avatar for Viruthagiri
Member Avatar for Viruthagiri
0
370
Member Avatar for lwschjang
Member Avatar for zjbarden
Member Avatar for Charles1620

Here is complete resources about PHP. [URL="http://www.php.net"]http://www.php.net[/URL]

Member Avatar for n_e
0
116
Member Avatar for aru211285
Member Avatar for attism

Codes are so messy. Use period (.) for string concatenation, not comma (,). And also escape the special character when mix-used with javascript parameter like [icode]onmouseover="cancelHide('one')" [/icode]. Escape the single-quote while you're using single-quote, if you use double-quote, escape double-quote in reverse case. Try with below: [code] foreach ($menu->categories as …

Member Avatar for attism
0
233
Member Avatar for lemur

You'll see does your code invalid or not. [URL="http://validator.w3.org/"]http://validator.w3.org/[/URL]. As drjohn state, you must have some basic knowledge with HTML, CSS and their standards which are standardizing by [URL="http://w3.org/"]W3C[/URL].

Member Avatar for lemur
0
111
Member Avatar for Julia25
Member Avatar for jacob21
Member Avatar for narekm
Member Avatar for Espenij

Try this [code] <?php if(isset($_GET["id"])){ if($_GET["id"] == "web"){ echo "<link rel='stylesheet' href='css/style.css' media='screen'/>"; echo "<link rel='stylesheet' href='css/style.css' media='handheld, only screen and (max-device-width:480px)' />"; echo "<meta name='viewport' content='width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;' />"; } else { echo "<link rel='stylesheet' href='css/style.css' media='screen'/>"; echo "<link rel='stylesheet' href='css/iphone.css' media='handheld, only screen and (max-device-width:480px)' />"; echo …

Member Avatar for Espenij
0
8K
Member Avatar for gertails

What's your problem ? Post something such question about what you want. It is rather helpful than asking your whole question in post title.

Member Avatar for Ezzaral
-1
674
Member Avatar for naru vaishnaw

Check line 11 and 12. You use post method in form. But, you get with GET method. [QUOTE]if($_GET['user_id']){ //gets userid $friend_id=$_GET['user_id']; [/QUOTE]

Member Avatar for diafol
0
150
Member Avatar for hajjo
Member Avatar for ko ko
0
133
Member Avatar for f_atencia

SPAN is inline element and DIV is block. Inline element cannot contain block-level elements whether block-level element can contain both block and inline elements. Try to alter way to use.

Member Avatar for ko ko
0
95
Member Avatar for anandhikrishnan
Member Avatar for Xufyan

It's not important if the user turn-off javascript or not. You might check from the server-side at least for the security reasons like mysql injection.

Member Avatar for Stefano Mtangoo
0
361

The End.