SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Sep 2004
    Location
    Provo, UT
    Posts
    865
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How can I force OR die(mysql_error()) ?

    I am adding some code to my query that will help me to identify which of several queries on one page are dieing. So I'm adding some text that should be displayed when a query dies. The trouble is, because the failures are sporadic, I need a good way to force the query to die. How can I accomplish this?

    Thanks!
    Convert your dollars into silver coins. www.convert2silver.com

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)

    killing script

    Can't you simply introduce a known error like a bad $var name where you want the script to fail?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •