Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #55.0K
Ranked #4K
~10K People Reached
Favorite Forums
Favorite Tags

3 Posted Topics

Member Avatar for Mike Bishop

CHARINDEX is 1 based, not 0. The following works for me on the developer edition of SQL Server: SELECT RTRIM(LEFT (ctn_node_path, CHARINDEX(' > ', ctn_node_path, 1))) FROM yourTableNameHere

Member Avatar for rbjolly
0
397
Member Avatar for pascalbianca

When you get emp_id from the database just put it into your session variable like so: $_SESSION["id"] = $emp_id Where $emp_id represents the value from the database. Once it is in the session array, there is no need to return to the database or a form in order to read …

Member Avatar for pascalbianca
0
4K
Member Avatar for Gurjit_2

Probably not the most efficient way, but if it is working for individual id values then enclose your code in a loop that iterates over the range of values and change your SQL statement from using BETWEEN to = , like so: $start = 1; $end = 2; for ($tmpID …

Member Avatar for Gurjit_2
0
5K

The End.