From: Matt G. <ma...@ma...> - 2001-11-09 14:38:55
|
In my code to add a ticket, I faced this problem also. Here's what I did. I used the command $t_id = mysql_insert_id ($link); I believe it needs to be run after the $mysql_result = query($query); command. #Somebody who knows more about php might know this. But right now, the next line after #mysql_result=query(query) is i#f ($mysql_result) { # #2 questions. If I put the command $t_id = mysql_insert_id ($link); after the $mysql_result = #query($query); command, will the if($mysql_result) { command still work. I imagine that if($mysql_result { #only works if something is in mysql_result yes, I am sure that is what needs done. $mysql_result = query($query); $t_id = mysql_insert_id ($mysql_link); at this point, you now have $t_id filled in. then, add your $t_id into the email that is sent out. The only question is this. What is the name of Matt At 09:25 AM 11/8/2001 -0500, you wrote: >Has anyone been able to get the Ticket# to come through in the email >receipts to the client? >I have tried adding the $t_id variable in several places to no avail. > > > >Mitchell K. Smith >Service and Information Systems Manager >ePlus Technology of PA >130 Futura Drive >Pottstown, PA 19464 >610-495-7800 ext. 264 >mk...@pa... > > > >_______________________________________________ >Phphelpdesk-help mailing list >Php...@li... >https://lists.sourceforge.net/lists/listinfo/phphelpdesk-help |