Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 76
Search took 0.07 seconds.
Search: Posts Made By: Thuita Maina
Forum: PHP 04-11-2013, 08:21 AM
Replies: 3
Views: 114
Posted By Thuita Maina
Question How do I put a web page to indicate my website is under maintainance

I want a page to be displayed indicating my website is under repair when I am working on my website when any page of the website is loaded. How do I accomplish this?
Forum: PHP 04-04-2013, 12:00 AM
Replies: 1
Views: 137
Posted By Thuita Maina
Question Fatal error: Maximum execution time of 10 seconds exceeded in /home/a3763404/public_h

I'm getting the following error when I try to index my webpages:



How do I increase the maximum execution time?
Forum: PHP 04-03-2013, 06:12 PM
Replies: 1
Views: 189
Posted By Thuita Maina
Question What's wrong with this code?

Why is the code below not echoing the photo? What could be wrong with the line in dark orange?
<?php



// Include database connection settings
include('config.inc');

//first select the post...
Forum: PHP 04-03-2013, 02:26 PM
Replies: 4
Views: 204
Posted By Thuita Maina
knightCoder, I'm new to PHP programming, so I...

knightCoder, I'm new to PHP programming, so I don't how to implement it in the code you've given. Please help.
Below is the PHP code displaying images on my webpage from a link in a database. I'd...
Forum: PHP 04-03-2013, 12:56 PM
Replies: 0
Views: 164
Posted By Thuita Maina
Question How Do I Use The Following Code?

A coder on CodingForums has provided me with the following code that is meant to resize an image proportionally if it exceeds a width of 425. I'm new to PHP programming, so I don't how to implement...
Forum: PHP 04-02-2013, 09:32 PM
Replies: 4
Views: 204
Posted By Thuita Maina
Question Resizing Images

I want to achieve the following task (not sure whether in PHP, HTML or CSS): If an image exceeds a certain width, it resizes in a way that doesn't compress the image. If the image does not exceed the...
Forum: PHP 03-23-2013, 11:17 PM
Replies: 0
Views: 147
Posted By Thuita Maina
Question How do I paginate searched items?

Now that no one came to my aid in my previous threads, I request anyone with a link to a website that clearly explains how to paginate searched items to kindly share it with me. Thanks.:mad:
Forum: PHP 03-23-2013, 10:29 PM
Replies: 2
Views: 177
Posted By Thuita Maina
Arcticwarrio, please message an expert to help...

Arcticwarrio, please message an expert to help me. It's giving me stress.
Forum: PHP 03-23-2013, 03:44 PM
Replies: 2
Views: 177
Posted By Thuita Maina
Angry Pagination for search results not working

The PHP code below is displaying only the first page of searched items. What is making the other pages of the searched item blank? Please help.
<?php

$page = (int) $_GET['page'];
if ($page < 1)...
Forum: PHP 03-23-2013, 01:52 PM
Replies: 1
Views: 192
Posted By Thuita Maina
Unhappy Help in understanding why contents of page 2 are not being displayed

Below is the code for searching data from a database and displaying the results on a webpage. The data to be searched is gotten from a form i.e. a search box. The code should list the first 20...
Forum: PHP 03-23-2013, 12:35 PM
Replies: 1
Views: 192
Posted By Thuita Maina
Question Contents of page 2 not being displayed

The PHP code below is not loading the contents of page 2. Could someone tell me why please?

<?php

$page = (int) $_GET['page'];
if ($page < 1) $page = 1;

// Include database...
Forum: MySQL 03-23-2013, 09:41 AM
Replies: 5
Views: 786
Posted By Thuita Maina
Question What's wrong with this php statement?

What's wrong with this php statement?

$sql="SELECT Title, Post, Date FROM entries WHERE Title LIKE '%" . $name . "%' OR Post LIKE '%" . $name ."%' OR Date LIKE '%" . $name ."%'LIMIT $startResults,...
Forum: PHP 03-23-2013, 09:04 AM
Replies: 1
Views: 187
Posted By Thuita Maina
Question What's wrong with these functions?

