546 Posted Topics
Re: '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. | |
Re: 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. | |
Re: 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' … | |
Re: Did you already share the web folder ? And you need to set the permission. Check at first. | |
Re: 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] | |
Re: 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[] … | |
Re: 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. | |
Re: 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]. | |
Re: '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. ![]() | |
Re: Your question is not clear. Any example or brief codes that you have ? Post the codes that you're referring. | |
Re: 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 … | |
Re: Linux server treat case-sensitive. logIn.php and login.php are different whether they're same file on Windows server. Check your filename. | |
Re: 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. | |
Re: 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] ![]() | |
Re: It is server-side problem. Better ask on PHP forum. Move this thread to PHP forum. | |
| |
Re: 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"> … ![]() | |
Re: 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 ';' … | |
Re: 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] … | |
Re: 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], … | |
| |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: 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] | |
Re: 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. | |
Re: '+' means one or more match at least one match whether '?' means zero or one. | |
Re: 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 … | |
Re: 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]. | |
Re: Use modifier for multiline, e.g., '/^host2/m' | |
Re: Check out there. [URL="http://www.wordpress.org/plugins"]http://www.wordpress.org/plugins[/URL] | |
Re: Check out [URL="http://extensions.joomla.org/"]here[/URL]. | |
Re: Why not post any code or the link ? We're not sight-seeing men. | |
Re: Here is complete resources about PHP. [URL="http://www.php.net"]http://www.php.net[/URL] | |
Re: 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 … | |
Re: 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]. | |
Re: Post index.php you've problem. | |
Re: Are you meaning hidden files ? ![]() | |
Re: 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 … | |
Re: What's your problem ? Post something such question about what you want. It is rather helpful than asking your whole question in post title. | |
Re: 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] ![]() | |
Re: Use 'z-index'. Determine which layer is front and which is bottom. | |
Re: 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. | |
Re: 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. |
The End.