Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,165,233 members, 7,860,488 topics. Date: Friday, 14 June 2024 at 11:35 AM

Ajaxphp7's Posts

Nairaland Forum / Ajaxphp7's Profile / Ajaxphp7's Posts

(1) (2) (of 2 pages)

Webmasters / Re: Guru In Php by ajaxphp7: 3:19pm On Jun 28, 2010
I am grateful 4 the contributions. I will try it now
Programming / Re: Variable Undefine by ajaxphp7: 2:08pm On Jun 28, 2010
Thanks very much 4 your great contribution. I seem not to be having problem undefine variable again but, the coding only echo the form search field but not the whole fields I have in the Database I use echo in the body section of my html tags to call all values in the field that matches with the search fields; matricno, level, semester. It is displaying output input value in the search form not the value in the database and other fields are not retrieved. How do I write the echo statement to fetch other fields and their repective values in my database
<?php
echo $matricno;
echo $semester;
echo $level;
echo $firstname;
?>

thanks as I am waiting for your reply
Programming / Variable Undefine by ajaxphp7: 5:20pm On Jun 26, 2010
Please Php Guru I need your help, I am working on a website and I am have this error.Undefined index: matricno. I don't know how to debug my coding
<?php
extract($_POST);
$matricno=$_POST['matricno'];
$level =$_POST['level'];
$semester =$_POST['semester'];
//build select query
$query= "SELECT *
FROM student
WHERE matricno LIKE '$matricno'
AND level LIKE '$level'
AND semester LIKE '$semester'";
//open database
if (!mysql_select_db($database_dj, $dj))
die("could not open student affairs database"wink;
//query students affair database
if(!($result=mysql_query($query, $dj)))
{
print("could not execute query!"wink;
die(mysql_error());
}
// end if
mysql_close($dj);
?>
.

pls help me
Programming / Pin Code Generation In Php by ajaxphp7: 6:14pm On Jun 25, 2010
<?php
$color_red = rand(1314523242123221,424224243144133311);
echo $color_red;
?>
Please I am trying to develope a website that will demand at random generation of pin codes which will not be repeatable pls somebody help me out. I was given this code by a friend. I need contribution from you guys great programmers
Webmasters / Re: Php Class For Beginners. Question Will Be Treated With High Priority. by ajaxphp7: 5:08pm On Jun 25, 2010
that is my email please i need the book anone4all2010@yahoo.co.uk [size=8pt][/size][color=#000099][/color]
Webmasters / Re: Guru In Php by ajaxphp7: 5:04pm On Jun 25, 2010
Any contribution is welcome
Webmasters / Re: Guru In Php by ajaxphp7: 5:02pm On Jun 25, 2010
Thanks very 4 the contribution but I am still having problems with the coding.

This is a school website which I am supposed.
I have two pages the first page has the form that will do the search
with the following fields
matric no
Semester
level
and a check result button
which when users click on it, it will go to the database and search for matching row and fetch it out.
using echo. This is the result page which I have embeded your code in but still not working

<?php require_once('dj.php'); ?>
<?php
$matric_no=0009;
$level = "ND1";
$semester = "FIRST SEMESTER";

$host = "localhost";
$account = "root"
$password = " "
$database = "student affairs"
$connect=mysql_connect($host, $account, $password);
mysql_select_db($database, $connect);

$sql="SELECT *
FROM populate
WHERE matricno LIKE '$matric_no'
AND level LIKE '$level'
AND semester LIKE '$semester'";

$result=mysql_query($sql, $connect);
$row=mysql_fetch_array($result);

mysql_close();


?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
width:886px;
height:340px;
z-index:1;
}
-->
</style>
</head>

<body>
<div id="apDiv1">
<table border="1">
<tr>
<td>matricno</td>
<td>firstname</td>
<td>lastname</td>
<td>othername</td>
<td>level</td>
<td>course1</td>
<td>course2</td>
<td>course3</td>
<td>course4</td>
<td>course5</td>
<td>course6</td>
<td>course7</td>
<td>course8</td>
<td>course9</td>
<td>course10</td>
<td>grade1</td>
<td>grade2</td>
<td>grade3</td>
<td>grade4</td>
<td>grade5</td>
<td>grade6</td>
<td>grade7</td>
<td>grade8</td>
<td>grade9</td>
<td>grade10</td>
<td>code1</td>
<td>code2</td>
<td>code3</td>
<td>code4</td>
<td>code5</td>
<td>code6</td>
<td>code7</td>
<td>code8</td>
<td>code9</td>
<td>code10</td>
<td>cgpa</td>
<td>department</td>
<td>semester</td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['matricno']; ?></td>
<td><?php echo $row_Recordset1['firstname']; ?></td>
<td><?php echo $row_Recordset1['lastname']; ?></td>
<td><?php echo $row_Recordset1['othername']; ?></td>
<td><?php echo $row_Recordset1['level']; ?></td>
<td><?php echo $row_Recordset1['course1']; ?></td>
<td><?php echo $row_Recordset1['course2']; ?></td>
<td><?php echo $row_Recordset1['course3']; ?></td>
<td><?php echo $row_Recordset1['course4']; ?></td>
<td><?php echo $row_Recordset1['course5']; ?></td>
<td><?php echo $row_Recordset1['course6']; ?></td>
<td><?php echo $row_Recordset1['course7']; ?></td>
<td><?php echo $row_Recordset1['course8']; ?></td>
<td><?php echo $row_Recordset1['course9']; ?></td>
<td><?php echo $row_Recordset1['course10']; ?></td>
<td><?php echo $row_Recordset1['grade1']; ?></td>
<td><?php echo $row_Recordset1['grade2']; ?></td>
<td><?php echo $row_Recordset1['grade3']; ?></td>
<td><?php echo $row_Recordset1['grade4']; ?></td>
<td><?php echo $row_Recordset1['grade5']; ?></td>
<td><?php echo $row_Recordset1['grade6']; ?></td>
<td><?php echo $row_Recordset1['grade7']; ?></td>
<td><?php echo $row_Recordset1['grade8']; ?></td>
<td><?php echo $row_Recordset1['grade9']; ?></td>
<td><?php echo $row_Recordset1['grade10']; ?></td>
<td><?php echo $row_Recordset1['code1']; ?></td>
<td><?php echo $row_Recordset1['code2']; ?></td>
<td><?php echo $row_Recordset1['code3']; ?></td>
<td><?php echo $row_Recordset1['code4']; ?></td>
<td><?php echo $row_Recordset1['code5']; ?></td>
<td><?php echo $row_Recordset1['code6']; ?></td>
<td><?php echo $row_Recordset1['code7']; ?></td>
<td><?php echo $row_Recordset1['code8']; ?></td>
<td><?php echo $row_Recordset1['code9']; ?></td>
<td><?php echo $row_Recordset1['code10']; ?></td>
<td><?php echo $row_Recordset1['cgpa']; ?></td>
<td><?php echo $row_Recordset1['department']; ?></td>
<td><?php echo $row_Recordset1['semester']; ?></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
</div>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>


I need the form that does the search to display information from the database.
Thanks very much
Webmasters / Re: Guru In Php by ajaxphp7: 4:37pm On Jun 25, 2010
Thanks very much I really Appreciate I will try it now
Webmasters / Re: Php Random Script To Generate Pin No. by ajaxphp7: 4:35pm On Jun 25, 2010
Any contribution will be appreciated as I am stock with the coding now.
Webmasters / Re: Php Random Script To Generate Pin No. by ajaxphp7: 4:33pm On Jun 25, 2010
Thanks very much for the contribution. I am really grateful but this is a school portal for a commercial secondary school. The answer to to the question doesn't really gives me what i need. I will need to generate pin no at random so that at the purchase of the cards users will be able to register with it. A unique pin No which can not be used by another person.
thanks I really appreciate
Webmasters / Guru In Php by ajaxphp7: 11:53am On Jun 25, 2010
SELECT *
FROM `populate`
WHERE `matricno` LIKE '0009'
AND `level` LIKE 'ND1'
AND `semester` LIKE 'FIRST SEMESTER'
LIMIT 0 , 3

Please guru's in php and mysql
How do I replace the '0009', 'ND1', 'FIRST SEMESTER'
with variables in php.
Webmasters / Php Random Script To Generate Pin No. by ajaxphp7: 11:22am On Jun 25, 2010
Guys in the house please can anyone help with a php script that can generate Pin code at random without repeatation.
Webmasters / Web Page Gets Bigger In Size by ajaxphp7: 11:39am On Jun 02, 2010
when i click on view, text size, larger on an internet explorer window the size of some websites get bigger in text and images while some other websites pages remain statics can any one help me with css coding to make my webpages static without getting bigger in size upon clicking on view, text size, larger on explorer window.

(1) (2) (of 2 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 33
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.