[PHP] Page per page

2003-02-24 Thread Miguel Brás
Hi guys, Anyone has a good example to build a system that show X records per page and give links to next and previous pages? Thx Miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is wrong with this?

2003-02-24 Thread Miguel Brás
he data from DB. He displays all records on DB available at aviao field, but he is not making the correct mysql query... Anyone knows why? - Original Message - From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]> To: "Miguel Brás" <[EMAIL PROTECTED]> Cc: <[EMA

[PHP] What is wrong with this?

2003-02-24 Thread Miguel Brás
Hi, here's the script * "; $connection = mysql_connect($host, $user, $pass) or die ("Erro de execução. Informe-nos sobre a situação!"); mysql_select_db($db) or die ("Erro de execução. Informe-nos sobre a situação!"); $queryaviao="SELECT * FROM ssr ORDER BY avia

Re: [PHP] Data from DB

2003-02-17 Thread Miguel Brás
Using MySQL Any change for a code sample? Thx Miguel "Greg Donald" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Mon, 17 Feb 2003, Miguel Brás wrote: > > > >I have a table with users and passwords with over th

[PHP] Data from DB

2003-02-17 Thread Miguel Brás
Hello gents, I have a table with users and passwords with over than 100 rows. I have 7 specific users that I wanna display on a page, as well their data. How can I display this specific users on the page? Thx Miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

[PHP] Show the info to update depending on the selection

2003-02-11 Thread Miguel Brás
Hi, I have a page that is intendend to update a table field on DB i have a drop down menu wich displays all the position fields available on db and a text area where i will insert the new data. now the problem: I'm using the query SELECT * FROM table WHERE position = $position the $position is

[PHP] Different dates with lmost same script

2003-02-07 Thread Miguel Brás
Hi, I have 2 pages that shows a table contents On one, it shows the title and date with the following script ** 0) { // iterate através do conj resultados // print titulo dos artigos while($row = mysql_fetch_object($result)) { ?> http://www.ivao-pt.org

[PHP] Different dates with lmost same script

2003-02-06 Thread Miguel Brás
Hi, I have 2 pages that shows a table contents On one, it shows the title and date with the following script ** 0) { // iterate através do conj resultados // print titulo dos artigos while($row = mysql_fetch_object($result)) { ?> http://www.ivao-pt.org

[PHP] Read file and get what i want

2003-02-06 Thread Miguel Brás
Hello gents, I made a script to open a file on a server and write his content to a temp file on my server. A part of the temp file is below: ***temp file** !GENERAL VERSION = 1 RELOAD = 1 UPDATE = 20030206181916 CONNECTED CLIENTS = 178 CONNECTED SERVERS = 12 !CLIENTS AHS5577:134723:

Re: [PHP] Execute at a defined time

2003-02-05 Thread Miguel Brás
ample.php, simply create a cron entry that will execute at the desired time. If you need information on the crontab format do a man crontab or search google for cron help as there is a lot of information available. Jason On Wed, 2003-02-05 at 06:49, Miguel Brás wrote: > Hi, > > I was look

[PHP] Execute at a defined time

2003-02-05 Thread Miguel Brás
Hi, I was looking on PHP manual but didn't find anything about it. How can I execute a script all days at the same time? I kno i must have access to the CRON of the system, but don't know what function should I use to make this happen (run the script). Miguel -- PHP General Mailing List (htt

Re: [PHP] Redeclare formatdate

2003-02-01 Thread Miguel Brás
Thx for the help... Miguel "Jason Sheets" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > This is a good reason to use include_once and require_once. > > Jason > > On Sat, 2003-02-01 at 15:59, John W. Holmes wrote: > > > I have this message coming when cal

[PHP] Redeclare formatdate

2003-02-01 Thread Miguel Brás
Hi, I have this message coming when calling the page main.php Fatal error: Cannot redeclare formatdate() in /home/virtual/site239/fst/var/www/html/home/not_main.php on line 3 the code related to this message is: I use this code is some other pages and it works well, but here the c

Re: [PHP] Delete files via PHP

2003-02-01 Thread Miguel Brás
on is found on php.ini or if the directory permissions aren't set as they should be. Miguel "Jason Wong" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Saturday 01 February 2003 03:23, Miguel Brás wrote: > > Hey, thx for

Re: [PHP] Delete files via PHP

2003-01-31 Thread Miguel Brás
ill can't find it, _then_ ask on the list. I had no idea how to do this, but it took me 30 sec to find out, and I'm a newbie. http://no.php.net/manual/en/function.unlink.php vennlig hilsen Øyvind On Fri, 31 Jan 2003, Miguel Brás wrote: > Hi guys, > > I made a upload file'

[PHP] Delete files via PHP

2003-01-31 Thread Miguel Brás
Hi guys, I made a upload file's script and it works fine. No, I wanna create a page where it will display the directory content and will let me delete any file standing there. Is there any way to use php for that? Where can I get info about it? BTW, I have PHP/MySQL working on a Linux system T

[PHP] get the $email string

2003-01-16 Thread Miguel Brás
Hi, i made a page to display some user details and then clicking on the user name it goes to another page to send a mail via mail() function. here is the line of the first page name; ?> when click on user name, it goes to the mail_active.php?[EMAIL PROTECTED] on the mail_active.php page, how do

Re: [PHP] Send email when some action

2003-01-16 Thread Miguel Brás
thx for the replies Miguel "Maxim Maletsky" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... mail() function @ http://php.net/mail -- Maxim Maletsky [EMAIL PROTECTED] "Miguel Brás" <[EMAIL PROTECTED]> wrote... : &

[PHP] Send email when some action

2003-01-15 Thread Miguel Brás
Hi gents, i have a script to manage the registered users on my site. have also a table with id, name, uname, passwrd, email, datejoined, level and status my question is... it there any possibility to inform a member by mail that his (let'say) current status changed from inactive to active, or fro

Re: [PHP] Next and Previous

2003-01-14 Thread Miguel Brás
Let's see i solved thhe problem... I did since I was making the select with WHERE ID = '$ID' so I get the var $ID., Thx for the help of all Miguel "Matt" <[EMAIL PROTECTED]> escreveu na mensagem 034901c2bc37$41429160$[EMAIL PROTECTED]">news:034901c2bc37$4

Re: [PHP] Next and Previous

2003-01-14 Thread Miguel Brás
ause you are at the beginning and you need to have some logic to not display the previous if at beginning. Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] > -----Original Message- > From: Miguel Brás [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 15 Januar

Re: [PHP] Next and Previous

2003-01-14 Thread Miguel Brás
Hi, it's giving me an error. it assumes the next page as news.php?ID=1 and the previous as news.php?ID=-1 Any hint for that? Miguel "Chris Shiflett" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Miguel Brás <[E

[PHP] Next and Previous

2003-01-14 Thread Miguel Brás
On a page i have all the records from a table. they are linkable. if you click on them, the will show the specific record id with all info on the row. how to make a link for the following record and one other for the previous? suppose, the page you're seeing is http://www.x.com/news.php?ID=50

[PHP] Date again

2002-12-06 Thread Miguel Brás
Ok guys, having a problem here. I did my table with 6 fields, they are: id position name timein timeout date I have a form to insert the info on the fields, and at the date field, I have a drop down menu that returns me the next 7 days (the date in d/m/y), people will choose the date they wa

Re: [PHP] Good eve

2002-12-06 Thread Miguel Brás
thx to both Miguel "Rolf Vreijdenberger" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > SELECT field1, field2, field3 FROM table WHERE date=NOW() > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Date

2002-12-06 Thread Miguel Brás
And sorry about the subject, it should be Date "Miguel BráS" <[EMAIL PROTECTED]> escreveu na mensagem [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have a table with several field, one of them has a date insertion on the > d/m/y format. > I would like to return

[PHP] Good eve

2002-12-06 Thread Miguel Brás
I have a table with several field, one of them has a date insertion on the d/m/y format. I would like to return only the data for the present day (today will be date 05/12/02 tomorrow will be 06/12/02) I will do SELECT field1, field2, field3 FROM table WHERE date=? What is missing on the

[PHP] Drop down list with date

2002-11-12 Thread Miguel Brás
Hello guys, I have a question: How can I create a drop down menu where the choices are the days of the month, displaying always the next 7 days? What I mean is, create a drop down menu and show the today's date, next day, and next... Example: Today is 12th, then the menu shows the following opt

Re: [PHP] What is this??

2002-10-27 Thread Miguel Brás
E.9070608@;buyer-brokerage.com... > My guess is that you're doing something like "insert into > table(col1,col2,col3) values('val1','val2')". You need to have an equal > ammount of columns and values. > > Miguel Brás wrote: > > >Hi guys, >

[PHP] What is this??

2002-10-27 Thread Miguel Brás
Hi guys, I was doing a script to insert data on a table, and the following message appeared me when testing the form for data insertion: Column count doesn't match value count at row 1 I lsaw the PHP manual and some other resources that I have, but couldn't find anything about it... Any hint fro

[PHP] PHP problem

2002-10-09 Thread Miguel Brás
Hi there, I need some help here: 1 - I have a table created on a DB where I insert the data that I want. 2 - I have a submit page to submit the info I want to the DB 3 - I have a page that displays the info from the DB (choosed by id) 4 - I have a page where I have a text box field and a button.