) 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
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
|
| 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 unsubscribe, visit: http://www.php.net
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.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
for that line. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 ?php
2 //connect to MySQL
3 $connect=mysql_connect(localhost, root, password omitted) or
die(Hey, check your server connection.);
I get
attribute so
that the parser doesn't think the echo is finished 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
Mark Sargent wrote:
Hi All,
I get the error for line 15 for this code,
?php
15 echo font face='$_SESSION['font']';
16 echo size='$_SESSION['size']';
17 echo color='$_SESSION['colour']';
18 echo $_SESSION['text'];
19 echo /font;
20 ?
I have put ' ' quotes around
,
*Parse error*: syntax error, unexpected ',' in
*/usr/local/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
, 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.net/)
To unsubscribe, visit: http://www.php.net
wrong,
perhaps? I'm following Beginning PHP, Apache, MySQL Web Development. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 unsubscribe, visit: http://www.php.net/unsub.php
. 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
/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
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
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
' 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
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
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);
as suggested, firefox
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're ready
. 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
be converted
; one from another
mbstring.substitute_character = none
Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
? 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 provided below. Cheers.
Mark Sargent.
?php
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
building a little
dynamic 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
= $password) or die
(mysql_error());
$myrow = mysql_fetch_row($result);
$customer_id = $myrow[0];
$_SESSION['customer_id'] = $customer_id;
?
/head
body
?php
echo 'SQL Query: '.$result.'br';
echo CustomerID = $customer_id;
?
Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net
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 page in select boxes, I
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
I
in */var/www/html/products.php* on line *40
Cheers.
Mark Sargent.
*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
Richard Lynch wrote:
On Thu, May 12, 2005 12:17 am, Mark Sargent said:
Hi All,
ok, this revised code produces the error below,
?php
You took out the mysql_connect completely???
Don't do that.
mysql_select_db(status,$db);
$maker_result = mysql_query(SELECT Makers.maker_id
Richard Lynch wrote:
On Thu, May 12, 2005 12:17 am, Mark Sargent said:
Hi All,
ok, this revised code produces the error below,
?php
You took out the mysql_connect completely???
Don't do that.
Sorry, was following what you suggested b4, no..?
$db = mysql_connect(localhost, root, grunger
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
.
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
Prathaban Mookiah wrote:
I guess it is the missing semicolon.
And you can write:
echo trtd? echo $product_type ?/td/tr
as simply
echo trtd$product_type/td/tr
Prathap
-- Original Message ---
From: Mark Sargent [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Tue, 10 May 2005 13
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 trtd? echo $product_type ?/td/tr;
$i++ ;
}
Mark Sargent wrote, On 10/05/05
++
?
/table
/body
/html
I get the folowing error,
*Parse error*: parse error, unexpected '}', expecting ',' or ';' in
*/var/www/html/products.php* on line *20
*
which is the $i++ section.
Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Testing receipt of post..cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
..? 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 table border=1\n;
28
29 echo trtdProduct Name/tdtdProduct Model
Number/tdtdProduct
30 Serial Number
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 in here, so all can see/comment. Cheers, again.
Mark Sargent.
--
PHP General Mailing List (http
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= array (tree, house,boat
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
, and 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 Sargent.
P.S. I've
://webmonkey.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
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 valid
Hegeds Balzs 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, eg
while ($myrow
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 table border=1\n;
28
29
30
31
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 List (http://www.php.net
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
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
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:
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 same set up on my work
/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
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=DLast
modified http://localhost/base-1.1/?C=M;O=A Size
http://localhost/base-1.1/?C=S;O
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=DLast
modified http://localhost/base-1.1/?C=M;O=A Size
http://localhost/base
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.
--
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
] 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
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
ClearModuleList anywhere. Cheers.
Mark Sargent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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:
AddModule
John Nichel wrote:
Mark Sargent wrote:
John Nichel wrote:
Mark Sargent wrote:
snip
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
page b4 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
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,
?php
phpinfo(); ?
but, that shows in the browser, Firefox, when typing
snip
You need to tell Apache how to handle php files.
Hi All,
sorry
John Nichel wrote:
Mark Sargent wrote:
snip
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
68 matches
Mail list logo