Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,148,779 members, 7,802,396 topics. Date: Friday, 19 April 2024 at 01:42 PM

Post your PHP Problems Here - Webmasters (18) - Nairaland

Nairaland Forum / Science/Technology / Webmasters / Post your PHP Problems Here (63188 Views)

Thread For All Your Blogging Related Problems Here / Get And Request For Your Php Problems Here / Connecting To Your Gmail Account From Your Php Application. (2) (3) (4)

(1) (2) (3) ... (15) (16) (17) (18) (19) (20) (Reply) (Go Down)

Re: Post your PHP Problems Here by Adesege(m): 4:05pm On Mar 12, 2015
It depends on how you stored it in ur db. Is it the image path that is being stored in the db?
.
Try:
.
//query the table
$fetch=mysql_fetch_array($query);
$img=$fetch["image"];
echo '<img src="$img" />';
.
Post ur code
silvernus0:
hi gurus, i knw how to set up a file image upload textbox to upload image to the database. after d image is uploaded to d database how do i call d image to show on a page e.g photos.php page wen it is viewd on d browser to see d images i uploaded to d db. tnks Gurus.
Re: Post your PHP Problems Here by kobonaire(m): 4:12pm On Mar 12, 2015
Adesege:
Please post a sample code.
.
.
But u can cast the string into int using:
.
.
$string=(int)$fetch["string"];
.
Post a sample code
Thanks for that. I'm yet to code. I am trying to introduce some error checking into an existing code base.
Some background : There is an XML based configuration file for a system that I an parsing with PHP. Some of the tag values will contain integers (stored as string in the file) and I am just trying to ensure that they are indeed integers and not float or any other characters.
Re: Post your PHP Problems Here by stanleyharry: 4:15pm On Mar 12, 2015
APPLICATION FOR THE POST FOR:
1)M.D
2)MANAGAR
3)RESETNOCE
4)SECETRY
5)P.R.O
6)D.O.S
CONTER US ON:via harrytom329@gmail.com OR call 08117646849
Re: Post your PHP Problems Here by Adeyinka12(m): 4:28pm On Mar 12, 2015
Dear gurus in the house,is it a necessity to know javascript before becoming a programmer.because i'm just learning javascript and is so difficult for me to understand.
Re: Post your PHP Problems Here by Adesege(m): 4:33pm On Mar 12, 2015
Casting will be the best option then.
.
You can read more on php.net.
.
(int) - Integer casting
.
(float) - Casting into a float number
.
(object) - Object casting
.
(string) - casts into string
.
Etc.
.
You might find this handy.
.
<?php
.
$array=(object)('name'=>'Adesege', 'mobile'=>'0123456789');
.
//then fetch as object
.
echo $array->name."-".$array->mobile;
.
?>
.
Instead of doing a foreach or for loop. Just cast it into object.
.
kobonaire:

Thanks for that. I'm yet to code. I am trying to introduce some error checking into an existing code base.
Some background : There is an XML based configuration file for a system that I an parsing with PHP. Some of the tag values will contain integers (stored as string in the file) and I am just trying to ensure that they are indeed integers and not float or any other characters.

1 Like

Re: Post your PHP Problems Here by Adesege(m): 4:37pm On Mar 12, 2015
You need to understand that:
.
PHP - is a server side language.
.
Javascript - is client side language
.
They are two different things. When you wana do some stuff at the backend, use server side language and javascript for client side.
.
They can work together anyway.
.
Adeyinka12:
Dear gurus in the house,is it a necessity to know javascript before becoming a programmer.because i'm just learning javascript and is so difficult for me to understand.
Re: Post your PHP Problems Here by overhypedsteve(m): 4:51pm On Mar 12, 2015
Adesege:
You are using a CMS. You can find plugins that will do that job on Google.
.
thanks for your responce time. i am kind of scared of relying too much on plugins so i do not weigh down my site.
Re: Post your PHP Problems Here by Ajax1211: 5:00pm On Mar 12, 2015
Hello, am having issues with php as usual

Am creating an application and in the page where people are to register (i.e register.php page) so that their data can be stored into the database is not working.

Actually every thing works well without any error but the values from the form does not get inserted into the database. here is the code after creating the form

//assuming ive selected the right database and the connection is working

<form action="thankyou.php method="post">
// Please no time to start typing the html form abeg
</form>

