Search found 6 matches

by jbriskin
Tue Feb 12, 2008 11:20 am
Forum: PHP - Code
Topic: Simple SELECT statement
Replies: 11
Views: 278

Re: Simple SELECT statement

I use bbedit. The code that had the bad spaces was cut and paste from the web. The code I typed out myself had no issues... but I'll leave the option for showing hidden characters on for a bit.
by jbriskin
Mon Feb 11, 2008 11:06 pm
Forum: PHP - Code
Topic: Simple SELECT statement
Replies: 11
Views: 278

Re: Simple SELECT statement

ok... very odd. Starting at line 10, none of the spaces are actually spaces. I turned on "show hidden characters" and what should be spaces are not denoted the same way as actual spaces. I guess I could throw it in a hex reader and find out but .... So anyway, thanks to everyone showing me...
by jbriskin
Mon Feb 11, 2008 8:21 pm
Forum: PHP - Code
Topic: Simple SELECT statement
Replies: 11
Views: 278

Re: Simple SELECT statement

I pulled out the includes now the code looks like this: <?php $db_host = 'my.server.net'; $db_name = 'myDataBase'; $db_user = 'myUser'; $db_pass = 'myPass'; mysql_connect ($db_host, $db_user, $db_pass); mysql_select_db ($db_name); $query = "SELECT * FROM formsubmit"; $result = mysql_query(...
by jbriskin
Mon Feb 11, 2008 8:05 pm
Forum: PHP - Code
Topic: Simple SELECT statement
Replies: 11
Views: 278

Re: Simple SELECT statement

The error most likely exists on your included files.. there certainly is no parse error on the code you've posted. There is some HTML Style tags in the constants.php... I guess that could be an issue... otherwise it is just a bunch of variables... that have been in use for about a year... but it is...
by jbriskin
Mon Feb 11, 2008 6:53 pm
Forum: PHP - Code
Topic: Simple SELECT statement
Replies: 11
Views: 278

Re: Simple SELECT statement

Yes, that is FormData.php... was suppose to be a quick test... but it is now not quick and seems to test only that I am not a php coder. I got the syntax online from a sample. I just made it point to my specifics. I don't really understand all of what it is doing... but it looks straight forward.. b...
by jbriskin
Mon Feb 11, 2008 4:03 pm
Forum: PHP - Code
Topic: Simple SELECT statement
Replies: 11
Views: 278

Simple SELECT statement

The following code is just for testing... not worried about security etc at this point... All I want to do is select all the records from a table and display the results. my code is: <?php   $doc_root = $_SERVER['DOCUMENT_ROOT']; include("$doc_root/constants.php");   mysql_connect ($db_hos...