Hi All,
sorry, found it. Forgot the ; after $age++. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
esults = mysql_query($insert) or die(mysql_error());
$age++
}
Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|
| 6 | Horror |
| 7 | Action |
| 8 | Kids |
+---+--+
8 rows in set (0.00 sec)
A Google search for the error gave nothing.
Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Mark Sargent wrote:
Peter Lauri wrote:
Have you created a connection to the Server with the correct
permissions?
Hi All,
sorry, meant to post that too,
1 3 $connect=mysql_connect("localhost", "root", "password omitted") or
die("Hey, check your server conne
Peter Lauri wrote:
Have you created a connection to the Server with the correct permissions?
Hi All,
sorry, meant to post that too,
1 3 $connect=mysql_connect("localhost", "root", "password omitted") or
die("Hey, check your server connection.");
I g
e book I'm using. Any pointers? Code looks
identical to the book's. Cheers.
P.S. I also tried this,
mysql_create_db("moviesite", $connect) or die(mysql_error());
and
mysql_create_db("moviesite", "$connect") or die(mysql_error());
Mark Sargent.
--
Mark Sargent wrote:
Hi All,
I get the error for line 15 for this code,
";
18 echo "$_SESSION['text']";
19 echo "";
20 ?>
I have put ' ' quotes around the " " quotes for each font attribute so
that the parser doesn'
shed too early. Is that
wrong? I know that this code would get tedious for lots of text and CSS
would be better, but, it's just a little study project from the book I'm
following. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
he book is Beginning PHP, Apache, MySQL, Web Development
and it seems to only be a typo on that page(section) as the next page
shows similar code using the right syntax. I just didn't notice it till
after I posted. Cheers.
Mark Sargent
--
PHP General Mailing List (http://www.php.ne
apache2/htdocs/sorting.php* on line *16*
The code in the book I'm following has the , in that line. Can anyone
tell me what I'm doing wrong? Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jay Blanchard wrote:
[snip]
which points to this page,
[/snip]
You forgot the parentheses after session_start(); (Assuming that you cut
and pasted)
Hi All,
ouch! Can't believe I missed that. Thanx. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubs
al 24
drwxr-xr-x 2 htdocs htdocs 4096 May 19 12:08 .
drwxr-xr-x 24 root root 4096 May 19 12:04 ..
-rw--- 1 htdocs htdocs 13 May 19 12:08
sess_69e7ffdaf855da229f4b067668b0f89d
and it has a session file there as you can see. Is my code wrong,
perhaps? I'm following Beginning PHP,
file.
Hi All,
weird, as I distinctly left out installing any type of servers when
initially installing FC5. Cheers.
Mark Sargent
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2/bin/apachectl
if [ -f "$startApache" ] ; then
$startApache start
fi
and I see that I have left off start at the end of startApache.
Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ts when doing a reboot of the box. This was
happening before I just followed your last steps. Thoughts? Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
y issue?
Should I create a new group? Little confused? Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e 'tmp' is writable by the user the webserver is running as.
Hi All,
thanx. How do I determine what user httpd is running as? Cheers.
Mark Sargent
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
change it back, I still get that error. Restarting httpd
doesn't fix it. Only a reboot, ouch! Why is this happening? Cheers.
httpd = 2.2.2
php = 5.1.4
OS = Fedora 5
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
on a test
machine here at work. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Lynch wrote:
On Mon, June 6, 2005 11:02 pm, Mark Sargent said:
The correct way - if one wants utf-8 as charset - is:
header("Content-Type: index/html; charset=utf-8");
actually, if I add this,
header("Content-Type: index/html; charset=utf-8");
a
Mark Sargent wrote:
Peter Brodersen wrote:
On Thu, 2 Jun 2005 11:58:26 +0100, in php.general
[EMAIL PROTECTED] (Richard Davey) wrote:
I would recommend setting UTF-8 as the Content-type via PHP itself:
header('Content-type: UTF-8') - do it as one of the first things when
you
ve tried that as well, with no success. As I've stated, people,
the static J renders fine, just not the dynamic stuff. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
l_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
; portable libs/applications.
mbstring.encoding_translation = On
; automatic encoding detection order.
; auto means
mbstring.detect_order = auto
;
fter you've pulled it back from
MySQL? Perhaps parsing it, or pushing it through a PHP function that
might convert it back to Latin1? (i.e. using non-overloaded PHP
functions when you should be using the mb functions)
Best regards,
Richard Davey
Hi All,
Richard, please view code provid
e and display
it in a UTF-8 set page, it is just ? marks, although static J text
displays fine...any thoughts on this..? Driving me nutz. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
mic site for my company, minus any bells and whistles interface
wise. Do I have to set something in php/apache for this.? Thanx.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
FROM Customers WHERE
customer_username = $username AND customer_password = $password") or die
(mysql_error());
$myrow = mysql_fetch_row($result);
$customer_id = $myrow[0];
$_SESSION['customer_id'] = $customer_id;
?>
echo 'SQL Query: '.$result.'';
echo "Customer
Richard Lynch wrote:
On Thu, May 12, 2005 12:17 am, Mark Sargent said:
Hi All,
ok, this revised code produces the error below,
You took out the mysql_connect completely???
Don't do that.
Sorry, was following what you suggested b4, no..?
$db = mysql_connect("localho
Richard Lynch wrote:
On Thu, May 12, 2005 12:17 am, Mark Sargent said:
Hi All,
ok, this revised code produces the error below,
You took out the mysql_connect completely???
Don't do that.
mysql_select_db("status",$db);
$maker_result = mysql_query("SE
Hi All,
is anyone else experiencing this.? Over an hour for my posts to be seen.
Happening from work and home. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
r_num; $i++){
$maker_myrow=mysql_fetch_array($maker_result);
$maker=mysql_result($maker_result,$i,"maker_detail");
$maker_id=mysql_result($maker_result,$i,"maker_id");
echo "$maker";
}
?>
*Warning*: mysql_num_rows(): supplied argument is not a valid MySQL
result resourc
Richard Lynch wrote:
On Wed, May 11, 2005 10:19 pm, Mark Sargent said:
I'll try this differently(I hope). With the below code, variables are
named/set twice ($db, $num, $result, $myrow) etc. In ASP, from what I
remember, that would be a no no. Currently, this code only populates the
you're looking for, you
need to describe what your goal is. You might also give more of your
table structure since you're asking about joins.
kgt
Mark Sargent wrote:
Hi All,
with wanting to show both product types(Switch, Router etc) and
Makers(Cisco, Avaya, etc) on the one pa
ss I was curious how others do things.
Or something else entirely?
Could be. Sorry, perhaps I'm thinking too general with this, yes..? Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi All,
with wanting to show both product types(Switch, Router etc) and
Makers(Cisco, Avaya, etc) on the one page in select boxes, I was
wondering, do you use 2 seperate queries to the database or do you inner
join to get all in 1..? I have set up different tables with related id's
etc. So, to
Mary-Anne Nayler wrote:
oh, and the i++ should be inside the while loop and there is also a
missing semi colon after the echo, ie;
$i=0;
while ($i < $num){
$product_type=mysql_result($result,$i,"product_type_detail");
echo "";
$i++ ;
}
Mark Sargent wrote, On 10/05/05 02:2
Prathaban Mookiah wrote:
I guess it is the missing semicolon.
And you can write:
echo ""
as simply
echo "$product_type"
Prathap
-- Original Message -------
From: Mark Sargent <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Sent: Tue, 10 May 2005 13:23:51
Testing receipt of post..cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$db);
$myrow = mysql_fetch_array($result);
$num = mysql_num_rows($result);
?>
Product Type
$i=0;
while ($i < $num){
$product_type=mysql_result($result,$i,"product_type_detail");
echo ""
}
$i++
?>
I get the folowing error,
*Parse error*: parse error, unexp
Richard Lynch wrote:
http://php.net/register_globals
On Wed, April 27, 2005 12:20 am, Mark Sargent said:
Petar Nedyalkov wrote:
On Wednesday 27 April 2005 08:54, Mark Sargent wrote:
Hi All,
this page,
http://webmonkey.wired.com/webmonkey/99/21/index3a_page3.html?tw=programmin
g
has
Petar Nedyalkov wrote:
On Wednesday 27 April 2005 08:54, Mark Sargent wrote:
Hi All,
this page,
http://webmonkey.wired.com/webmonkey/99/21/index3a_page3.html?tw=programmin
g
has code that is supposed to pass an id via the url string to the same
page, and display info of a particular product
instead of
the proudct's details being displayed, based on that id, I get the
original page, with the lnks. I've right clicked the links, and viewed
properties, where I see that the id=n is set. Why doesn't it pull the
record based on the id being passed..? Cheers.
Mark Sar
Prathaban Mookiah wrote:
Mark,
Back to basics budy!!
25 if ($myrow = mysql_fetch_array($result)); {
should be
25 if ($myrow = mysql_fetch_array($result)) {
Note that extra semicolon?
Prathap
-- Original Message ---
From: Mark Sargent <[EMAIL PROTECTED]&
Mark Sargent wrote:
Ed Dorsch wrote:
Can PHP generate an array based on file names in a folder?
For example, if I have a folder called "photos" that includes three
files -- tree.jpg, house.jpg and boat.jpg -- can PHP "look" at the
file and generate a variable $photos= a
inspiration. You have to go after it with a club."
-Jack London
Hi All,
yep, basics are good, hence my following the tut at webmonkey(so I can
learn the basics), which had the code like that. Cheers.
P.S. Some people are mailig me direct. That's great, but, I'd prefer you
reply
don't see what
it is. Anyone..? Cheers.
Mark Sargent.
*Parse error*: parse error, unexpected T_ELSE in
*/var/www/html/phpmysqltable.php* on line *41*
25 if ($myrow = mysql_fetch_array($result)); {
26
27 echo "\n";
28
29 echo "Product NameProduct Model
Numbe
te.Here is my second title.
What incredibly easy way to do this am I just missing? Thanks! :)
Hi All,
crikey, you'd think I woulda seen that myself. Forgot something so
fundamental...it's been a while since I played with programming..it
shows..cheers.
Mark Sargent.
--
PHP General Mailing
the left 1. Meaning
product_model_number is being displayed as product_name and so forth.
What is wrong with the code.? Cheers.
Mark Sargent.
$result = mysql_query("SELECT product_name, product_model_number,
23 product_serial_number FROM Products",$db);
24
25
26
27 echo "\n
Hegedűs Balázs wrote:
Hi all,
ever tried to test if your connection to the database succeeded? maybe
that's why it shouted that "...not a valid result resource..." msg.
Balazs Hegedus
Mark Sargent wrote:
Drewcore wrote:
just put a @ symbol before the function calll, e
Drewcore wrote:
just put a @ symbol before the function calll, eg
while ($myrow = @mysql_fetch_row($result)) {
etc
On 4/25/05, Mark Sargent <[EMAIL PROTECTED]> wrote:
Hi All,
get the following error when calling data from mysql,
*Warning*: mysql_fetch_row(): supplied argument is not a
onkey.wired.com/webmonkey/99/21/index3a.html
Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Marek Kilimajer wrote:
Mark Sargent wrote:
Hi All,
I can access the database from the terminal on Fedora 3,
[EMAIL PROTECTED] bin]# ./mysql -h localhost -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.10a
Hi All,
I can access the database from the terminal on Fedora 3,
[EMAIL PROTECTED] bin]# ./mysql -h localhost -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.10a-standard
Type 'help;' or '\h' for help. Type '\
Mark Sargent wrote:
Hi All,
I've installed phpmyadmin and have a snort database in mysql, but, it
doesn't appear in phpmyadmin. I know it's there, because base is using
it to display info from snort on the machine. Why wouldn't it appear
in phpmyadmin. It appears with the sa
test machine.
What should I look for to fix this..? Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mark Sargent wrote:
David Robley wrote:
Mark Sargent wrote:
Hi All,
typing localhost/bse-1.1 gives me access, but, in this format,
Index of /base-1.1
Icon Name <http://localhost/base-1.1/?C=N;O=D>Last
modified <http://localhost/base-1.1/?C=M;O=A> Size
<h
David Robley wrote:
Mark Sargent wrote:
Hi All,
typing localhost/bse-1.1 gives me access, but, in this format,
Index of /base-1.1
Icon Name <http://localhost/base-1.1/?C=N;O=D>Last
modified <http://localhost/base-1.1/?C=M;O=A> Size
<http://localhost/ba
g_common.php
<http://localhost/base-1.1/base_ag_common.php> 04-Apr-2005 05:26 3.5K
a listing of the dir, which, I guess, is not too good. What have I done
wrong here..?
Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
whole
bunch of AddModules, put it at the bottom of that list.
Chris
Mark Sargent wrote:
Hi All,
what line number is the following on,
And in the AddModule section of httpd.conf, somewhere under the
ClearModuleList, add this:
For PHP 4:
AddModule mod_php4.c
For PHP 5:
x27;t find
ClearModuleList anywhere. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mark Sargent wrote:
Hi All,
keep getting this error with make on Fedora 3, home machine.
Successfully installed on work FC3 machine earlier today. I did make
twice, to no avail, and then redid the configure then another make,
with the same results.
collect2: ld returned 1 exit status
make
] Error 1
Let me know if you need me to post more info from the make. Cheers.
php=5.0.3
apache=2.0.53 (apache installed fine)
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason Wong wrote:
On Tuesday 12 April 2005 16:09, Mark Sargent wrote:
I've gone and uninstalled the pre-installed httpd/php via yum on
Fedora3 and re-installed Apache/PHP via source. Apache is now installed
at /usr/local/apache2. I want to know, where is the dir for html/php
files. B4 i
Hi All,
I've gone and uninstalled the pre-installed httpd/php via yum on Fedora3
and re-installed Apache/PHP via source. Apache is now installed at
/usr/local/apache2. I want to know, where is the dir for html/php files.
B4 it was /var/www/html. What is it now..? Cheers.
Mark Sargent.
-
John Nichel wrote:
Mark Sargent wrote:
John Nichel wrote:
Mark Sargent wrote:
http://www.php.net/manual/en/install.unix.php
it has 2 examples,
4-1 and 4-2. Little confused with what shared and static modules
are and
which 1 pertains to me. I was wanting to get php running to allow base
to show
John Nichel wrote:
Mark Sargent wrote:
http://www.php.net/manual/en/install.unix.php
it has 2 examples,
4-1 and 4-2. Little confused with what shared and static modules are and
which 1 pertains to me. I was wanting to get php running to allow base
to show results of snort logging in mysql. Snort
John Nichel wrote:
Mark Sargent wrote:
Hi All,
I did a source install, of which I'm a newb at, and then created a
index.php file containing the following,
but, that shows in the browser, Firefox, when typing
You need to tell Apache how to handle php files.
Hi All,
sorry guys, quite new t
4 creating the index.php page.
I'm swaying towards that I may have compiled the source wrongly, like
leaving something out. Happy to post whatever is needed to help you help
me here. Cheers.
Mark Sargent.
[EMAIL PROTECTED] php-5.0.3]# ./configure --with-mysql=/usr/local/mysql
too much to p
68 matches
Mail list logo