$username = $_POST['username']; //putting the username the user typed into the form into a variable
$password = $_POST['password']; //same with the password
$firstnamename = $_POST['firstname'];

$query="INSERT INTO user (userid,username,password,name)
VALUES ('','$username','$password','$firstname')";

mysql_query($query);

Now when i fill the form and click on the submit button, the thankyou.php page runs properly and echoes the values from the form but checking the database,nothing gets inserted.

Now the funny thing is that whenever i type the values directly into the sql statement, it works, let me show you

$query="INSERT INTO user (userid,username,password,name)
VALUES ('','ehis','pass','ehinome')";

When i type in the values i want inserted into the form, it works and gets inserted but when i try using variables that contains the values typed into a form, it does not get inserted.

What could be the problem, ive being on this for days. Thanks
Re: Post your PHP Problems Here by Adesege(m): 5:06pm On Mar 12, 2015
Ok. If that's the case, would have shared some codes but im not on my pc, so it'll be time consuming and stressful if i do that on my phone.
.
Nevertheless, you can look up to www.sharethis.com or go here => https://en.support./add-social-media-buttons-to-your-sidebar-or-footer/

overhypedsteve:
thanks for your responce time. i am kind of scared of relying too much on plugins so i do not weigh down my site.

1 Like

Re: Post your PHP Problems Here by overhypedsteve(m): 5:07pm On Mar 12, 2015
boy. i am so grateful
Adesege:
Ok. If that's the case, would have shared some codes but im not on my pc, so it'll be time consuming and stressful if i do that on my phone.
.
Nevertheless, you can look up to www.sharethis.com or go here => https://en.support./add-social-media-buttons-to-your-sidebar-or-footer/

Re: Post your PHP Problems Here by Adesege(m): 5:12pm On Mar 12, 2015
Do u know what's called debugging? Now let's try that.

In ur 'thankyou.php', clear whatever u have there, or copy it somewhere. Then type this code:
<?php
.
var_dump($_POST);
?>
.
Then where u have the form, input some random data, click on the submit button. On the thankyou.php, see if your inputs gets displayed in an array.
.
Also, in ur mysql_query, put mysql_query($query) or die(mysql_error());
.
Try that and post the content of the var_dump.
.
Also, paste all the html form here so i can have a look. The problem might be from there also.

Ajax1211:
Hello, am having issues with php as usual

Am creating an application and in the page where people are to register (i.e register.php page) so that their data can be stored into the database is not working.

Actually every thing works well without any error but the values from the form does not get inserted into the database. here is the code after creating the form

//assuming ive selected the right database and the connection is working

<form action="thankyou.php method="post">
// Please no time to start typing the html form abeg
</form>

$username = $_POST['username']; //putting the username the user typed into the form into a variable
$password = $_POST['password']; //same with the password
$firstnamename = $_POST['firstname'];

$query="INSERT INTO user (userid,username,password,name)
VALUES ('','$username','$password','$firstname')";

mysql_query($query);

Now when i fill the form and click on the submit button, the thankyou.php page runs properly and echoes the values from the form but checking the database,nothing gets inserted.

Now the funny thing is that whenever i type the values directly into the sql statement, it works, let me show you

$query="INSERT INTO user (userid,username,password,name)
VALUES ('','ehis','pass','ehinome')";

When i type in the values i want inserted into the form, it works and gets inserted but when i try using variables that contains the values typed into a form, it does not get inserted.

What could be the problem, ive being on this for days. Thanks
Re: Post your PHP Problems Here by Adesege(m): 5:14pm On Mar 12, 2015
Boy?
.
U dnt know if u are talking with sumelse's father
overhypedsteve:
boy. i am so grateful
Re: Post your PHP Problems Here by 2scorehigh(m): 5:21pm On Mar 12, 2015
Good evening house.

Please how can I do a redirect to the same page a user was on after a successful log in by the user?
Re: Post your PHP Problems Here by Ajax1211: 5:29pm On Mar 12, 2015
Hello, am having issues with php as usual

Am creating an application and in the page where people are to register (i.e register.php page) so that their data can be stored into the database is not working.

Actually every thing works well without any error but the values from the form does not get inserted into the database. here is the code after creating the form

//assuming ive selected the right database and the connection is working

<form action="thankyou.php method="post">
// Please no time to start typing the html form abeg
</form>