What's wrong with the functions mysql_num_rows() and mysql_fetch_array() in the php code below:

<?php

if(isset($_POST['submit']))
{
if(isset($_GET['go']))
{
if(preg_match("/[A-Z |...
Forum: PHP 03-23-2013, 07:55 AM
Replies: 2
Views: 193
Posted By Thuita Maina
Exclamation RE: Why am I getting these error and warning?

The PHP code is meant to receive input from a search form. The php in the search.php file (see below) should search for the inputted text in three columns on a table: Title, Post and Date. If it...
Forum: PHP 03-23-2013, 07:35 AM
Replies: 2
Views: 193
Posted By Thuita Maina
Exclamation Why am I getting these error and warning?

I'm getting the following warning and error when I run my php file:



The concerned PHP code is:

<?php


$name=$_POST['name'];
Forum: PHP 03-23-2013, 06:14 AM
Replies: 6
Views: 254
Posted By Thuita Maina
Thumbs down Why this errors?

I'm getting the following errors from my php file:





The concerned PHP Code is:

<?php
Forum: PHP 03-23-2013, 05:20 AM
Replies: 6
Views: 254
Posted By Thuita Maina
Exclamation Why is this code still generating errors?

I have created a search.php file meant to receive input from a search form. The php in the search.php file (see below) should search for the inputted text in three columns on a table: Title, Post and...
Forum: PHP 03-22-2013, 10:59 PM
Replies: 6
Views: 254
Posted By Thuita Maina
Question What's wrong with this code

What's wrong with this searching functionality code? It is supposed to fetch the string to be searched through POST method. First, it checks whether there was an input. If not, it displays a message....
Forum: PHP 03-22-2013, 09:55 PM
Replies: 6
Views: 254
Posted By Thuita Maina
Help in Making My Search Page functional

I have created a search.php file meant to receive input from a search form. The php in the search.php file (see below) should search for the inputted text in three columns on a table: Title, Post and...
Forum: PHP 03-22-2013, 09:36 PM
Replies: 22
Views: 546
Posted By Thuita Maina
Exclamation Problem Persists

This character �, which is appearing on a webpage everywhere there is supposed to be a single quote, is giving me headaches. The data is being displayed from a database. I've followed advice from...
Forum: PHP 03-22-2013, 08:30 PM
Replies: 1
Views: 159
Posted By Thuita Maina
Exclamation This PHP Code is not working as intended, why?

What's wrong with the code below which is not producing the intended results. It's displaying all the titles in every page.
I'd like the php code to list the first twenty titles from a table in a...
Forum: PHP 03-22-2013, 06:05 PM
Replies: 4
Views: 148
Posted By Thuita Maina
Patryk, here is the HTML code of the webpage: ...

Patryk, here is the HTML code of the webpage:

<?PHP
header('Content-type: text/html; charset=latin1_general_ci');
?>

<html>
<head>

<title>Diary Polly</title>
Forum: PHP 03-22-2013, 05:49 PM
Replies: 4
Views: 148
Posted By Thuita Maina
Question How do I hide byte code markers ()from my webpages?

How do I hide byte code markers ()from my webpages?
Forum: PHP 03-22-2013, 01:42 PM
Replies: 22
Views: 546
Posted By Thuita Maina
Exclamation Please help get rid of this charcter �

Arcticwarrio, the database has no problem. I insert data into the database manually and a preview of it shows the single quote character. The problem is in the HTML document.
Forum: PHP 03-22-2013, 12:15 PM
Replies: 22
Views: 546
Posted By Thuita Maina
Unable to remove this character

Regarding my forum post in which I said the character is appearing in places of the single quote, I have noted the problem is with the HTML document because the database data has the single quote....
Showing results 1 to 25 of 76

 
Forum Jump

All times are GMT +1. The time now is 07:06 PM.