Hi everyone,
I have some problems with php code. I'm currently in the middle of learning php, but these problems have got me stuck fast. But also have a question regarding looping that i'll ask in the same thread:
Firstly, I keep getting various syntax errors with my table:
PHP Code:
Code: echo "
<table border='1' bordercolor='#FFCC00'>
<style='background-color:#FFFFFF' width='800' cellpadding='3' cellspacing='3'>
<tr>
<td width='200' align='left' rowspan=5>Image</td>
</tr>
<tr>
<td width='573' align='left'>'Name:$row_details['MerchantName']</td>
</tr>
<tr>
<td height='27' align='left'>Telephone:$row_details['Telephone']</td>
</tr>
<tr>
<td height='27' align='left'>Website:$row_details['Website']</td>
</tr>
<tr>
<td height='54' align='left'>Description:$row_details['Description']</td>
</tr>
</html></body></table>"; it keeps telling me its expecting ";" or "," in various place along with T_Lnumber errors as i mentioned, i'm brand new to coding so im not sure whats happening there, the books and forums I've read dont point to these errors.
Also, I'm not sure if $row_details[''] is the correct code to display results from the database?
And the loop question I have is: Is it possible to get that little table above (once its working) to display 5 times per page. (and i suppose recognise that it need a new page if there more than 5 results)
Sorry this is a huge post but I've been trial and erroring for 2 days and its time to call in the pro's.
mysql select with $_get ?
Hi, i have this code:Code: // If char id is 0 and character dont exist do:if ($_GET["id"] == "0"){die "A character ID can never be 0. This character does not exists or have
Problem Dereferencing
With these types and tables:
Forum tutorial
Im a beginner in PHP. Im making a forum(previous questbook, counter and few others) to learn. For now I know something. I started making the forum from this
Any meaningful project for a new C++ programmer?
I want to do some meaningful program, so I can help myself to learn
download directory onto C drive
I am attempting (if this is possible) to write a routine to automatically dump the contents of a directory on the server into a directory on the local C drive.I started out like this :Code:
GET vs SUBMIT Button to show sections on one index.php page?
Just curious if one of these ways is better (i.e. more efficient) than the other. I have an index.php page where there is a menu across the top with 5 choices. For example, HOME | MONKEYS | CATS |
Limiting uploaded file type
I am working on a simple upload script, and I need it to limit the allowed file type that is uploaded to only .mpr files. .mpr files are not a MIME file type so I do not know how to limit it. Any
Weird problem with SELECT command..Help!
Hi!It seems I'm having a really weird problem with SQL SELECT command....I have table into a mySQL DB wich as 4 entry in it. I created the select command to retrieve the data and only 3 of the 4 entry
Secure FTP
Hi experts,
Multiple Do / While Statements?
I'm still very new to PHP, and running in to a problem when trying to execute a do/while loop inside another one.What I'm trying to achieve is that I want to display all of the records in one table