close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

strange recordset entries when underscore

Thread began 9/30/2009 12:51 am by office377308 | Last modified 10/05/2009 3:22 pm by office377308 | 5995 views | 14 replies

jenkolaka19379118

Hi Eric

  These problems look like they may have to do with the way that you are using the query variable in the sql. If it is just that the underscore is causing problems you should try using a variable that does not rely on an underscore, inner cased variable names should work for you without problems. Run a test with the names of the variables defined without an underscore in them to see if you have the same problem. If you do then it would indicate that the problem is not with the underscores but something else. Please post back and let us know what you discover.  



What is the query variable? Is that the table names and columns?

I have no idea how to understand the code I have just pasted, I general use the dreamweaver recordset user interface. I'm not sure how to change the code or even to know which part of the code is incorrect

  <?php
$Paramperson_id_WADApeople = "-1";
if (isset($_GET['person_id'])) {
$Paramperson_id_WADApeople = (get_magic_quotes_gpc()) ? $_GET['person_id'] : addslashes($_GET['person_id']);
}
mysql_select_db($database_connElite, $connElite);
$query_WADApeople = sprintf("SELECT person_id, person_cat_id, salutation_id, firstname, lastname, address, city, postcode, mobile, email, telephone, fax, username, password, password_hint, newsletter_id, user_level FROM people WHERE person_id = %s", GetSQLValueString($Paramperson_id_WADApeople, "int"));
$WADApeople = mysql_query($query_WADApeople, $connElite) or die(mysql_error());
$row_WADApeople = mysql_fetch_assoc($WADApeople);
$totalRows_WADApeople = mysql_num_rows($WADApeople);?>  



my table name is people
the primary key is person_id

Many Thanks

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...