SELECT SCOPE_IDENTITY() with PHP....ahhhhh!

This is a discussion on SELECT SCOPE_IDENTITY() with PHP....ahhhhh! within the alt.comp.lang.php forums, part of the PHP Programming Forums category; This message is being cross posted to: alt.comp.lang.php alt.php.sql microsoft.public.sqlserver.programming I have ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-07-2004
Rizyak
 
Posts: n/a
Default SELECT SCOPE_IDENTITY() with PHP....ahhhhh!

This message is being cross posted to:

alt.comp.lang.php
alt.php.sql
microsoft.public.sqlserver.programming


I have two tables, bars & contacts. Using 1 form to input information about
both the bar and the contact I need to be sure that the contact_id for that
session is input in the appropriate bar_id. Seems easy enough...... I was
told to use SCOPE_IDENTITY, however, I can't seem to get any identity
besides null. I have emailed by host to see how to set up an identity
column, but have not heard from them yet. Right now bar_id and contact_id
are set as auto_increment fields.....

Can anyone help? The source is at sevennites.com/new/insert.html (view
source).
The form is at sevennites.com/new/add.php3

Thank you!


Reply With Quote
  #2 (permalink)  
Old 06-07-2004
Aaron [SQL Server MVP]
 
Posts: n/a
Default Re: SELECT SCOPE_IDENTITY() with PHP....ahhhhh!

Could you show the SQL code you are actually using???

--
http://www.aspfaq.com/
(Reverse address to reply.)




"Rizyak" <ryan@latitude47.com> wrote in message
news:ca299t$s6m$1@nntp1.u.washington.edu...
> This message is being cross posted to:
>
> alt.comp.lang.php
> alt.php.sql
> microsoft.public.sqlserver.programming
>
>
> I have two tables, bars & contacts. Using 1 form to input information

about
> both the bar and the contact I need to be sure that the contact_id for

that
> session is input in the appropriate bar_id. Seems easy enough...... I was
> told to use SCOPE_IDENTITY, however, I can't seem to get any identity
> besides null. I have emailed by host to see how to set up an identity
> column, but have not heard from them yet. Right now bar_id and contact_id
> are set as auto_increment fields.....
>
> Can anyone help? The source is at sevennites.com/new/insert.html (view
> source).
> The form is at sevennites.com/new/add.php3
>
> Thank you!
>
>



Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:51 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0