Search found 6 matches
- Thu Jun 26, 2008 2:40 am
- Forum: PHP - Code
- Topic: Difficult to use echo stmt to display already exis rec in db
- Replies: 2
- Views: 123
Re: Difficult to use echo stmt to display already exis rec in db
I have added the line to the piece of code after "INSERT" stmt. If now I enter a new grid_no in the form and try to submit it to the db the following message is displayed. "Unable to insertDuplicate entry '0' for key 2" For a matter of fact I am not able to figure out the issue a...
- Wed Jun 25, 2008 1:37 pm
- Forum: PHP - Code
- Topic: Difficult to use echo stmt to display already exis rec in db
- Replies: 2
- Views: 123
Difficult to use echo stmt to display already exis rec in db
$results = mysql_query("SELECT COUNT(*) FROM ip WHERE grid_no = '$grid_no'"); $grid_no = mysql_result($results,0); if ($grid_no > 0) { echo"The grid_no that you have entered already exists in the db"; exit(); } $sql= "INSERT INTO ip (name, address, city, country, grid_no) VA...
- Thu Feb 14, 2008 6:41 am
- Forum: PHP - Code
- Topic: How to display specific contents of a secure webpage(fopen)?
- Replies: 5
- Views: 99
Re: How to display specific contents of a secure webpage(fopen)?
I used strip tags to get rid of the tags displayed by a webpage. Now the issue is that white space remains and I would like to eradicate that as well. Any suggestions on the sample code i need to use to perform such a function? The reason I need to get rid of the whitespace is because I am transferi...
- Wed Feb 13, 2008 2:39 am
- Forum: PHP - Code
- Topic: How to display specific contents of a secure webpage(fopen)?
- Replies: 5
- Views: 99
Re: How to display specific contents of a secure webpage(fopen)?
Well I need a little assistance on this. I have many tables defined in my HTML source, however I need to extract this particular table and display the contents in a more systematic format. The table is copied for your reference below <tbody> <tr class="title"> <td>Bid</td> <td>Ask</td> <td...
- Tue Feb 12, 2008 7:02 am
- Forum: PHP - Code
- Topic: How to display specific contents of a secure webpage(fopen)?
- Replies: 5
- Views: 99
Re: How to display specific contents of a secure webpage(fopen)?
I have managed to open the secure website. My only concern now is to fetch specific contents from that web-page and view them. Thanks!!!
- Tue Feb 12, 2008 6:33 am
- Forum: PHP - Code
- Topic: How to display specific contents of a secure webpage(fopen)?
- Replies: 5
- Views: 99
How to display specific contents of a secure webpage(fopen)?
PHP ver 5.2.5 MySQL ver 5.0.45 1)I want to call the follwing URL in PHP ---> https://www.wachovia.com. 2) The next thing I want to do is get to the specific contents of the that URL. Say for example : Insurance on that web-page. I would like to fetch those contents from the URL and display them in a...