Re: [php-list] reg. an error in php-mysql code

2008-07-05 Thread John Black
Vijayaraghavan R wrote: Hi, I have developed an online form which is used by my company's marketing staff. When I try to enter the form I never get any errors and it gets saved properly. Could be a database error, maybe too many connections. Change the line echo 'pfont color=BLUEERROR !!!

Re: [php-list] date and mysql

2008-06-25 Thread John Black
Jennifer Gardner wrote: I have looked at the info supplied by your links and am still struggling. So, if the offer still stands I would love to check out the examples and see if that helps. I understand (to a degree) how to get the date via php but I just do not understand how to submit it to

Re: [php-list] setting the time zone

2008-06-19 Thread John Black
Wade Smart wrote: 20080619 1605 GMT-6 The time zone on a shared server Im working on is two hours behind where Im located. I found the php function to change it but Im not understanding it. I use the function MakeTime below to dynamically change the timezone per script run. This has the

Re: [php-list] feedback Error page phpv2

2008-06-09 Thread John Black
I tested you original script because I figured out what your problem is after I turned my computer off yesterday. Your PHP installation is set to not report errors. Your original script is missing the closing bracket. Most hosting companies have error reporting set to off, some allow you to

[php-list] OT: Remove Space in Windows Batch file

2008-06-09 Thread John Black
sorry about the OT post but I can't find the solution and PHP is used I am writing a database backup script which allows the user to generate a Windows batch file. Problem is that I get a space after the variable when I echo a test string. Batch Code: @ECHO OFF for /f tokens=1,2 %%u in

Re: [php-list] OT: Remove Space in Windows Batch file

2008-06-09 Thread John Black
Never mind, the problem was that I had an extra space inserted from the PHP side. This has an extra space behind ~3,2% $batch .= 'set datestr=%d:~6,4%%d:~0,2%%d:~3,2% '.\r\n; It works fine now as: $batch .= 'set datestr=%d:~6,4%%d:~0,2%%d:~3,2%'.\r\n;

Re: [php-list] feedback Error page php

2008-06-08 Thread John Black
[EMAIL PROTECTED] wrote: i'm trying to Commit a formmailer.php to goto a error page whenever a user Doesn't Enter a email or a comment // i have // it always goes to a blank iframe and never Shows the error page yes the page exists hel Are you sure the page exists? I get a

Re: [php-list] feedback Error page phpv2

2008-06-08 Thread John Black
[EMAIL PROTECTED] wrote: ? // * my Emailer PHP Code *// That script is not complete and will not run but I patched it up a bit The script below will run and when loaded will direct my browser directly to your woops page. The main problem with header() is that you can not send ANY out put

Re: [php-list] Alert when DB Insert on PHP

2008-06-04 Thread John Black
JaCoB wrote: Hello guys! Example: If I have a shopping cart website then someone placed an order... there will be an alert on my local computer like a javascript alert. This is pretty simple for the example above. Modify the script which adds the information to the database. After the order

Re: [php-list] HELLO

2008-05-30 Thread John Black
behrooz_program wrote: //Check if button name Edit is active, do this if($Edit){ for($i=0;$i$count;$i++){ $sql2=UPDATE $tbl_1 SET id_call='$id_call[$i]' WHERE id ='$id[$i]'; $result2= mysql_query($sql2); } } When you use arrays like that you should write them like this: $sql2=UPDATE $tbl_1

Re: [php-list] PHP Image copy permissions

2008-05-26 Thread John Black
Lenny Davila wrote: I have a script that uploads and resizes an image and puts it in a users directory While testing I had to delete a few images. I could not delete them by FTP or in my plesk control panel. Only through using winSCP and logging on as root into the server. Why is this

Re: [php-list] How to open php files - very beginner question

2008-05-26 Thread John Black
nj7874 wrote: I am a beginner to web development. I want to add a forum to my website. I found this website that list different forums: http://mashable.com/2007/08/19/online-forums/ http://mashable.com/2007/08/19/online-forums/ So I downloaded the Orca one. I tried to install it, but my

Re: [php-list] auto mail generation

2008-05-21 Thread John Black
John Black wrote: PHP 101: PHP For the Absolute Beginner http://devzone.zend.com/node/view/id/627 I guess I should have looked at the examples before recommending them. DO NOT FOLLOW THE DATABASE EXAMPLES on the website above. They try to teach stupid stuff like this below: // create query

Re: [php-list] Login form

2008-05-20 Thread John Black
urs_umar86 wrote: i am new in php know i want to make a login page is there any easy way to create a login page and tell me the way by using dreamweaver how can i make the login page. Thanks in advance. Dreamweaver does not write PHP code for you. You can use it to create the input form

Re: [php-list] Classes

2008-05-15 Thread John Black
Gordon Stewart wrote: Cannot redeclare class etc... etc. This is the error message you need to fix, if I remember correctly the etc etc part will tell you that the class has been declared on line X in script Y so the etc etc part is quite important. As far as I know there are two ways to

Re: [php-list] wamp5 intranet

2008-05-13 Thread John Black
shivam0101 wrote: Hi, I have installed wamp5 in a system which has windows 2000 server. I want to set up intranet site. What configuration changes should i have to make to work. Thanks I tiny bit more details regarding your problem may help... maybe tell us what is not working .

[php-list] OT: List of Credit Card Companies

2008-05-12 Thread John Black
I am looking for a list of Credit Card companies to place into a drop-down menu is there anybody out there with a current list which you would like to share, please? Looking for: Visa, Discover, AMEX, Thank you.

Re: [php-list] basic search

2008-05-11 Thread John Black
James Keeline wrote: --- John Black [EMAIL PROTECTED] wrote: Looking at the comments for the very page you link suggests that some people have exceptionally poor performance from fulltext searchers. Perhaps they don't have the correct indexes on their multi-million-row tables but it does

Re: [php-list] Re: serialized execution

