User Profile
Collapse
-
really, what is the result of mysql_affected_ rows() when you execute that query? -
on which .php file that returns post error ("Method POST not allowed")Leave a comment:
-
PHP is the most (script) language that can talk to databases, such as:
Mysql,
Oracle,
MSql,
Microsoft SQL Server,
dBase,
db++,
FrontBase,
PostgreSQL,
ODBC (Adabas D, IBM DB2, iODBC, Solid, and Sybase SQL Anywhere),
Sybase-CT,
Sybase-DB,
SQLite,
MaxDB,
Ovrimos SQL Server,
SESAM/SQL-Server,
Empress,
Solid,
Ingres...Leave a comment:
-
[PHP]
foreach ($array as &$value)
{if ($value <= 0)
{$value+=12;}}
[/PHP]
foreach reference work on/for PHP5, as long as i know.Leave a comment:
-
add 'limit' statement on query
[code=php] $query = "SELECT p.patient_id, p.last_name, p.first_name, p.id,
c.contact_numbe r
FROM pat p, contact c
WHERE p.id = c.id
AND $field LIKE '$let%'
AND p.pat_status = '$stat_type'
AND p.org_code = '$org_code'
AND p.org_code = c.org_code
AND c.$contact_fiel d...Leave a comment:
-
[html]
<html><head><ti tle>Questionnai re</title></head>
<body>
<form name="myform" action="http://localhost//my1.php" method="post">
<table border='0'><tr> <td valign='top'><i nput
type='radio' name='quiz' value='1' />a</td><td>
<br></td></tr><tr><td...Leave a comment:
-
// list of words you want to find
$list = array("Style", "href", "div"); // add it as u want
$input = "aStylelkhRefs" ;
for($i=0; $i< count($list); $i++)
{
if(eregi($list[$i], $input)) print "find $list[$i] in the $i list<br>";
}Leave a comment:
-
[php]
$first_check = $_POST['first_check'] ? $_POST['first_check'] : 1;
$second_check = $_POST['second_check'] ? $_POST['second_check'] : 1;
$third_check = $_POST['third_check'] ? $_POST['third_check'] : 1;
//total
$value = $first_check * $second_check * $third_check;
[/php]Leave a comment:
-
your tables structures is not normal, but i'm not judge you that you are wrong, but actually this give you a problem don't you.
you need to "normalize" your table structure (i'm not good enough, but i suggest you to learn this from books, net or friends maybe).
---------
table state : state_id, state_name (primary key state_id)
table city : city_id, state_id, city_name (primary key city_id, state_id)...Leave a comment:
-
cool man..,
the simple way is what you prefer and understand to use.
it depends on you, whether txt or database.
I cann't show you how to do this, because this is large problem on simple question, but i'm sure you're really had experience on php to accomplish this.
So my suggestion is,
If what you need is just to store un structured data, using txt is a good simple once.
But if you need to...Leave a comment:
-
what is the problem :
1. is your code parse error, or
2. the redirect page that you wanted doesn't work
things that need to remember where u want use header, especcialy for redirection :
1. make sure your header must on the TOP OF THE LINE of your code.
2. make sure the url location must be true (not page not found). i suggest u use ABSOLUTE URL, header("Locatio n: http://www.aaa.ccc/error.php")...Leave a comment:
-
Are there any user has more than one id (or unique datas) to log in? i think no
Except you, the administrator.Leave a comment:
-
may this help
[php]
$row = mysql_query("se lect count(*) from product");
$count = $row[0];
// to get last inserted row :
$count -= 1; //last inserted row index
$lastRow = mysql_query("se lect * from product limit $count, 1");
[/php]Leave a comment:
No activity results to display
Show More
Leave a comment: