Note that there are some explanatory texts on larger screens.

plurals
  1. POC# database query string. Not getting results I need
    primarykey
    data
    text
    <p>In my database table I have a column named <strong>homeImg_credit</strong>. I need to assign the text in that field to a picture that is also in the same table in a column named <strong>ban_image</strong>. I have a column named ‘<strong>id</strong>’ that is unique. Every picture has a different credit assigned to it so I need to display a picture with its associated credits that belong to that picture on my web page via(database slide show). I also need to use the type of script that I’m showing. I cannot rewrite this script in LINQ or any other new type of format. I’m updating a website that already has script written in this way so I can’t defer from this type of scripting. I know that there is a better more efficient way of writing this but I need to continue to write this type of code to stay consistent with the rest of the site. This is what I have written so far: Where id=11 needs to be changed so that the credits are shown with the correct picture. Each id has an unique identifier so each record has a different homeImg_credit descriptiion and ban_image picture. How do I write this so that when a particular image is shown it will show the correct credits as well? where id = "id that is assigned to a record with it on homeImg_credit description and ban_image picture"</p> <pre><code>&lt;% string page_id="5"; functions f = new functions(); DAL s = new DAL(); SqlDataReader rd = s.returnTable("coolDesigns.cool_homeBanners" , "*", "where id=11"); while(rd.Read()){ Response.Write(rd["homeImg_credit"]); } rd.Close(); %&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload