[PHP] Parse error: syntax error, unexpected '}'

2006-06-02 Thread Mark Sargent
) 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

Re: [PHP] Parse error: syntax error, unexpected '}'

2006-06-02 Thread Mark Sargent
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

[PHP] Column 'movie_type_id' in order clause is ambiguous

2006-05-28 Thread Mark Sargent
| | 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

[PHP] Fatal error: Call to undefined function mysql_create_db()

2006-05-27 Thread Mark Sargent
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

Re: [PHP] Fatal error: Call to undefined function mysql_create_db()

2006-05-27 Thread Mark Sargent
for that line. Cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fatal error: Call to undefined function mysql_create_db()

2006-05-27 Thread Mark Sargent
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

[PHP] Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in

2006-05-25 Thread Mark Sargent
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

Re: [PHP] Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in

2006-05-25 Thread Mark Sargent
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

[PHP] Parse error: syntax error, unexpected ',' in

2006-05-24 Thread Mark Sargent
, *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

Re: [PHP] Parse error: syntax error, unexpected ',' in

2006-05-24 Thread Mark Sargent
, 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

[PHP] Session Not Being Passed?

2006-05-18 Thread Mark Sargent
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

Re: [PHP] Session Not Being Passed?

2006-05-18 Thread Mark Sargent
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

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-17 Thread Mark Sargent
. 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

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-17 Thread Mark Sargent
/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

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-17 Thread Mark Sargent
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

[PHP] 404 After Setting session.save_path to /tmp

2006-05-16 Thread Mark Sargent
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

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-16 Thread Mark Sargent
' 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

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-16 Thread Mark Sargent
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

[PHP] Sessions Issues With 2 Instances On Same Server

2006-04-13 Thread Mark Sargent
machine here at work. Cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Japanese with UTF-8 and mysql

2005-06-08 Thread Mark Sargent
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

Re: [PHP] Japanese with UTF-8 and mysql

2005-06-07 Thread Mark Sargent
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

Re: [PHP] Japanese with UTF-8 and mysql

2005-06-06 Thread Mark Sargent
. 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

Re: [PHP] Japanese with UTF-8 and mysql

2005-06-02 Thread Mark Sargent
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

Re: [PHP] Japanese with UTF-8 and mysql

2005-06-01 Thread Mark Sargent
? 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

[PHP] Japanese with UTF-8 and mysql

2005-05-30 Thread Mark Sargent
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

[PHP] Japanese Fonts in php

2005-05-20 Thread Mark Sargent
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

[PHP] Unknown column 'peterspeters' in 'where clause'

2005-05-18 Thread Mark Sargent
= $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

Re: [PHP] Inner Join or 2nd Query...?

2005-05-12 Thread Mark Sargent
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

Re: [PHP] Inner Join or 2nd Query...?

2005-05-12 Thread Mark Sargent
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

Re: [PHP] Inner Join or 2nd Query...?

2005-05-12 Thread Mark Sargent
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

[PHP] Posts taking over an hour to be displayed

2005-05-12 Thread Mark Sargent
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

Re: [PHP] Inner Join or 2nd Query...?

2005-05-12 Thread Mark Sargent
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

Re: [PHP] Inner Join or 2nd Query...?

2005-05-12 Thread Mark Sargent
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

[PHP] Inner Join or 2nd Query...?

2005-05-11 Thread Mark Sargent
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

Re: [PHP] Inner Join or 2nd Query...?

2005-05-11 Thread Mark Sargent
. 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

Re: [PHP] While and echoing HTML

2005-05-10 Thread Mark Sargent
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

Re: [PHP] While and echoing HTML

2005-05-10 Thread Mark Sargent
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

[PHP] While and echoing HTML

2005-05-09 Thread Mark Sargent
++ ? /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

[PHP] Test: Please Ignore

2005-05-09 Thread Mark Sargent
Testing receipt of post..cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Product details not being displayed, based on passed id

2005-04-27 Thread Mark Sargent
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

Re: [PHP] Product details not being displayed, based on passed id

2005-04-27 Thread Mark Sargent
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

[PHP] Parse error: parse error, unexpected T_ELSE

2005-04-26 Thread Mark Sargent
..? 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

Re: [PHP] array from folder

2005-04-26 Thread Mark Sargent
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

Re: [PHP] array from folder

2005-04-26 Thread Mark Sargent
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

Re: [PHP] Parse error: parse error, unexpected T_ELSE

2005-04-26 Thread Mark Sargent
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

[PHP] Product details not being displayed, based on passed id

2005-04-26 Thread Mark Sargent
, 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

[PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Mark Sargent
://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

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Mark Sargent
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

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-25 Thread Mark Sargent
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

[PHP] Mixed Up Values

2005-04-25 Thread Mark Sargent
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

Re: [PHP] Help outputting an array?

2005-04-25 Thread Mark Sargent
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

[PHP] Access Denied-phpMyAdmin

2005-04-16 Thread Mark Sargent
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

Re: [PHP] Access Denied-phpMyAdmin

2005-04-16 Thread Mark Sargent
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

[PHP] snort database not appearing in phpmyadmin

2005-04-14 Thread Mark Sargent
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

Re: [PHP] snort database not appearing in phpmyadmin

2005-04-14 Thread Mark Sargent
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

[PHP] Index of /base-1.1

2005-04-13 Thread Mark Sargent
/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

Re: [PHP] Re: Index of /base-1.1

2005-04-13 Thread Mark Sargent
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

Re: [PHP] Re: Index of /base-1.1

2005-04-13 Thread Mark Sargent
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

[PHP] Apache2 html/php dir-where..?

2005-04-12 Thread Mark Sargent
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

Re: [PHP] Apache2 html/php dir-where..?

2005-04-12 Thread Mark Sargent
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

[PHP] collect2: ld returned 1 exit status, make: *** [sapi/cli/php] Error 1

2005-04-12 Thread Mark Sargent
] 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

Re: [PHP] collect2: ld returned 1 exit status, make: *** [sapi/cli/php] Error 1

2005-04-12 Thread Mark Sargent
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

[PHP] Cant find ClearModuleList in httpd.conf anywhere

2005-04-12 Thread Mark Sargent
ClearModuleList anywhere. Cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cant find ClearModuleList in httpd.conf anywhere

2005-04-12 Thread Mark Sargent
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

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-10 Thread Mark Sargent
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

[PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread Mark Sargent
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

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread Mark Sargent
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

Re: [PHP] [PHP-INSTALL] Install Problems on Fedora 3

2005-04-09 Thread Mark Sargent
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