This is a discussion on "Coding error help" within the PHP Forum section. This forum, and the thread "Coding error help are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Coding error help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Coding error help
I get the following error: Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/mikka24/public_html/PSDSHAPES/news/view.php on line 11
On page: http://www.mcwebdesign.jamroll.net/P.../news/view.php I am using dreamweaver to create a table to show a record set with the following code. I don't see what is wrong with it.
|
|
|
|
|||
|
Re: Coding error help
The immediate answer is that $Recordset1 needs to be a result set variable that's returned by a function such as mysql_query(), but it isn't. It might be that you've not run any mysql_query() - there certainly isn't one that I've spotted in the sample code - or it might be that you did run a mysql_query() but it failed.
|
|
|||
|
Re: Coding error help
I know no php. What coding do I have to put where to get this to work?
|
|
|||
|
Re: Coding error help
Im using a different script now which is working. I was wondering how I make the css of the headers and text the same as my site and make the php script echo on my website .html page in the right column div tag.
The News Script (working):Link My webpage where I want the news (on the right inplace of text, headers with same style as the headers which are already there): Link All help is appreciated. I have managed to include the php news script after changing the .html files to .php. Now I have different questions: 1. Can I include the php news script in a .html files? 2. How do I change the css class of the text which is defined in the php script? 3. How do I make it so you need to login to post news? as the submit.php is available to all. Last edited by mikka23; Oct 17th, 2006 at 18:20. |
![]() |
| Tags |
| coding, php errors |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Getting the "Microsoft JET Database Engine error '80040e14'" error. | VegaLA | Classic ASP | 3 | Jan 26th, 2008 00:12 |
| Keep getting error message Microsoft VBScript runtime error '800a01a8' | cpando1974 | Classic ASP | 2 | Aug 7th, 2007 12:00 |
| I am a <div> at coding | DregondRahl | Web Page Design | 8 | Jun 7th, 2007 13:02 |
| Error 500 - Internal server error | JasonStanley | PHP Forum | 3 | Apr 23rd, 2007 17:56 |