335 Posted Topics
Re: Try setting ` ob_start(); ` at the top or after your include. ![]() | |
Re: if you are having trouble try using jquery. $(document).ready(function(){ $('.nivoSlider img').css('border','none'); }); | |
Re: Looks like you have this fixed. | |
Re: Try adding: `$('img').css('margin','0px 50px');` | |
Re: If you are starting out, I would suggest creating a simple blog application. Keep it simple until you get strong in you php coding. A simple blog application will require php and mysql. You can even add jquery to make it more dynamic. | |
Re: Not sure your question is clear. You would like to have on the homepage of you site or any page of you site display the server status? php script to check if the server is up or down, then display the status on the page? like this: [Click Here](http://www.downforeveryoneorjustme.com/) ![]() | |
Re: Try this in your htaccess: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^.]+)$ $1.php [NC,L] RewriteRule ^(.*)\.html$ $1.php | |
Re: try placiing `ob_start();` after your `session_start();` This will allow you to render code and send headers without getting the error. | |
Re: Here is some code to get you started. This is a very basic mockup but if you look at the code and run it, this might point you in the direction you're looking for. jQuery: $(document).ready(function(){ $('#go').click(function(){ var staff_id = $('#staff_id').val(); if($.isNumeric(staff_id)){ var data = 'staff_id=' + staff_id; $.ajax({ url: … | |
Re: Here is a simple contact form in php. This checks if the fields are empty and if the email is valid using regex pattern. If all fields are correct the php will use the mail function to send the data to the myEmail value. This may not be what you … ![]() | |
Re: Do you want to find a solution for your visitors or staff to download spreadsheets form you database to excel? if so contact me and I can help you, I resently created a solution for a project I was working on. if you need to have the 10 spreadsheets uploaded … ![]() | |
Re: Try this, looks like your footer was missing a div, and i would remove the font face.. use css to handle that. I could not tell is this will fix your issues, I would have to see the css or the web page <div class="wrapper"> <div class="header"> <div class="header_top"></div> <div … | |
![]() | Re: you dont need to user header. if you are setting up a search form you need to use form and also need to user post/get. Example: <form action="search.php" method="GET"> <div> <p><input type="text" name="q" /></p> <p><input type="submit" value="Search" /></p> </div> </form> When you get you user input for the search form, … |
Re: Try using a framework to cut time down. http:foundation.zurb.com or http://twitter.github.com/bootstrap/index.html if not able to use a framework. Make sure to comment your css, remember to user descriptive names when creating id's and class's make sure to indent your code, and leave comments for comlicated stuff. If you're slicing a … | |
Re: User keywords for every page. make sure the keywords in listed in the page somewhere. You could even create a tag cloud to list your keywords. but you want the keywords in your content as much as possible. Page description for each page. This will follow the same rules for … | |
Re: Try this: function custom_css(){ if( !is_admin() ){ $css_path = get_bloginfo('template_directory').'/'; wp_register_style('custom-css',$css_path.'css/custom.css',array().'1.0','all'); wp_enqueue_style('custom-css'); } } add_action('wp_enqueue_scripts','custom_css'); | |
Re: First you want to give you anchor tag the background image, unless you want you ul or li tag to have it. If you give the anchor tag the background, you can change the background with different states like, :hover, :active etc.. Here is what i would do. #P_navigation li … | |
Re: here is what I use, the best i could find so far.. i use with json for pull data out of db using php [Click Here](http://www.highcharts.com/) | |
Re: This will export .xls file all you would need to do is create your own query. I created a form with a hidden field value of id number and a download input button, so when user clicks on the download button, the id gets sent to my query and exports … | |
Re: try using unset() Example: <?php session_start(); unset($_SESSION['username']); unset($_SESSION['user_id']); or session_start(); unset($_SESSION['username'], $_SESSION['user_id']) ?> With this you could unset specific vars if needed. or you could use `session_unset();` to kill them all. When I write logout scripts I use <?php session_start(); session_unset(); session_destroy(); header("Location: ". $_SERVER['HTTP_HOST']."/"); exit; ?> | |
Re: Here is some help to get you started, its not working code, just a rough outline to get you started. it's simple and basic, but this is how I create simple CRUD forms. //Connect to db mysql_connect(); //Select DB mysql_select_db(); //Catch Post Data and Process if(isset($_POST['edit'])){ $profile_id = $_POST['pid']; $username … | |
I'm trying to write a script to restart my wamp server with the click of a button. I am trying to use `exec("c:\\\\wamp\wampmanager.exe -restart");` to run the command. Seems to be not working. I have used system(), and passthru(); functions to get the results I am looking for but got … | |
How do i get value from this return? Im looking to get the value of 2. array 79 => object(stdClass)[356] public 'parent' => int 8 public 'type' => string 'meta' (length=4) public 'name' => string 'limitcounter' (length=12) public 'value' => string '2' (length=1) | |
Re: Using PHP Step 1 create form with html. Create input fields for each peice of data you would like to collect. i.e. firstname lastname email ... so on. Step 2 create a php function or method to process the user data. step 3 use the processed data, to insert into … | |
Re: Change text-align: centre; to text-align: center; Their is no such things as float: centre; only : float:left; /float:right;/float:none/float:inherit; | |
Re: Here is what i do: <div class="wrapper"> <div class="main-content"> <h2>Hello World</h2> </div><!--end of main content --> </div><!-- end of wrapper --> /*CSS Styles*/ .wrapper {background:#fff; boder:1px solid #ddd; margin:0 auto; padding:0 20px width:1024px;} | |
Re: check out Sublime Text 2 I think you will be happy with the results of this editor. | |
Im using this script to disable and enable input box. When I check the box, the input is enabled, but when I uncheck the box the input is still enabled. Not sure how to fix this. $(document).ready(function(){ $(".ncjhs_student").attr("disabled",true); $(".send_records").attr("disabled",true); $("#send_records").click(function(){ $(".send_records").removeAttr("disabled"); }); $("#ncjhs_student").click(function(){ $(".send_records").removeAttr("disabled"); }); }); | |
Re: When I create a new site or app, I edit two files. my host file for windows, and my http.conf file for wamp. The first block is to point wamp to a new folder I created on my C: drive 'www' inside that folder i create subfolders for each site … | |
| |
Re: clear:both can be used instead of clear class. This would keep you from having to plase extra div inside the markup <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Canada-Accessible</title> <link href="css/main.css" rel="stylesheet" type="text/css"> <style type="text/css"> @charset "UTF-8"; /* CSS Document */ #holder{ background:green; padding:10px; … | |
Re: Is this what you are looking for? I added this bit of code: #content ul { display:block; float:left; width:115px; padding:10px 20px; } #content ul p { display:block; text-align:center; } <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Canada-Accessible</title> <link href="css/main.css" rel="stylesheet" type="text/css"> <style type="text/css"> @charset … | |
Hello, Im having issue's with this jquery code for enabling and disabling select/input box's. I have been googing everything but can not find a solution. Any help would be appreciated. Thanks <?php session_start(); require_once 'includes/ncjhs_summerschool.php'; foreach($_POST as $key => $value ) { if( in_array($key,$CAPTURE_FIELDS) ) { $_SESSION[$key] = $value; } … |
The End.