Hi,
Supposing I have a database with customer and number of items wanted as 2 columns. If I have 1000 items to sell how would I find out at which customer is my 1000 items sold. i.e.
Customer number
1 100
2 500
3 300
4 200
5...
Hi,
Is there any way that I can my php page run itself at say 12am every morning? This is so I can save the mornings beginning information in my mysql database?
Thanks,
Neil.
Trying to return variables from a function to teh main programme.
Using
return array($var1,$var2,$var3);
Where are these variables then stored?
I can't find them.
Thanks,
Neil.
Hi,
I want to read in a variable $comid which will be a number 1-40 and I then want to find the relevant value in and array, i.e. array[$comid] (of array[40] say) how would I do this?
Thanks,
Neil.
Hi,
I have a mysql database with a persons login date and time as a field and I have designated it as timestamp. I then want to get this info and plot it on a graph. I call for it from the database and it comes in this format.
200506210000000 which is 2005 june 21st 00:00:00. I have tried loads...
Hi,
I have selected a row from a table where the column names are:
id, money, com1, com2, com3, com4, com5, com6
I want to do a loop where I run a function on each one of the com1, com2 etc. values one at a time.
Is there any way I can format the text to be say
for ($i=1;$i<=20;$i++)
{...
Hi I have the following snippet of code from a bigger programme.
while ( $row = mysql_fetch_array($result))
{
extract($row);
$l++;
$offerpricecom[$i][$l]=$offerprice;
echo $offerpricecom[$i][$l]; // line 1
}
for ($l==1;$l<=3;$l++)
{ $newprice=$offerpricecom[$i][$l];
echo...
Hi,
I am running the following query
$query = "select sum(offernumber) from offers where offerprice='120'";
result= mysql_query(query);
how do I then extract this result?
Thanks,
Neil.
I am getting the following error
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/neil/web/adm_diskusi.php on line 14
where line 14 is
echo "Pilih Topic : <select class='entri' onChange="window.location = this.options[this.selectedIndex].value">";
thanks
Neil.
I am having a problem getting a password to agree with the encrypted one in mysql. here is my code
$num = mysql_num_rows($result);
if ($num == 1) //login name was found
{
$sql = "select loginName from Member
where loginName='$fusername'
and...
Thanks it was a register_globals problem.
I am now having a problem getting a password to agree with the encrypted one in mysql. here is my code
$num = mysql_num_rows($result);
if ($num == 1) //login name was found
{
$sql = "select loginName from Member...
Hi I am trying to use a php script for a login that I got from a book but it won't work, it stops on the login page and won't submit. here are my codes.
include("login_form.inc");
}
break;
case "new":
foreach($HTTP_POST_VARS as $key => $value)
{
if ($key !=...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.