Greetings,
I am wanting to create an select menu for displaying the order of the item
on a page. I am guessing that I need to get the count of how many items are
in the db and them put them into a select menu.
Does anyone know how to do this or can point me in the right direction?
I hope this ma
Richard,
Thank you so much for your response.
The select would be created from the number of records in the db.
$variable2
The problem that I am having is rather than getting just the number of
records, which is 3 currently, I would like it to be 1 for the first option,
2 for the second..., so
Here is my code:
$name = $_POST['name'];
if ($name) {
foreach ($name as $t) {
echo "$t";
}
$order = $_POST['order'];
if ($order) {
foreach ($order as $i) {
//Update the table in MySQL
$update_data = "UPDATE sections SET `order` =
Yes, each variable is an array. foreach works individually with no problems.
The problem I am having is getting both to update the table in MySQL. It
will update $i three times with no problem, however, it will only update $t
with the last value in the array.
Name is a checkbox and contains the n
Greetings,
Can anyone point me in the right direction on this?
I want a link to an image that appears below the link after it is clicked. I
think it would be an ³if² statement, but I am not sure where to start.
Thanks,
--
Steve M.
Does anyone know if there is a way to move all the files in one directory
into another?
Thanks,
--
Steve M.
/>
>
>
>- Rick
>
>
> Original Message
>> > Date: Thursday, January 24, 2008 02:36:55 PM -0600
>> > From: Pastor Steve <[EMAIL PROTECTED]>
>> > To: PHP eMail List
>> > Subject: [PHP] Rename
>> &g
2/8/08 11:03 AM Zoltán Németh ([EMAIL PROTECTED]) wrote:
> 2008. 02. 8, péntek keltezéssel 10.54-kor Pastor Steve ezt írta:
>> > Is it possible to read each line of data from a file?
>> >
>> > I have a text file that has several lines on it. I only want to di
Is it possible to read each line of data from a file?
I have a text file that has several lines on it. I only want to display the
first line only.
The
file I have
looks like this.
But outputs:
"The file I have looks like this."
Here is my code:
Breaking News
Please che
Hi, thanks for all your help today.
I have the following code and I am trying to order the output. Currently it
seems really random. Can anyone point me in the right direction?
Breaking News
Please check here often for breaking news stories.
Greetings,
I am getting an error when I am trying to upload a PDF file through a
script.
When I do a print_r($_FILES) I get the following:
Array
(
[userfile] => Array
(
[name] => document.pdf
[type] =>
[tmp_name] =>
[error] => 2
Thank you.
I tried what you suggested below and it gave me an unexpected
T_CONSTANT_ESCAPED_STRING error.
Would this be valid: (I am typing in my Entourage, but I am writing the code
in Dreamweaver. You are probably seeing the quotes that Entourage (my email
application) is giving you.)
> $im
Greetings,
I am attempting to put the results of a ³while² loop into a variable.
Example:
$result = mysql_query(³SELECT filename, page_title FROM table²);
while ($row = mysql_fetch_assoc($result))
{
$var = ³{$row[page_title¹]}²;
echo ³$var²;
13 matches
Mail list logo