₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,286 members, 8,449,570 topics. Date: Wednesday, 22 July 2026 at 02:57 AM

Toggle theme

Cheavroi's Posts

Nairaland ForumCheavroi's ProfileCheavroi's Posts

1 2 3 4 5 6 7 8 9 10 11 12 13 (of 13 pages)

BusinessDangote Flour And Price Of Bread by cheavroi(op): 4:02pm On Sep 06, 2007
Must the cost of flour goes up invariably affecting price of bread cos someone company is going public-i mean Dabgote FLour Mills or am i the only one seeing the correlation between the two events
RomanceRe: Is Big Brother Africa Still An Entertainment Show? by cheavroi(op): 10:20am On Sep 06, 2007
probably they all asleep or enjoying the modernaization of the immorality huh
RomanceIs Big Brother Africa Still An Entertainment Show? by cheavroi(op): 9:32am On Sep 06, 2007
Pls,i dont know where to put this topic but can someone please tell Big brother Africa to at least censor some of this stuff that they show.Kids are on holiday and they dont really need to see this stuff especail what i saw this morning they shld at least give them things to do if lazying around will give rise to them being the devils workshop
ProgrammingRe: Php/mysql Programmers, Please Help Me Out ! by cheavroi(m): 4:28pm On Sep 04, 2007
here is the code,it is for viewing the results of the polls

<?PHP
$question = '';
$answerA = '';
$answerB = '';
$answerC = '';

$imgTagA = '';
$imgWidthA = '0';

$imgTagB = '';
$imgWidthB = '0';

$imgTagC = '';
$imgWidthC = '0';

$imgHeight = '10';
$totalP = '';
$percentA = '';
$percentB = '';
$percentC = '';

$qA = '';
$qB = '';
$qC = '';

if (isset($_GET['Submit2'])) {

$qNum = $_GET['h1'];

$user_name = "upperroo_users";
$password = "preacher";
$database = "upperroo_surveytest";
$server = "localhost";

$db_handle = mysql_connect($server, $user_name, $password);
$db_found = mysql_select_db($database, $db_handle);

if ($db_found) {

$SQL = "SELECT * FROM tblquestions, answers WHERE tblquestions.QID = answers.QID AND answers.QID = '$qNum'";
$result = mysql_query($SQL);
$db_field = mysql_fetch_assoc($result);

$question = $db_field['Question'];
$answerA = $db_field['A'];
$answerB = $db_field['B'];
$answerC = $db_field['C'];

$qA = $db_field['qA'];
$qB = $db_field['qB'];
$qC = $db_field['qC'];

$imgWidthA = $answerA;
$imgWidthB = $answerB;
$imgWidthC = $answerC;

$totalP = $answerA + $answerB + $answerC;

$percentA = (($answerA * 100) / $totalP);
$percentA = floor($percentA);

$percentB = (($answerB * 100) / $totalP);
$percentB = floor($percentB);

$percentC = (($answerC * 100) / $totalP);
$percentC = floor($percentC);

$imgWidthA = $percentA * 2;
$imgWidthB = $percentB * 2;
$imgWidthC = $percentC * 2;


$imgTagA = "<IMG SRC = 'red.jpg' Height = " . $imgHeight . " WIDTH = " . $imgWidthA. ">";
$imgTagB = "<IMG SRC = 'red.jpg' Height = " . $imgHeight . " WIDTH = " . $imgWidthB . ">";
$imgTagC = "<IMG SRC = 'red.jpg' Height = " . $imgHeight . " WIDTH = " . $imgWidthC . ">";

mysql_close($db_handle);


}
else {
print "database error";
}


}
else {
print "no results to display";
}
?>
ProgrammingRe: Php/mysql Programmers, Please Help Me Out ! by cheavroi(m): 12:36pm On Sep 04, 2007
yeah any idea
ProgrammingRe: Php/mysql Programmers, Please Help Me Out ! by cheavroi(m): 4:18pm On Aug 30, 2007
Hi guys,ive got this little challenge again.i created an online poll on my site.ive got two challenges,i want the form for voting to open on a small window while the main page i e the index page remains there ,a thing i want to look into later but right now when im running the scripts for the view results page,it returns an error

warning:division by zero on line 59,62,65.any way out.thanks
ProgrammingRe: Php/mysql Programmers, Please Help Me Out ! by cheavroi(m): 1:34pm On Aug 28, 2007
Ade,unfortuntately i didnt use ur suggestion,i just edited it as suggested by xandu but i quite appreciate ur contirbution infact i have it written out and put in my collection of php scripts thou rite now i want to include polls on my web page and looking for the material .thanks a lot guys
ProgrammingRe: Php/mysql Programmers, Please Help Me Out ! by cheavroi(m): 10:16am On Aug 28, 2007
hi guys it worked like mad.im very greatful for u guys assistance.can u give me a link where i can get to read php tutorials online.
ProgrammingRe: Php/mysql Programmers, Please Help Me Out ! by cheavroi(m): 10:30am On Aug 27, 2007
thats is the error receieved :
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/upperroo/public_html/parishlist2.php on line 123

and on checking line 123,it contains

while($info = mysql_fetch_array( $data ))

still beats me
thanks
ProgrammingRe: Php/mysql Programmers, Please Help Me Out ! by cheavroi(m): 12:21pm On Aug 24, 2007
Hi thanks for ur assistance but its still returning an error on

while($info = mysql_fetch_array( $data ))

any idea!
ProgrammingRe: Php/mysql Programmers, Please Help Me Out ! by cheavroi(m): 12:46pm On Aug 22, 2007
Kindly help me with this code ,problem is its not returning any value and the databse is well set up.if i dont put a where clause it works but once i put the where clause it doesnt return a value
html code is

<form name="form2" method="post" action="parishlist3.php">
<select name="parish">
<option>ABARANJE </option>
<option>ABORU</option>
<option>AJEGUNLE</option>
<option>ALAGBADO</option>
<option>ALAPERE</option>
<option>AMAZING GRACE</option>
<option>IKOTUN</option>
<option>KETU</option>
<option>MAFOLUKU</option>
<option>OWODE-ELEDE</option>
<option>OWORONSOKI</option>
<option>GREAT GRACE</option>
<option>LEKKI</option>
<option>IJERE</option>
<option>ORIGANRIGAN</option>
</select>
<input type="submit" name="Submit2" value="Submit">
</form>


and the php code is


<?php
// Connects to your Database
mysql_connect("localhost", "username", "password"wink or die(mysql_error());
mysql_select_db("upperroo_parishes"wink or die(mysql_error());
$data = "SELECT * FROM address WHERE name ='$parish'"
or die(mysql_error());
Print "<table border cellpadding=3>";
while($info = mysql_fetch_array( $data ))
{
Print "<tr>";
Print "<th>Name:</th> <td>".$info['Name'] . "</td> ";
Print "<th>Address:</th> <td>".$info['Address'] . " </td></tr>";
Print "<th>Pastor-In-Charge:</th> <td>".$info['Head'] . "</td> ";
Print "<th>Phone No:</th> <td>".$info['Contact'] . " </td></tr>";
}
Print "</table>";
?>
CareerRe: Design Websites In Minutes.no Html No Programming. Free Dwnld by cheavroi(m): 9:03am On Aug 20, 2007
if u giving it for free,y dont u just attach it here and let pple download it,must we give u our email address
RomanceRe: How To Snatch A Man From His Girlfriend by cheavroi(m): 10:38am On Jul 02, 2007
I dont think you need to help him move,if he likes u enough,he would move
AutosAuto Protect Your Car by cheavroi(op): 1:26pm On Jun 18, 2007
Does anyone know how the gsm auto protect your car works and which company handles it
RomanceRe: Boyfriend Gives You His Email Password by cheavroi(m): 12:58pm On May 09, 2007
Probably he has a million email address.ive got 3 myself
RomanceRe: 3 Years Together And I'm Not Feeling Him Anymore by cheavroi(m): 10:19am On May 02, 2007
Most times,we think the other person was the one who changed but unfortunately u are the one that changed.ask yourself wat is it that is wrong that u doing urself.are u putting in the same effort u are in the first time it started.try to and see what will happen.be sincere
WebmastersScripts For Building Forum by cheavroi(op): 9:33am On Apr 19, 2007
Can someone please give me the resources to build a forum
PoliticsRe: Death Penalty For Exam Malpractices In Nigeria? - Satire by cheavroi(m): 6:01pm On Mar 15, 2007
I wonder y we talking of dealth sentence for Mal practice when we leave those that steal billions of naira and get away with it by being sentence to Six-months sentence or those that left Nigeria cos of catarrh for treatment abroad wen they ought to fix our health system here .Pity!!!
Jobs/VacanciesOca Cerifications by cheavroi(op): 2:23pm On Mar 14, 2007
Just got my Oracle Certified Associate (OCA).Is there any one with an idea of how one can get a job with it.
RomanceRe: Can A Relationship Survive A Break? by cheavroi(m): 9:46am On Mar 08, 2007
Be sincere you want to leave the relationship and you want people to help you rationalise why its a good idea to leave.Dont worry just go ahead with your plan you dont need people to help you deciede and besides our opionion dont matter,you only want someone to help you overcome your guilt
RomanceRe: What Will U Do by cheavroi(m): 11:14am On Feb 22, 2007
Get a divorce,walk free again and live life to the fullest
RomanceRe: A Man Is Sleeping With His Mother Inlaw And Sister Inlaw. by cheavroi(m): 11:11am On Feb 22, 2007
I think the man should walk away from that family
RomanceRe: Help O!i Am Almost Overwhelmed by cheavroi(m): 11:23am On Feb 21, 2007
i think basically that nowadays they tend to dress more provocating and as a result u tend to notice them.they mite actually be more m grin
RomanceRe: Does Money Equal Love? by cheavroi(m): 10:40am On Feb 21, 2007
Not it doesnt it only oils the wheels of love
Certification And Training AdvertsRe: Oracle Question(dumps) by cheavroi(m): 8:48am On Feb 19, 2007
Hello,will be writing my OCA in two weeks can you plsssssssssssssss send me the dumps also.my email is legendcrest@yahoo.co.uk
RomanceRe: My Sister's Boyfriend is Asking Me Out by cheavroi(m): 11:46am On Feb 15, 2007
Most often times,we want to justify our actions and we then tend to look for moral support to what we are doing knowing fully well that it is wrong.
How can you say that your sister boyfriend has fallen in love with you?My opinion its WRONG SIMPLE
Jobs/VacanciesFirst Bank Is Recruiting Exceutive Trainees by cheavroi(op): 10:00am On Feb 15, 2007
Check todays papers
CareerRe: Why Should NNPC And LNG Discriminate Between 2-1 And 2-2? by cheavroi(m): 12:55pm On Jan 31, 2007
cos wen you were supposed to be reading u were playing and they need pple that can make improvement at least they not even asking for 1st class
BusinessYour First Experience With An ATM Card? by cheavroi(op): 11:01am On Jan 26, 2007
I think its time we talk about the first time one uses an ATM card.

Mine said "your financial institution is not available" and I didn't understand what it meant (simply that their server was down and transaction could not be done) until i went to the bank to confirm.

Please add yours for others to benefit from

1 2 3 4 5 6 7 8 9 10 11 12 13 (of 13 pages)