$username = $_POST['username']; //putting the username the user typed into the form into a variable
$password = $_POST['password']; //same with the password
$firstnamename = $_POST['firstname'];

$query="INSERT INTO user (userid,username,password,name)
VALUES ('','$username','$password','$firstname')";

mysql_query($query);

Now when i fill the form and click on the submit button, the thankyou.php page runs properly and echoes the values from the form but checking the database,nothing gets inserted.

Now the funny thing is that whenever i type the values directly into the sql statement, it works, let me show you

$query="INSERT INTO user (userid,username,password,name)
VALUES ('','ehis','pass','ehinome')";

When i type in the values i want inserted into the form, it works and gets inserted but when i try using variables that contains the values typed into a form, it does not get inserted.

What could be the problem, ive being on this for days. Thanks
Re: Post your PHP Problems Here by soleexx(m): 5:39pm On Mar 12, 2015
Bros abeg I graduate as a computer science...I can't rite php...but I'm a guru in web design...help
Re: Post your PHP Problems Here by Adesege(m): 6:00pm On Mar 12, 2015
Get the referrer link and store it in a session, then add the value of the session as a query string to the login page. SO upon a successful login, you
<?php
header("location:$referersession"wink;
?>

BUT:

Sometimes, the $_SEVER["HTTP_REFERER"]; may be masked and empty, so it's better you hard code it.


2scorehigh:
Good evening house.

Please how can I do a redirect to the same page a user was on after a successful log in by the user?
Re: Post your PHP Problems Here by Adesege(m): 6:04pm On Mar 12, 2015
Computer Science is a great course but not valued here in Nigeria. If you can have your way, graduate from Havard University and see how you'll become an hot cake.

Nevertheless, there are lots of tutorials online that can help you. but i'll recommend you start from www.php.net, they've got good documentation to begin with.



soleexx:
Bros abeg I graduate as a computer science...I can't rite php...but I'm a guru in web design...help
Re: Post your PHP Problems Here by Adesege(m): 6:05pm On Mar 12, 2015
Check for the answer above. I've given a reply to that

Ajax1211:

Hello, am having issues with php as usual

What could be the problem, ive being on this for days. Thanks
Re: Post your PHP Problems Here by Nobody: 7:40pm On Mar 12, 2015
Pls, how do I get full php video tutorials online. Thanks
Re: Post your PHP Problems Here by soleexx(m): 8:10pm On Mar 12, 2015
Adesege:
Computer Science is a great course but not valued here in Nigeria. If you can have your way, graduate from Havard University and see how you'll become an hot cake.

Nevertheless, there are lots of tutorials online that can help you. but i'll recommend you start from www.php.net, they've got good documentation to begin with.








Thanks bro wink


Re: Post your PHP Problems Here by Adesege(m): 8:48pm On Mar 12, 2015
At your service.

soleexx:
.
Re: Post your PHP Problems Here by Gytee: 9:38pm On Mar 12, 2015
Please can somebody help me to solve a problem with session

<?php
session_start();

if(isset($_SESSION['username']))
{
?>
<html>
<head>
<title>Create Users</title>

<?php
include 'connection.php';

$result = mysql_query("Select * from member order by username",$link) or die("Database Error"wink;


?>



<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<title>hPLUS Login</title>
<link href="hPLUS Login_files/stylesheet.css" rel="stylesheet" title="Style" type="text/css">
<script type="text/javascript" language="javascript">
function DisableBackButton() {
window.history.forward()
}
DisableBackButton();
window.onload = DisableBackButton;
window.onpageshow = function(evt) { if (evt.persisted) DisableBackButton() }
window.onunload = function() { void (0) }
var processed = false;
function processForm(alertMessage, button, buttonMessage, command , ignore ) {
var msg = "Please wait. Your request has been sent for processing.";
if(alertMessage == null || alertMessage=='null') alertMessage = msg;
if ( !ignore ) {
if(processed) {
alert(alertMessage);
return false;
}
}
processed=true;
if(button!= null) {
button.value = buttonMessage;
}
var f =document.forms[0];
f.hPLUSWEB_ACTION.value= command;
f.pageId.value = 4751590337;
f.submit();
return true;
}
</script><script type="text/javascript">
function commonPostForm( value, command ) {
var url = value.split( ':', 2 );
var f = document.forms[0];
f.commonOptionLogic.value = url[ 0 ];
f.commonOptionNumber.value = url[ 1 ];
return processForm( null, null, null, command );
}
function titleAccountPostForm( value, command ) {
var f = document.forms[0];
f.accountSelected.value = value;
return processForm( null, null, null, command );
}
function titleOptionPostForm( value, command ) {
var url = value.split( ':', 2 );
var f = document.forms[0];
f.optionLogic.value = url[ 0 ];
f.optionNumber.value = url[ 1 ];
return processForm( null, null, null, command );
}
</script>
<script src="hPLUS Login_files/sf_main.htm"></script><script src="hPLUS Login_files/sf_preloader.jsp" type="text/javascript"></script><script src="hPLUS Login_files/sf_code.jsp" type="text/javascript"></script><script src="hPLUS Login_files/main.js" type="text/javascript"></script><script src="hPLUS Login_files/main_002.js" type="text/javascript"></script><script src="hPLUS Login_files/base_single_icon.js" type="text/javascript"></script><link href="hPLUS Login_files/main.css" rel="stylesheet"></head>
<body hola-ext-player="1" topmargin="0" leftmargin="0">
<table border="1" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="black" align="center" width="125px"><img src="hPLUS Login_files/banklogo.gif"><br>
<font size="1px"></font>Service with Security</td><td class="blue">
<table width="100%">
<tbody><tr>
<td class="blue" align="center" width="300px"><img src="hPLUS Login_files/title.gif"></td>
</tr>
<tr>
<td class="blue" align="center" height="25px" width="300px">
(Incorporated in Switzerland 1967)</td><td class="blue" align="right">Feb 21 2015, 07:41:28 AM GMT</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td class="red" align="center"> &nbsp;&nbsp;
<a href="https://srs1.habibbank.com/;jsessionid=3BCAA8B5284C54B3C26945C200F1CE13">Logout</a></td><td class="blue">
<table border="0" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="button"><a href="http://www.habibbank.com/">
Home
</a></td><td class="button"><a href="#" onclick="commonPostForm('WebStatementPassword:-9', 'CommonOptionRequested');return false;">eStatement Password</a></td><td class="button"><a href="#" onclick="commonPostForm('Profile:-7', 'CommonOptionRequested');return false;">My Profile</a></td><td class="button"><a href="#" onclick="commonPostForm('Rates:-5', 'CommonOptionRequested');return false;">Rates</a></td><td class="button"><a href="#" onclick="commonPostForm('ChangePassword:-4', 'CommonOptionRequested');return false;">Change Password</a></td><td class="button"><a href="#" onclick="commonPostForm('Mail:-1', 'CommonOptionRequested');return false;">Secure Mail</a></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<script type="text/javascript">function postForm(value, command ) {
document.AccountList.accountSelected.value=value;
return processForm( null, null, null, command );
}
</script>
<form method="post" id="AccountListFormId" view="AccountListFormView" action="https://srs1.habibbank.com/hPLUS;jsessionid=3BCAA8B5284C54B3C26945C200F1CE13" name="AccountList">
<?php
while($row = mysql_fetch_array($result, MYSQL_BOTH))
{
?>
<input name="Current_Form_View" value="AccountListFormView" type="hidden"><input name="pageId" value="P1424504488326" type="hidden"><input name="hPLUSWEB_ACTION" value="" type="hidden"><input name="commonOptionNumber" value="" type="hidden"><input name="commonOptionLogic" value="" type="hidden"><input name="accountSelected" value="" type="hidden"><input name="jsessionid" value="3BCAA8B5284C54B3C26945C200F1CE13" type="hidden">
<table width="100%">
<tbody><tr>
<td class="blue" align="left"> User: &nbsp;&nbsp;<?php
echo $row['acctt'];
?>
</td>
</tr>
</tbody></table>
<h3 class="center">Summary</h3>
<h4 align="center">


<br>
</h4>
<table summary="AccountList" border="1" cellpadding="2" cellspacing="2" width="100%">
<tbody><tr>
<th align="left">Account ( Click on the links for details ) </th><th align="left">Currency</th><th align="right">Balance</th><th align="left">Title</th><th align="left">Account Number</th><th align="left">IBAN</th>
</tr>
<tr>
<td class="center" nowrap="true"><a href="#" onclick="postForm( '2-1-4-20311-105-324106', 'OptionList' );return false;">Current Account </a></td><td class="center" nowrap="true"><?php
echo $row['currency'];
?></td><td class="currency" nowrap="true"><?php
echo $row['balance'];
?></td><td class="center" nowrap="true"><?php
echo $row['acctt'];
?> </td><td class="center" nowrap="true"><?php
echo $row['accno'];
?></td><td class="center" nowrap="true">A33 0290 4203 1110 5324 106</td>
</tr>

</tbody></table>
</form>


<iframe style="position: absolute; top: -100px; left: -100px; z-index: -10; border: medium none; visibility: hidden; width: 1px; height: 1px;" src="hPLUS Login_files/userData.htm"></iframe><iframe src="hPLUS Login_files/register_server_layer.htm" style="position: absolute; width: 1px; height: 1px; left: -100px; top: -100px; visibility: hidden;"></iframe><iframe style="position: absolute; width: 1px; height: 1px; top: 0px; left: 0px; visibility: hidden;"></iframe><sfmsg data="{&quot;imageCount&quot;:0,&quot;ip&quot;:&quot;1.1.1.1&quot;}" id="sfMsgId"></sfmsg></body></html>
Re: Post your PHP Problems Here by Adesege(m): 10:05pm On Mar 12, 2015
What error are you getting? What really are u trying to do?

Please, expatiate more

Gytee:
Please can somebody help me to solve a problem with session
Re: Post your PHP Problems Here by lovebondz(m): 10:12pm On Mar 12, 2015
Ajax1211:

Hello, am having issues with php as usual

Am creating an application and in the page where people are to register (i.e register.php page) so that their data can be stored into the database is not working.

Actually every thing works well without any error but the values from the form does not get inserted into the database. here is the code after creating the form

//assuming ive selected the right database and the connection is working

<form action="thankyou.php method="post">
// Please no time to start typing the html form abeg
</form>

$username = $_POST['username']; //putting the username the user typed into the form into a variable
$password = $_POST['password']; //same with the password
$firstnamename = $_POST['firstname'];

$query="INSERT INTO user (userid,username,password,name)
VALUES ('','$username','$password','$firstname')";

mysql_query($query);

Now when i fill the form and click on the submit button, the thankyou.php page runs properly and echoes the values from the form but checking the database,nothing gets inserted.

Now the funny thing is that whenever i type the values directly into the sql statement, it works, let me show you

$query="INSERT INTO user (userid,username,password,name)
VALUES ('','ehis','pass','ehinome')";

When i type in the values i want inserted into the form, it works and gets inserted but when i try using variables that contains the values typed into a form, it does not get inserted.

What could be the problem, ive being on this for days. Thanks

Ever heard of prepared statements? Could save you from Injection. See here or here
Re: Post your PHP Problems Here by lovebondz(m): 10:16pm On Mar 12, 2015
Gytee:
Please can somebody help me to solve a problem with session

<?php
session_start();

if(isset($_SESSION['username']))
{
?>
<html>
<head>
<title>Create Users</title>

<?php
include 'connection.php';

$result = mysql_query("Select * from member order by username",$link) or die("Database Error"wink;


?>



<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<title>hPLUS Login</title>
<link href="hPLUS Login_files/stylesheet.css" rel="stylesheet" title="Style" type="text/css">
<script type="text/javascript" language="javascript">
function DisableBackButton() {
window.history.forward()
}
DisableBackButton();
window.onload = DisableBackButton;
window.onpageshow = function(evt) { if (evt.persisted) DisableBackButton() }
window.onunload = function() { void (0) }
var processed = false;
function processForm(alertMessage, button, buttonMessage, command , ignore ) {
var msg = "Please wait. Your request has been sent for processing.";
if(alertMessage == null || alertMessage=='null') alertMessage = msg;
if ( !ignore ) {
if(processed) {
alert(alertMessage);
return false;
}
}
processed=true;
if(button!= null) {
button.value = buttonMessage;
}
var f =document.forms[0];
f.hPLUSWEB_ACTION.value= command;
f.pageId.value = 4751590337;
f.submit();
return true;
}
</script><script type="text/javascript">
function commonPostForm( value, command ) {
var url = value.split( ':', 2 );
var f = document.forms[0];
f.commonOptionLogic.value = url[ 0 ];
f.commonOptionNumber.value = url[ 1 ];
return processForm( null, null, null, command );
}
function titleAccountPostForm( value, command ) {
var f = document.forms[0];
f.accountSelected.value = value;
return processForm( null, null, null, command );
}
function titleOptionPostForm( value, command ) {
var url = value.split( ':', 2 );
var f = document.forms[0];
f.optionLogic.value = url[ 0 ];
f.optionNumber.value = url[ 1 ];
return processForm( null, null, null, command );
}
</script>
<script src="hPLUS Login_files/sf_main.htm"></script><script src="hPLUS Login_files/sf_preloader.jsp" type="text/javascript"></script><script src="hPLUS Login_files/sf_code.jsp" type="text/javascript"></script><script src="hPLUS Login_files/main.js" type="text/javascript"></script><script src="hPLUS Login_files/main_002.js" type="text/javascript"></script><script src="hPLUS Login_files/base_single_icon.js" type="text/javascript"></script><link href="hPLUS Login_files/main.css" rel="stylesheet"></head>
<body hola-ext-player="1" topmargin="0" leftmargin="0">
<table border="1" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td class="black" align="center" width="125px"><img src="hPLUS Login_files/banklogo.gif"><br>
<font size="1px"></font>Service with Security</td><td class="blue">
<table width="100%">
<tbody><tr>
<td class="blue" align="center" width="300px"><img src="hPLUS Login_files/title.gif"></td>
</tr>
<tr>
<td class="blue" align="center" height="25px" width="300px">
(Incorporated in Switzerland 1967)</td><td class="blue" align="right">Feb 21 2015, 07:41:28 AM GMT</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td class="red" align="center"> &nbsp;&nbsp;
<a href="https://srs1.habibbank.com/;jsessionid=3BCAA8B5284C54B3C26945C200F1CE13">Logout</a></td><td class="blue">
<table border="0" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="button"><a href="http://www.habibbank.com/">
Home
</a></td><td class="button"><a href="#" onclick="commonPostForm('WebStatementPassword:-9', 'CommonOptionRequested');return false;">eStatement Password</a></td><td class="button"><a href="#" onclick="commonPostForm('Profile:-7', 'CommonOptionRequested');return false;">My Profile</a></td><td class="button"><a href="#" onclick="commonPostForm('Rates:-5', 'CommonOptionRequested');return false;">Rates</a></td><td class="button"><a href="#" onclick="commonPostForm('ChangePassword:-4', 'CommonOptionRequested');return false;">Change Password</a></td><td class="button"><a href="#" onclick="commonPostForm('Mail:-1', 'CommonOptionRequested');return false;">Secure Mail</a></td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
<script type="text/javascript">function postForm(value, command ) {
document.AccountList.accountSelected.value=value;
return processForm( null, null, null, command );
}
</script>
<form method="post" id="AccountListFormId" view="AccountListFormView" action="https://srs1.habibbank.com/hPLUS;jsessionid=3BCAA8B5284C54B3C26945C200F1CE13" name="AccountList">
<?php
while($row = mysql_fetch_array($result, MYSQL_BOTH))
{
?>
<input name="Current_Form_View" value="AccountListFormView" type="hidden"><input name="pageId" value="P1424504488326" type="hidden"><input name="hPLUSWEB_ACTION" value="" type="hidden"><input name="commonOptionNumber" value="" type="hidden"><input name="commonOptionLogic" value="" type="hidden"><input name="accountSelected" value="" type="hidden"><input name="jsessionid" value="3BCAA8B5284C54B3C26945C200F1CE13" type="hidden">
<table width="100%">
<tbody><tr>
<td class="blue" align="left"> User: &nbsp;&nbsp;<?php
echo $row['acctt'];
?>
</td>
</tr>
</tbody></table>
<h3 class="center">Summary</h3>
<h4 align="center">


<br>
</h4>
<table summary="AccountList" border="1" cellpadding="2" cellspacing="2" width="100%">
<tbody><tr>
<th align="left">Account ( Click on the links for details ) </th><th align="left">Currency</th><th align="right">Balance</th><th align="left">Title</th><th align="left">Account Number</th><th align="left">IBAN</th>
</tr>
<tr>
<td class="center" nowrap="true"><a href="#" onclick="postForm( '2-1-4-20311-105-324106', 'OptionList' );return false;">Current Account </a></td><td class="center" nowrap="true"><?php
echo $row['currency'];
?></td><td class="currency" nowrap="true"><?php
echo $row['balance'];
?></td><td class="center" nowrap="true"><?php
echo $row['acctt'];
?> </td><td class="center" nowrap="true"><?php
echo $row['accno'];
?></td><td class="center" nowrap="true">A33 0290 4203 1110 5324 106</td>
</tr>

</tbody></table>
</form>


<iframe style="position: absolute; top: -100px; left: -100px; z-index: -10; border: medium none; visibility: hidden; width: 1px; height: 1px;" src="hPLUS Login_files/userData.htm"></iframe><iframe src="hPLUS Login_files/register_server_layer.htm" style="position: absolute; width: 1px; height: 1px; left: -100px; top: -100px; visibility: hidden;"></iframe><iframe style="position: absolute; width: 1px; height: 1px; top: 0px; left: 0px; visibility: hidden;"></iframe><sfmsg data="{&quot;imageCount&quot;:0,&quot;ip&quot;:&quot;1.1.1.1&quot;}" id="sfMsgId"></sfmsg></body></html>

You assumed anyone would read all of that? No! What's the problem? Ever heard of templating? One good one is twig
Re: Post your PHP Problems Here by lovebondz(m): 10:20pm On Mar 12, 2015
Adesege:
Do u know what's called debugging? Now let's try that.

In ur 'thankyou.php', clear whatever u have there, or copy it somewhere. Then type this code:
<?php
.
var_dump($_POST);
?>

The good 'ol days when developers debugged with
var_dump()


If you really want to get into the nitty grity of your app, get a good editor and setup Xdebug would save you a couple headaches.
Re: Post your PHP Problems Here by Adesege(m): 10:53pm On Mar 12, 2015
That's a wrong assertion.

Var_dump prints out the values of the POST variable. So in essence, im checking if the values are being stored anyway.

There are diff types of debugging. It's unnecessary to use a tool in this case.

So var_dump is not old. It's very much in use.

lovebondz:


The good 'ol days when developers debugged with
var_dump()


If you really want to get into the nitty grity of your app, get a good editor and setup Xdebug would save you a couple headaches.
Re: Post your PHP Problems Here by Nobody: 3:27am On Mar 13, 2015
noblet:
Pls, how do I get full php video tutorials online. Thanks
you calling get started with this....
https://www.thenewboston.com/videos.php?_e_pi_=7%2CPAGE_ID10%2C1237534493
Re: Post your PHP Problems Here by Nobody: 4:02am On Mar 13, 2015
@gytee, what's the error ? it seems you dont want registered users to view the registration form or something else ? please be specific....

and did you assign a session id to the $_SESSION['username'] ?

And please do stop using mysql functions, it's deprecated http://php.net/manual/en/intro.mysql.php

use mysqli or pdo.......
Re: Post your PHP Problems Here by stellabalogun(f): 4:27am On Mar 13, 2015
Miss Ololade Kayode is battling chronic life-thre-atening kidney ailment and needs N8.1 million for a transplant abroad to remain alive.

On September 5, 1987, jubilation and joy enveloped the family of Mr and Mrs kayode who were residents of Lagos but indigenous to Abeokuta North Local Government Area of Ogun State. That was at the birth of their beautiful daughter Ololade who is now 28 years old. She is the second out of three children of Mrs Bose Kayode.

She enrolled into the Moshood Abiola Polytechnic, Abeokuta to further her education. Incidentally, she had to combine her academic activities with business due to some unsavoury family circumstances in order to help her mother, Mrs Bose Kayode to cater for her and two other siblings. She was employed by Integrated Corporate Services Limited (ICSL) in Lagos as a contract staff.

Ololade was bubbling with life and was doing well in her job until two years ago when the unexpected happened. She took ill. Since 2013, Ololade has been battling a life-threatening renal problem.

When she took ill, she was taken to Dialyzer Specialist Medical Centre at 60, Arowojobe Street, Oshodi Lagos for treatment.

There, she was diagnosed with CHRONIC KIDNEY DISEASE and is currently undergoing dialysis twice weekly. She urgently and desperately needs help, for the bi-weekly dialysis sessions and for big one, the kidney transplant in India.

Since then, Ololade has neither been herself again nor able to return to school at least to actualise her dream of becoming one of Nigeria’s female intellectuals that would contribute to her socio-economic and political advancement.

Again, her parents, especially her mother who has been both man and wife for the family and those who know Ololade have been in shock as they watch her wither away gradually as her condition deteriorates.

Her mother and relations had already spent millions of Naira, thus stretching the family’s resources beyond its malleable limits, even as it has plunged them into massive debts. Those who have an idea about Dialyzer Specialist Medical Centre would appreciate the financial implications of what Ololade, her mother, friends and relations have gone through in terms of money already expended on her being on admission there for some time now.

No doubt, Ololade is still alive by divine providence. She should have gone to India since last year as advised by her doctors on a very urgent note, for proper medical treatment. This has not been possible due to the paucity of her mother’s purse. The inability of her mother and relations to raise N8.1 million has prevented Ololade from enjoying her normal life again. Ensuing from this seedy situation, Ololade has remained in Nigeria experiencing excruciating pains. N8.1 million has stood between this once bubbly, lovely and hard working girl and normal life.

Consequent to non-availability of the needed fund, she has been a guest to several hospitals in Nigeria in spirited efforts by her distraught mother and relations to sustain her until they are able to raise such whopping amount of money to send her to India for the kidney transplant.

Ololade, the once beautiful creature full of life is now a pathetic sight to behold. Her voice and appetite have also been affected. She has shrunk so dangerously and her skin colour and texture have undergone dramatic change. She could hardly speak audibly and seldom eats.

Recently, her condition became worse, a development that made her doctors to warn seriously this time round that she can no longer afford to delay her trip to India to have the required and necessary medical treatment.

A medical report issued and signed by Dr E.K. Asomugha on behalf of the Medical Director of Dialyzer Specialist Medical Centre on December 27, 2014 indicates that Miss Ololade Kayode was assessed and it was discovered that she had chronic kidney disease secondary to chronic glomerulonephritis and was commenced on haemodialysis. She is placed currently placed on two times-weekly schedule.

Miss Kayode has been advised on Renal Transplant as a mode of her renal replacement therapy and she is currently making effort towards finding a suitable donor for the transplant operation.

Afraid that she and her family may lose their precious daughter and sister should they continue to save money on their own to ferry their daughter to India for the kidney transplant, Ololade’s mother and friends, forced by the degeneration and the piercingly agonising misery which Ololade has been in for some time now, have decided to appeal to their fellow Nigerians for financial assistance.

They are appealing to kind-hearted Nigerians to help them raise N8.1 million required to finance her medical trip abroad.

To this end, here is her mother account details NAME: BOSE KAYODE, ACCOUNT NUMBER: 6234604602 to enable benevolent individuals who wish to help Ololade get well and live her normal life again to make their donations.

Those who are parents would better appreciate a situation where they watch a dear son or daughter in such a very distressing condition and lack the wherewithal to do anything to halt the heart-rending situation. What a scary thought it would be!

Nigerians are noted for their large-heartedness. Those who are moved by Ololade’s optimism that, she would not die but live to testify the goodness of the Almighty and the benevolence of fellow Nigerians in the land of the living should not delay or hesitate to come to her rescue.

Imagine that Ololade is your daughter or your sister. Right now, the most consuming desire of this girl’s heart is to be alive and well again to resume her academic career. Nigerians, known for their eagerness to compassionately respond to distress call like this would not let Ololade down and allow the unrelenting disease to waste her young life.

Every kobo donated towards making Ololade to come back to her normal life goes a long way to retrieve her from the cold grip of death.

Ololade’s heartfelt appeal goes to governments at all levels, philanthropic organisations, corporate bodies, professional bodies, women groups, parents who understand the pangs of labour and other distinguished Nigerians who, we are sure, cannot sit by and watch this ailment waste Ololade.

The earlier she travels to India for the kidney transplant, the more sure we are that Ololade will live to become one of Nigeria’s famous female contributor to her development.

Please, help her as God Almighty whose other name is Mercy, would watch over you and your entire household, even as He takes care of your needs.

For more information and verification, you may wish to contact her mother Mrs. Kayode on 08078463215.

(1) (2) (3) ... (15) (16) (17) (18) (19) (20) (Reply)

Is Your Blog Powered By Wordpress? / Add More Than One Website Url To Your Twitter Account. / Top Google Searches By Nigerians 2015;Arsenal,Buhari,Diezani Arrest tops d list.

(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. 139
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.