2008-05-10 Thread John Black
Greg wrote: The correct way to do this in PHP is to use header (Location... Example ?PHP execute a bunch of code .. header (Location: script2.php); ? However, that won't work if your script has already output a header, That is why I like my improper use better because most

Re: [php-list] serialized execution

2008-05-07 Thread John Black
Matthew Grimm wrote: I'd like to use PHP to execute PHP files sequentially. For example, I'd like to run one PHP file, then another and then a third. If I had access to a shell, I'd write a shell script to do it. But because the web server I'm using does not offer shell access, I'm hoping to

Re: [php-list] File - List Etiquette

2008-05-05 Thread John Black
php-list@yahoogroups.com wrote: - Make sure that the RE prefix is before the [php-list] prefix or some mail clients will screw up the subject Good: RE: [php-list] Message Subject Bad: [php-list] RE: Message Subject I think this one is impossible to enforce/implement because Yahoo's own

Re: [php-list] DESC order for mysql display

2008-05-03 Thread John Black
Tedit kap wrote: Hi all, $query=mysql_query(select * from newsa ORDER BY id DESC LIMIT 3); while ($row = mysql_fetch_array($query)) { echo.. if we say the id of rows goes from 1 to 100, so the last row's id is 100, this code displays the results for the ids as follows: row with

RE: [php-list] Re: Forms

2008-05-01 Thread John Black
On Wed, 2008-04-30 at 20:45 -0600, Mike Johnston wrote: I am really tired of these reminders. Bye. Mike J. I welcome them because replies should go below the replied to part. This way the conversation is read like a regular piece of paper top to bottom. I get really annoyed by top

Re: [php-list] guestbook

2008-04-25 Thread John Black
On Thu, 2008-04-24 at 10:24 -0700, zhade12 wrote: Hi please i need help on what to alter below so if i delete a message in php my admin, the messages will still count in order. Right now if i delete message 1 it starts numbering from 2 Thanks for your replies CREATE TABLE `guestbook` (

Re: [php-list] CRON Error

2008-04-23 Thread John Black
On Wed, 2008-04-23 at 14:29 +1000, [EMAIL PROTECTED] wrote: Hi All, The cron command is - */15 * * * * /home/domain/public_html/cron/relay.php Take a look on this page: http://www.php.net/cli A little bit down the page, you will find the section The CLI SAPI has three different ways of

Re: [php-list] Database vs table

2008-04-22 Thread John Black
On Tue, 2008-04-22 at 06:47 +0200, Mladen Milankovic wrote: On Tuesday 22 April 2008 05:29:54 Tedit kap wrote: One database, and only a few tables. As I see it you only need two tables for the news portal, as you want it. One table for the categories, and one for the news and you connect

Re: [php-list] run scripts in background

2008-04-19 Thread John Black
On Fri, 2008-04-18 at 22:14 -0700, Waqas Habib wrote: Can i run my php script in background?? Suppose i want to connect to a server, that sends me (php script) some messages. And there is a front end (GUI), which will display these messages. i want to write a script, which sits between server

Re: [php-list] Re: Strange problem : Cannot display images

2008-04-16 Thread John Black
On Wed, 2008-04-16 at 02:19 +, bigballball007 wrote: Yes , only the pictures linked from one site cannot be shown . Others site has no problems . So the problem is due to the website blocks my request to link their pictures and I cannot do anything in the php code ? There is one thing

Re: [php-list] Sending emails from form

2008-04-16 Thread John Black
On Tue, 2008-04-15 at 22:29 +, fremaje31 wrote: Hello All, What should I put in the $to if I want an email sent to a user whose page is being viewed? Here's the page http://mybusinesscircle.startlogic.com/event_details.php?id=29 At the bottom there is a link Sponsor this Event. Please

Re: [php-list] Variable ending up as constant???

2008-04-16 Thread John Black
Thanks for that Mladen. I have used bluefish for many years now without any problem and never run into this before. What is your trust Kate? Wade Kate is an awsome editor for programmers BUT it requires you to run Linux . considering the poor performance of Vista, it might be a

Re: [php-list] Slashes showing up after insert from form

2008-03-26 Thread John Black
whoisquilty wrote: When I insert into my database from a form, there are slashes added before quotes. What do I need to do to get rid of this? As somebody else mentioned, you have a magic_quotes problem nasty little invention but it will be gone in PHP6 ... finally ... anyway. I

Re: [php-list] Fatal Error

2008-03-11 Thread John Black
fremaje31 wrote: Hello All, I'm just starting out and trying not to get discouraged. I keep running into road blocks. Below is my current on... Fatal error: Call to undefined function mysqli_connect() What can I do to fix this? Thanks in advance for your help, Tisha Usually you

Re: [php-list] working with WAMP 5

2008-03-03 Thread John Black
misender wrote: Hi, I'm beggining on PHP Programming and I'd like to know how to work offline. I downloaded the WAMP 5, but I don't know how to use it. After choosing Start All Services, it shows on mouse over the icon WAMP5 - server offline. Thanks, Michel You can find a guide on how

Re: [php-list] Date/Time Offset

2008-03-02 Thread John Black
Arne Stone wrote: Hallo all, Sorry for the n00b question! I am busy learning PHP and from the eBook I copied this code: When I open this in my browser I just see a blank screen not one of the echo's showsWhat could be the problem? Make sure you have error reporting turned on when

Re: [php-list] Date/Time Offset

2008-03-02 Thread John Black
John Black wrote: Arne Stone wrote: Hallo all, Sorry for the n00b question! I am busy learning PHP and from the eBook I copied this code: When I open this in my browser I just see a blank screen not one of the echo's showsWhat could be the problem? Make sure you have error